PageRenderTime 25ms CodeModel.GetById 12ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 1ms

/beta/AR/RevInvoiceInput.asp

http://github.com/khaneh/Orders
ASP | 409 lines | 386 code | 19 blank | 4 comment | 13 complexity | 4978620de0d27bcf5ddcc775e9333395 MD5 | raw file
  1<%@LANGUAGE="VBSCRIPT" CODEPAGE="1256"%><%
  2'AR (6)
  3PageTitle="���� ������ �ѐ�� �� ����"
  4SubmenuItem=4
  5if not Auth(6 , 4) then NotAllowdToViewThisPage()
  6
  7%>
  8<!--#include file="top.asp" -->
  9<!--#include File="../include_farsiDateHandling.asp"-->
 10<!--#include File="../include_JS_InputMasks.asp"-->
 11
 12<%
 13function ShowErrorMessage(msg)
 14	response.write "<table align='center' cellpadding='5'><tr><td bgcolor='#FFCCCC' dir='rtl' align='center'> ��� ! <br>"& msg & "<br></td></tr></table><br>"
 15end function
 16
 17function Link2Trace(OrderNo)
 18	Link2Trace="<A HREF='../order/TraceOrder.asp?act=show&order="& OrderNo & "' target='_balnk'>"& OrderNo & "</A>"
 19end function
 20
 21%>
 22<style>
 23	Table { font-size: 9pt;}
 24	.InvRowInput { font-family:tahoma; font-size: 9pt; border: none; background-color: #F0F0F0; text-align:right;}
 25	.InvHeadInput { font-family:tahoma; font-size: 9pt; border: none; background-color: #CCCC88; text-align:center;}
 26	.InvRowInput2 { font-family:tahoma; font-size: 9pt; border: none; background-color: #F0FFF0; text-align:right;}
 27	.InvHeadInput2 { font-family:tahoma; font-size: 9pt; border: none; background-color: #AACC77; text-align:center;}
 28	.InvHeadInput3 { font-family:tahoma; font-size: 9pt; border: none; background-color: #F0F0F0; text-align:right;}
 29	.InvGenInput  { font-family:tahoma; font-size: 9pt; border: none; }
 30	.InvGenButton { font-family:tahoma; font-size: 9pt; border: 1px solid black; }
 31</style>
 32<SCRIPT LANGUAGE="JavaScript">
 33<!--
 34var okToProceed=false;
 35var currentRow=0;
 36//-->
 37</SCRIPT>
 38<%
 39
 40if request("act")="submitsearch" then
 41	if trim(request("query")) <> "" then
 42		if isnumeric(request("query")) then
 43			SO_Order=clng(request("query"))
 44			SO_Action="return true;"
 45			SO_StepText="<br>��� ��� : ������ ����� ��� ������"
 46%>
 47			<FORM METHOD=POST ACTION="?act=getInvoice">
 48			<!--#include File="include_SelectClosedOrdersByOrder.asp"-->
 49			</FORM>
 50<%if Auth(6 , "K") then ' Has the priviledge to create a ReverseInvoice without an ORDER %>
 51			<p align='center' style='font-size:9pt;' dir='RTL'><a href='?act=getInvoice&selectedCustomer=<%=SO_Customer%>'>����� �� ����� ���� ����...</a></p>
 52<%end if%>
 53			<br>
 54<%		else
 55			SA_TitleOrName=request("query")
 56			SA_Action="return true;"
 57			SA_SearchAgainURL="RevInvoiceInput.asp"
 58			SA_StepText="��� ��� : ������ ����"
 59%>
 60			<FORM METHOD=POST ACTION="?act=selectOrder">
 61			<!--#include File="include_SelectAccount.asp"-->
 62			</FORM>
 63<%
 64		end if
 65	else
 66		response.redirect "?errmsg=" & Server.URLEncode("���� �э �������!")
 67	end if
 68elseif request("act")="selectOrder" then
 69	if request("selectedCustomer") <> "" then
 70		SO_Customer=request("selectedCustomer")
 71		SO_Action="return true;"
 72		SO_StepText="<br>��� ��� : ������ ����� ��� ������"
 73%>
 74		<FORM METHOD=POST ACTION="?act=getInvoice">
 75		<!--#include File="include_SelectClosedOrder.asp"-->
 76		</FORM>
 77<%if Auth(6 , "K") then ' Has the priviledge to create a ReverseInvoice without an ORDER %>
 78			<p align='center' style='font-size:9pt;' dir='RTL'><a href='?act=getInvoice&selectedCustomer=<%=SO_Customer%>'>����� �� ����� ���� ����...</a></p>
 79<%end if%>
 80		<br>
 81<%
 82	end if
 83elseif request("act")="getInvoice" then
 84%>
 85<!--#include file="include_JS_for_Invoices.asp" -->
 86<%
 87	customerID=request("selectedCustomer")
 88
 89	mySQL="SELECT * FROM Accounts WHERE (ID='"& CustomerID & "')"
 90	Set RS1 = conn.Execute(mySQL)
 91	customerName=RS1("AccountTitle")
 92	
 93	creationDate=shamsiToday()
 94'	creationTime=Hour(creationTime)&":"&Minute(creationTime)
 95'	if instr(creationTime,":")<3 then creationTime="0" & creationTime
 96'	if len(creationTime)<5 then creationTime=Left(creationTime,3) & "0" & Right(creationTime,1)
 97
 98	InvoiceLinesNo=1
 99%>
100<!-- ���� ������� ������ �ѐ�� �� ���� -->
101	<br>
102	<input type="hidden" Name='tmpDlgArg' value=''>
103	<input type="hidden" Name='tmpDlgTxt' value=''>
104		<table Border="0" align="center" Width="100%" Cellspacing="1" Cellpadding="0" Dir="RTL" bgcolor="#558855">
105		<FORM METHOD=POST ACTION="?act=submitInvoice">
106			<tr bgcolor='#C3C300'>
107			<td colspan="2"><TABLE Border="0" Width="100%" Cellspacing="1" Cellpadding="0" Dir="RTL"><TR>
108				<TD><table>
109					<tr>
110						<td align="left">����:</td>
111						<td align="right">
112							<span id="customer"><%' after any changes in this span "./Customers.asp" must be revised%>
113								<INPUT TYPE="hidden" NAME="customerID" value="<%=customerID%>"><span><%=CustomerName%></span>.
114							</span></td>
115						<td><INPUT class="InvGenButton" TYPE="button" value="�����" onClick="selectCustomer();"></td>
116					</tr>
117					</table></TD>
118				<TD align="left"><table>
119					<tr>
120						<td align="left">�����:</td>
121						<td dir="LTR">
122							<INPUT class="InvGenInput" NAME="InvoiceDate" TYPE="text" maxlength="10" size="10" value="<%=CreationDate%>"></td>
123						<td dir="RTL"><%=weekdayname(weekday(date))%></td>
124					</tr>
125					</table></TD>
126				</TR></TABLE>
127			</td>
128			</tr>
129			<tr bgcolor='#C3C300'>
130				<TD align="right" width="50%">
131					����� �� �����(���):
132					<span id="orders">
133<%
134					tempWriteAnd=""
135					for i=1 to request.form("selectedOrders").count
136						response.write "<input type='hidden' name='selectedOrders' value='"& request.form("selectedOrders")(i)& "'>"
137						response.write tempWriteAnd & Link2Trace(request.form("selectedOrders")(i))
138						tempWriteAnd=" � "
139					next
140%>
141					</span>&nbsp;
142					<INPUT class="InvGenButton" TYPE="button" value="�����" onClick="selectOrder();">
143				</TD>
144				<TD align="left"><table>
145					<tr>
146						<td align="left">�����:</td>
147						<td dir="LTR">
148							<INPUT class="InvGenInput" NAME="InvoiceNo" style="border:1px solid black;" TYPE="text" maxlength="10" size="10"></td>
149						<td dir="RTL"><INPUT TYPE="checkbox" NAME="IsA"> ��� &nbsp;</td>
150					</tr>
151					</table></TD>
152			</tr>
153			<tr bgcolor='#CCCC88'>
154			<TD colspan="10"><div>
155			<TABLE Border="0" Cellspacing="1" Cellpadding="0" Dir="RTL" bgcolor="#558855">
156			<tr bgcolor='#CCCC88'>
157				<td align='center' width="25px"> # </td>
158				<td><INPUT class="InvHeadInput" readonly TYPE="text" value="����" size="3" ></td>
159				<td><INPUT class="InvHeadInput2" readonly TYPE="text" value="�������" size="30"></td>
160				<td><INPUT class="InvHeadInput2" readonly TYPE="text" Value="���" size="2"></td>
161				<td><INPUT class="InvHeadInput2" readonly TYPE="text" Value="���" size="2"></td>
162				<td><INPUT class="InvHeadInput2" readonly TYPE="text" Value="�����" size="3"></td>
163				<td><INPUT class="InvHeadInput2" readonly TYPE="text" Value="���" size="2"></td>
164				<td><INPUT class="InvHeadInput" readonly TYPE="text" Value="����� ����" size="6"></td>
165				<td><INPUT class="InvHeadInput" readonly TYPE="text" Value="��" size="7"></td>
166				<td><INPUT class="InvHeadInput" readonly TYPE="text" Value="����" size="9"></td>
167				<!--S A M-->
168				<td><INPUT class="InvHeadInput" readonly TYPE="text" Value="�����"size="7"></td>
169				<td><INPUT class="InvHeadInput" readonly TYPE="text" Value="�ѐ��" size="5"></td>
170				<td><INPUT class="InvHeadInput" readonly TYPE="text" Value="������" size="6"></td>
171				<td><INPUT class="InvHeadInput2" readonly TYPE="text" Value="���� ������" size="9"></td>
172			</tr>
173			</TABLE></div></TD>
174			</TR>
175			<tr bgcolor='#CCCC88'>
176			<TD colspan="10"><div style="overflow:auto; height:250px; width:*;">
177			<TABLE Border="0" Cellspacing="1" Cellpadding="0" Dir="RTL" bgcolor="#558855">
178			<Tbody id="InvoiceLines">
179
180<%		
181		for i=1 to 1
182%>
183			<tr bgcolor='#F0F0F0' onclick="setCurrentRow(this.rowIndex);" >
184				<td align='center' width="25px"><%=i%></td>
185				<td dir="LTR"><INPUT class="InvRowInput" TYPE="text" NAME="Items" size="3" onKeyPress="return mask(this);" onfocus="setCurrentRow(this.parentNode.parentNode.rowIndex);" onBlur='check(this);'>
186				<INPUT TYPE="hidden" name="type" value=0>
187				<INPUT TYPE="hidden" name="fee" value=0>
188				</td>
189				<td dir="RTL"><INPUT class="InvRowInput2" TYPE="text" NAME="Descriptions" size="30"></td>
190				<td dir="LTR"><INPUT class="InvRowInput2" TYPE="text" NAME="Lengths" size="2" onBlur="setFeeQtty(this);"></td>
191				<td dir="LTR"><INPUT class="InvRowInput2" TYPE="text" NAME="Widths" size="2" onBlur="setFeeQtty(this);"></td>
192				<td dir="LTR"><INPUT class="InvRowInput2" TYPE="text" NAME="Qttys" size="3" onBlur="setFeeQtty(this);"></td>
193				<td dir="LTR"><INPUT class="InvRowInput2" TYPE="text" NAME="Sets" size="2" onBlur="setFeeQtty(this);"></td>
194				<td dir="LTR"><INPUT class="InvRowInput" TYPE="text" NAME="AppQttys" size="6" onBlur="setPrice(this);"></td>
195				<td dir="LTR"><INPUT class="InvRowInput" TYPE="text" NAME="Fees" size="7" onBlur="setPrice(this);"></td>
196				<td dir="LTR"><INPUT class="InvRowInput" TYPE="text" NAME="Prices" size="9" readonly tabIndex="9999"></td>
197				<!--S A M-->
198				<td dir="LTR"><INPUT class="InvRowInput" TYPE="text" NAME="Discounts" size="7" onBlur="setPrice(this);"></td>
199				<td dir="LTR"><INPUT class="InvRowInput" TYPE="text" NAME="Reverses" size="5" onBlur="setPrice(this);" onfocus="setCurrentRow(this.parentNode.parentNode.rowIndex);"></td>
200				<td dir="LTR"><INPUT class="InvRowInput" TYPE="text" NAME="Vat" size="6" readonly></td>
201				<td dir="LTR"><INPUT class="InvRowInput2" TYPE="text" NAME="AppPrices" size="9" readonly tabIndex="9999"></td>
202			</tr>
203<%
204		next
205%>
206			<tr bgcolor='#F0F0F0' onclick="setCurrentRow(this.rowIndex);" >
207				<td colspan="15">
208					<INPUT class="InvGenButton" TYPE="button" value="�����" onkeyDown="if(event.keyCode==9) {setCurrentRow(this.parentNode.parentNode.rowIndex); return false;};" onClick="addRow();">
209				</td>
210			</tr>
211			</Tbody></TABLE></div>
212			</TD>
213			</tr>
214			<tr bgcolor='#CCCC88'>
215			<TD colspan="10"><div>
216			<TABLE Border="0" Cellspacing="1" Cellpadding="0" Dir="RTL" bgcolor="#CCCC88">
217			<tr bgcolor='#CCCC88'>
218				<td align='center' width="25px"> &nbsp; </td>
219				<td><INPUT readonly class="InvHeadInput" TYPE="text" size="3" ></td>
220				<td><INPUT readonly class="InvHeadInput" TYPE="text" size="30"></td>
221				<td><INPUT readonly class="InvHeadInput" TYPE="text" size="2"></td>
222				<td><INPUT readonly class="InvHeadInput" TYPE="text" size="2"></td>
223				<td><INPUT readonly class="InvHeadInput" TYPE="text" size="3"></td>
224				<td><INPUT readonly class="InvHeadInput" TYPE="text" size="2"></td>
225				<td><INPUT readonly class="InvHeadInput" TYPE="text" size="6"></td>
226				<td><INPUT readonly class="InvHeadInput" TYPE="text" size="7"></td>
227				<td dir="LTR"><INPUT readonly class="InvHeadInput3" Name="TotalPrice" TYPE="text" size="9"></td>
228				<td dir="LTR"><INPUT readonly class="InvHeadInput3" Name="TotalDiscount" TYPE="text" size="7"></td>
229				<td dir="LTR"><INPUT readonly class="InvHeadInput3" Name="TotalReverse" TYPE="text" size="5"></td>
230				<td dir="LTR"><INPUT readonly class="InvHeadInput3" Name="TotalVat" TYPE="text" size="6"
231				<td dir="LTR"><INPUT readonly class="InvHeadInput3" Name="TotalAppPrice" TYPE="text" size="9"></td>
232			</tr>
233			<tr bgcolor='#CCCC88'>
234				<td colspan="9"> &nbsp; </td>
235				<td dir="LTR"><INPUT readonly class="InvHeadInput" TYPE="text" size="9"></td>
236				<td dir="LTR"><INPUT readonly class="InvHeadInput3" TYPE="text" Name="TPDiscount" size="7"></td>
237				<td dir="LTR"><INPUT readonly class="InvHeadInput3" TYPE="text" Name="TPReverse" size="5"></td>
238				<td dir="LTR"><INPUT readonly class="InvHeadInput3" TYPE="text" value="3%������" size="6"></td>
239				<td dir="LTR"><INPUT readonly class="InvHeadInput" TYPE="text" size="9"></td>
240			</tr>
241			</TABLE></div></TD>
242			</TR>
243		</table><br>
244		<TABLE Border="0" Cellspacing="5" Cellpadding="0" Dir="RTL" align='left'>
245		<tr>
246			<td align='center'><INPUT class="InvGenButton" TYPE="button" value="��� ��� ������ �ѐ�� �� ����..." onclick="submitOperations();"></td>
247			<td align='center'><INPUT class="InvGenButton" TYPE="button" value="������" onclick="window.close();"></td>
248		</tr>
249		</TABLE>
250		</FORM>
251		<SCRIPT LANGUAGE="JavaScript">
252		<!--
253			document.getElementsByName("Items")[0].focus();
254		//-->
255		</SCRIPT>
256<%elseif request("act")="submitInvoice" then
257
258	InvoiceDate=request.form("InvoiceDate")
259	CustomerID=request.form("CustomerID") 
260	InvoiceNo=request.form("InvoiceNo") 
261	if request.form("IsA") = "on" then IsA=1 else IsA=0
262		
263	TotalPrice=text2value(request.form("TotalPrice"))
264	TotalDiscount=text2value(request.form("TotalDiscount"))
265	TotalReverse=text2value(request.form("TotalReverse"))
266	TotalReceivable=text2value(request.form("TotalAppPrice"))
267	TotalVat = text2value(request.form("TotalVat"))' S A M CHANGE THIS
268
269	mySQL="INSERT INTO Invoices (IsReverse, CreatedDate, CreatedBy, Customer, Number, TotalPrice, TotalDiscount, TotalReverse, TotalReceivable, IsA, TotalVat) VALUES (1, N'"& InvoiceDate & "', '"& session("ID") & "', '"& CustomerID & "', '"& InvoiceNo & "', '"& TotalPrice & "', '"& TotalDiscount & "', '"& TotalReverse & "', '"& TotalReceivable & "', '"& IsA & "', '" & TotalVat & "')"	
270	conn.Execute(mySQL)
271
272	mySQL="SELECT MAX(ID) AS lastID FROM Invoices WHERE (IsReverse=1 AND CreatedBy='"& session("ID") & "' AND Customer='"& CustomerID & "' AND TotalPrice='"& TotalPrice & "')"
273
274	Set RS1 = conn.Execute(mySQL)
275	InvoiceID=RS1("lastID")
276	RS1.close
277%>
278	<hr>
279	<TABLE Border="0" Cellspacing="1" Cellpadding="0" Dir="RTL" bgcolor="#558855" align="center">
280	<tr bgcolor='#CCCC88'>
281		<td align='center' width="25px"> # </td>
282		<td><INPUT readonly class="InvHeadInput" TYPE="text" value="����" size="4" ></td>
283		<td><INPUT readonly class="InvHeadInput2" TYPE="text" value="�������" size="30"></td>
284		<td><INPUT readonly class="InvHeadInput2" TYPE="text" Value="���" size="2"></td>
285		<td><INPUT readonly class="InvHeadInput2" TYPE="text" Value="���" size="2"></td>
286		<td><INPUT readonly class="InvHeadInput2" TYPE="text" Value="�����" size="3"></td>
287		<td><INPUT readonly class="InvHeadInput2" TYPE="text" Value="���" size="2"></td>
288		<td><INPUT readonly class="InvHeadInput" TYPE="text" Value="����� ����" size="6"></td>
289		<td><INPUT readonly class="InvHeadInput" TYPE="text" Value="��" size="7"></td>
290		<td><INPUT readonly class="InvHeadInput" TYPE="text" Value="����" size="9"></td>
291		<!--S A M-->
292		<td><INPUT readonly class="InvHeadInput" TYPE="text" Value="�����"size="7"></td>
293		<td><INPUT readonly class="InvHeadInput" TYPE="text" Value="�ѐ��" size="5"></td>
294		<td><INPUT readonly class="InvHeadInput" TYPE="text" Value="������" size="6"></td>
295		<td><INPUT readonly class="InvHeadInput2" TYPE="text" Value="���� ������" size="9"></td>
296	</tr>
297<%	for i=1 to request.form("Items").count 
298		theItem = text2value(request.form("Items")(i))
299		theDescription = request.form("Descriptions")(i)
300		theLength = text2value(request.form("Lengths")(i))
301		theWidth = text2value(request.form("Widths")(i))
302		theQtty = text2value(request.form("Qttys")(i))
303		theSets = text2value(request.form("Sets")(i))
304		theAppQtty = text2value(request.form("AppQttys")(i))
305		theFee = text2value(request.form("Fees")(i))
306		thePrice = text2value(request.form("Prices")(i))
307		theDiscount = text2value(request.form("Discounts")(i))
308		theReverse = text2value(request.form("Reverses")(i))
309		theAppPrice	= text2value(request.form("AppPrices")(i))
310		theVat = text2value(reguest.form("Vat")(i))
311
312
313		mySQL="INSERT INTO InvoiceLines (Invoice, Item, Description, Length, Width, Qtty, Sets, AppQtty, Price, Discount, Reverse, Vat) VALUES ('"& InvoiceID & "', '" & theItem & "', N'" & theDescription & "', '" & theLength & "', '" & theWidth & "', '" & theQtty & "', '" & theSets & "', '" & theAppQtty & "', '" & thePrice & "', '" & theDiscount & "', '" & theReverse & "', '" & theVat & "')"
314		conn.Execute(mySQL)
315%>
316	<tr bgcolor='#F0F0F0' height="20px">
317		<td align='center' width="25px"><%=i%></td>
318		<td align='right' dir="LTR"><%=Separate(theItem)%></td>
319		<td dir="RTL" width="170px"><%=theDescription%></td>
320		<td align='right' dir="LTR"><%=Separate(theLength)%></td>
321		<td align='right' dir="LTR"><%=Separate(theWidth)%></td>
322		<td align='right' dir="LTR"><%=Separate(theQtty)%></td>
323		<td align='right' dir="LTR"><%=Separate(theSets)%></td>
324		<td align='right' dir="LTR"><%=Separate(theAppQtty)%></td>
325		<td align='right' dir="LTR"><%=Separate(theFee)%></td>
326		<td align='right' dir="LTR"><%=Separate(thePrice)%></td>
327		<td align='right' dir="LTR"><%=Separate(theDiscount)%></td>
328		<td align='right' dir="LTR"><%=Separate(theReverse)%></td>
329		<td align='right' dir="LTR"><%=Separate(theVat)%></td>
330		<td align='right' dir="LTR"><%=Separate(theAppPrice)%></td>
331	</tr>
332<%	next %>
333	<tr>
334		<td colspan="13"></td>
335	</tr>
336	<tr bgcolor='#CCCC88' height="20px">
337		<td colspan="9"> &nbsp; </td>
338		<td align='right' dir="LTR" bgcolor="#F0F0F0"><%=Separate(TotalPrice)%></td>
339		<td align='right' dir="LTR" bgcolor="#F0F0F0"><%=Separate(TotalDiscount)%></td>
340		<td align='right' dir="LTR" bgcolor="#F0F0F0"><%=Separate(TotalReverse)%></td>
341		<td align='right' dir="LTR" bgcolor="#F0F0F0"><%=Separate(TotalVat)%></td>
342		<td align='right' dir="LTR" bgcolor="#F0F0F0"><%=Separate(TotalReceivable)%></td>
343	</tr>
344	<tr bgcolor='#CCCC88' height="20px">
345		<td colspan="10"> &nbsp; </td>
346		<td align='right' dir="LTR" bgcolor="#F0F0F0"><%=Pourcent(TotalDiscount,TotalPrice) & "%�����"%></td>
347		<td align='right' dir="LTR" bgcolor="#F0F0F0"><%=Pourcent(TotalReverse,TotalPrice) & "%�ѐ��"%></td>
348		<td align='right' dir="LTR" bgcolor="#F0F0F0">������</td>
349		<td>&nbsp;</td>
350	</tr>
351	</TABLE>
352	<hr>
353<%
354	for i=1 to request.form("selectedOrders").count
355		theOrder=request.form("selectedOrders")(i)
356		mySQL="INSERT INTO InvoiceOrderRelations (Invoice,[Order]) VALUES ('" & InvoiceID & "', '" & theOrder & "')"
357		conn.Execute(mySQL)
358	next
359%>
360
361<!-- ������� ������ �ѐ�� �� ���� ��� ��... -->
362	<div dir='rtl'><B>������� ������ �ѐ�� �� ���� ��� ��...</B>
363	<br>�����:'<%=CustomerID%>'
364	<br>������ �ѐ�� �� ����:'<%=InvoiceID%>'<br>
365	<input class="InvGenInput" type="button" value="�����" onclick="window.close();">
366	</div>
367<%
368	response.redirect "AccountReport.asp?act=showInvoice&invoice="	 & InvoiceID
369
370else%>
371<!-- ����� ���� ��� ���� �� ����� �����-->
372	<%if Auth(6 , 4) then %>
373	<br>
374	<br>
375	<FORM METHOD=POST ACTION="?act=submitsearch" onsubmit="if (document.all.query.value=='') return false;">
376	<div dir='rtl'><B><FONT SIZE="" COLOR="red"> &nbsp;������ ����: </FONT><BR>����� ���� ��� ���� �� ����� �����</B>
377		<INPUT TYPE="text" NAME="query">&nbsp;
378		<INPUT TYPE="submit" value="�����"><br>
379	</div>
380	</FORM>
381	<%end if %>
382<!-- ����� ���� ������ -->
383	<%if Auth(6 , 5) then %>
384	<br>
385	<hr>
386	<br>
387	<br>
388	<FORM METHOD=POST ACTION="InvoiceEdit.asp?act=search" onsubmit="if (document.all.order.value=='' && document.all.invoice.value=='') return false;">
389	<div dir='rtl'>&nbsp;<B><FONT SIZE="" COLOR="red">����� ������:</FONT><BR> ����� ����� �� ���� ����</B>
390		<INPUT style="font-family:Tahoma;" TYPE="text" NAME="order">&nbsp;
391		<INPUT style="font-family:Tahoma;" TYPE="submit" value="�����..."><br><br>
392		<Blockquote>
393			����� ������ �� ������:<br><INPUT style="font-family:Tahoma;width:100px;" TYPE="text" NAME="invoice"><br>
394			<INPUT style="font-family:Tahoma;" TYPE="submit" value="�����..."><br><br>
395		</Blockquote>
396	</div>
397	</FORM>
398	<%end if %>
399
400	<SCRIPT LANGUAGE="JavaScript">
401	<!--
402		document.all.query.focus();
403	//-->
404	</SCRIPT>
405<%
406end if
407conn.Close
408%>
409<!--#include file="tah.asp" -->