Changeset 205 for trunk/phpbms/modules/bms/invoices_addedit.php
- Timestamp:
- 03/26/07 16:50:25 (5 years ago)
- Files:
-
- 1 modified
-
trunk/phpbms/modules/bms/invoices_addedit.php (modified) (14 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpbms/modules/bms/invoices_addedit.php
r204 r205 64 64 <?php $paymentMethods=getPayments($dblink)?> 65 65 </head> 66 <body on Load="initializePage()"><?php include("../../menu.php")?>67 <form action="<?php echo $_SERVER["REQUEST_URI"] ?>" method="post" name="record" onsubmit="setLineItems();return validateForm(this);"><div id="dontSubmit"><input type="submit" value=" " on Click="return false;" /></div>66 <body onload="initializePage()"><?php include("../../menu.php")?> 67 <form action="<?php echo $_SERVER["REQUEST_URI"] ?>" method="post" name="record" onsubmit="setLineItems();return validateForm(this);"><div id="dontSubmit"><input type="submit" value=" " onclick="return false;" /></div> 68 68 <?php invoice_tabs("General",$therecord["id"]);?><div class="bodyline"> 69 69 <div id="topButtons"> 70 70 <?php if($therecord["id"]){ 71 71 ?><div id="printButton"> 72 <input name="doprint" type="button" value="print" accesskey="p" on Click="doPrint('<?php echo $_SESSION["app_path"]?>',<?php echo $therecord["id"]?>)" class="Buttons" />72 <input name="doprint" type="button" value="print" accesskey="p" onclick="doPrint('<?php echo $_SESSION["app_path"]?>',<?php echo $therecord["id"]?>)" class="Buttons" /> 73 73 </div><?php 74 74 }//end if … … 102 102 <label for="id">id</label> 103 103 <br /> 104 <input name="id" id="id" type="text" value="<?php echo $therecord["id"]; ?>" size="11" maxlength="11" readonly=" true" class="uneditable" tabindex="0" />104 <input name="id" id="id" type="text" value="<?php echo $therecord["id"]; ?>" size="11" maxlength="11" readonly="readonly" class="uneditable" tabindex="0" /> 105 105 </p> 106 106 … … 108 108 <label for="type" class="important">type</label><br /> 109 109 <?php if($therecord["type"]=="VOID" || $therecord["type"]=="Invoice") {?> 110 <input id="type" name="type" type="text" value="<?php echo htmlQuotes($therecord["type"])?>" size="11" maxlength="11" readonly=" true" class="uneditable important" tabindex=9 />110 <input id="type" name="type" type="text" value="<?php echo htmlQuotes($therecord["type"])?>" size="11" maxlength="11" readonly="readonly" class="uneditable important" tabindex=9 /> 111 111 <?php }else { 112 112 $thechoices=array(); … … 123 123 <label for="ponumber">client PO#</label> 124 124 <br /> 125 <input name="ponumber" id="ponumber" type="text" value="<?php echo htmlQuotes($therecord["ponumber"])?>" size="11" maxlength="64" tabindex= 12/>125 <input name="ponumber" id="ponumber" type="text" value="<?php echo htmlQuotes($therecord["ponumber"])?>" size="11" maxlength="64" tabindex="12" /> 126 126 </p> 127 127 </div> … … 164 164 <legend><label for="address1">shipping address</label></legend> 165 165 <p> 166 <input name="address1" id="address1" type="text" value="<?php echo htmlQuotes($therecord["address1"])?>" size="65" maxlength="128" tabindex= 3/><br />166 <input name="address1" id="address1" type="text" value="<?php echo htmlQuotes($therecord["address1"])?>" size="65" maxlength="128" tabindex="3" /><br /> 167 167 <input name="address2" id="address2" type="text" value="<?php echo htmlQuotes($therecord["address2"])?>" size="65" maxlength="128" tabindex="4" /> 168 168 </p> … … 173 173 <p class="cszP"> 174 174 <label for="state">state/prov</label><br /> 175 <input name="state" type="text" id="state" value="<?php echo htmlQuotes($therecord["state"])?>" size="3" maxlength="5" tabindex= 6 />175 <input name="state" type="text" id="state" value="<?php echo htmlQuotes($therecord["state"])?>" size="3" maxlength="5" tabindex="6" /> 176 176 </p> 177 177 <p class="cszP"> 178 178 <label for="postalcode">zip/postal code</label><br /> 179 <input name="postalcode" type="text" id="postalcode" value="<?php echo htmlQuotes($therecord["postalcode"])?>" size="12" maxlength="15" tabindex= 7/>179 <input name="postalcode" type="text" id="postalcode" value="<?php echo htmlQuotes($therecord["postalcode"])?>" size="12" maxlength="15" tabindex="7" /> 180 180 </p> 181 181 <p id="countryP"> 182 182 <label for="country">country</label><br /> 183 <input name="country" id="country" type="text" value="<?php echo htmlQuotes($therecord["country"])?>" size="45" maxlength="64" tabindex= 8/>183 <input name="country" id="country" type="text" value="<?php echo htmlQuotes($therecord["country"])?>" size="45" maxlength="64" tabindex="8" /> 184 184 </p> 185 185 </fieldset> … … 210 210 <table border="0" cellpadding="0" cellspacing="0" id="LITable"> 211 211 <tr id="LIHeader"> 212 <th nowrap class="queryheader" align="left">part number</th>213 <th nowrap class="queryheader" align="left" id="partnameHeader"><div>name</div></th>214 <th nowrap class="queryheader" align="left" id="memoHeader">memo</th>215 <th align="right" nowrap class="queryheader">price</th>216 <th align="center" nowrap class="queryheader">qty.</th>217 <th align="right" nowrap class="queryheader">extended</th>218 <th nowrap class="queryheader"> </th>212 <th nowrap="nowrap" class="queryheader" align="left">part number</th> 213 <th nowrap="nowrap" class="queryheader" align="left" id="partnameHeader"><div>name</div></th> 214 <th nowrap="nowrap" class="queryheader" align="left" id="memoHeader">memo</th> 215 <th align="right" nowrap="nowrap" class="queryheader">price</th> 216 <th align="center" nowrap="nowrap" class="queryheader">qty.</th> 217 <th align="right" nowrap="nowrap" class="queryheader">extended</th> 218 <th nowrap="nowrap" class="queryheader"> </th> 219 219 </tr> 220 220 <?php if($therecord["type"]!="Invoice"){?> 221 221 <tr id="LIAdd"> 222 <td nowrap >222 <td nowrap="nowrap"> 223 223 <?php fieldAutofill("partnumber","",4,"products.id","products.partnumber","products.partname","products.status=\"In Stock\" and products.inactive=0",Array("size"=>"16","maxlength"=>"32","tabindex"=>"15"),false,"") ?> 224 224 <script language="JavaScript" type="text/javascript"> … … 226 226 </script> 227 227 </td> 228 <td nowrap >228 <td nowrap="nowrap"> 229 229 <?php fieldAutofill("partname","",4,"products.id","products.partname","products.partnumber","products.status=\"In Stock\" and products.inactive=0",Array("size"=>"20","maxlength"=>"128","tabindex"=>"16"),false,"") ?> 230 230 <script language="JavaScript" type="text/javascript"> … … 233 233 </td> 234 234 <td><input name="memo" type="text" id="memo" size="12" maxlength="255" tabindex="17" /></td> 235 <td align="right" nowrap ><input name="price" type="text" id="price" value="<?php echo htmlQuotes(numberToCurrency(0))?>" size="10" maxlength="16" onchange="calculateExtended()" class="fieldCurrency" tabindex="18" /></td>236 <td align="center" nowrap ><input name="qty" type="text" id="qty" value="1" size="5" maxlength="16" onchange="calculateExtended()" tabindex="19" /></td>237 <td align="right" nowrap ><input name="extended" type="text" id="extended" class="uneditable fieldCurrency" value="<?php echo htmlQuotes(numberToCurrency(0))?>" size="12" maxlength="16" readonly="true" /></td>238 <td nowrap align="center"><button type="button" onclick="addLine(this.parentNode);" tabindex="20" class="graphicButtons buttonPlus" title="Add Line Item"><span>+</span></button></td>235 <td align="right" nowrap="nowrap"><input name="price" type="text" id="price" value="<?php echo htmlQuotes(numberToCurrency(0))?>" size="10" maxlength="16" onchange="calculateExtended()" class="fieldCurrency" tabindex="18" /></td> 236 <td align="center" nowrap="nowrap"><input name="qty" type="text" id="qty" value="1" size="5" maxlength="16" onchange="calculateExtended()" tabindex="19" /></td> 237 <td align="right" nowrap="nowrap"><input name="extended" type="text" id="extended" class="uneditable fieldCurrency" value="<?php echo htmlQuotes(numberToCurrency(0))?>" size="12" maxlength="16" readonly="readonly" /></td> 238 <td nowrap="nowrap" align="center"><button type="button" onclick="addLine(this.parentNode);" tabindex="20" class="graphicButtons buttonPlus" title="Add Line Item"><span>+</span></button></td> 239 239 </tr><?php }//end if 240 240 $lineitemsresult=getLineItems($therecord["id"]); … … 244 244 while($lineitem=mysql_fetch_array($lineitemsresult)){ 245 245 ?><tr class="lineitems" id="LIN<?php echo $lineitem["id"]?>"> 246 <td nowrap class="lineitemsLeft important"><?php if($lineitem["partnumber"]) echo htmlQuotes($lineitem["partnumber"]); else echo " ";?></td>246 <td nowrap="nowrap" class="lineitemsLeft important"><?php if($lineitem["partnumber"]) echo htmlQuotes($lineitem["partnumber"]); else echo " ";?></td> 247 247 <td width="150"><strong><?php if($lineitem["partname"]) echo htmlQuotes($lineitem["partname"]); else echo " ";?></strong></td> 248 248 <td><?php if($lineitem["memo"]) echo htmlQuotes($lineitem["memo"]); else echo " "?></td> 249 <td align="right" nowrap ><?php echo htmlQuotes(numberToCurrency($lineitem["unitprice"]))?></td>250 <td align="center" nowrap ><?php echo $lineitem["quantity"]?></td>251 <td align="right" nowrap ><?php echo htmlQuotes(numbertoCurrency($lineitem["extended"]))?></td>249 <td align="right" nowrap="nowrap"><?php echo htmlQuotes(numberToCurrency($lineitem["unitprice"]))?></td> 250 <td align="center" nowrap="nowrap"><?php echo $lineitem["quantity"]?></td> 251 <td align="right" nowrap="nowrap"><?php echo htmlQuotes(numbertoCurrency($lineitem["extended"]))?></td> 252 252 <td align="center"><span class="LIRealInfo"><?php echo $lineitem["productid"]?>[//]<?php echo $lineitem["unitcost"]?>[//]<?php echo $lineitem["unitweight"]?>[//]<?php echo $lineitem["numprice"]?>[//]<?php echo $lineitem["quantity"]?>[//]<?php echo htmlQuotes($lineitem["memo"])?>[//]<?php echo $lineitem["taxable"]?></span> 253 <?php if($therecord["type"]=="Invoice") echo " "; else {?><button type="button" class="graphicButtons buttonMinus" on Click="return deleteLine(this)" tabindex="21" title="Remove line item"><span>-</span></button><?php } ?>253 <?php if($therecord["type"]=="Invoice") echo " "; else {?><button type="button" class="graphicButtons buttonMinus" onclick="return deleteLine(this)" tabindex="21" title="Remove line item"><span>-</span></button><?php } ?> 254 254 </td> 255 255 </tr> … … 286 286 <p id="pTotalweight"> 287 287 <label for="totalweight">total wt.</label><br/> 288 <input id="totalweight" name="totalweight" type="text" value="<?php echo $therecord["totalweight"]?>" size="5" maxlength="15" readonly=" true" class="uneditable" />288 <input id="totalweight" name="totalweight" type="text" value="<?php echo $therecord["totalweight"]?>" size="5" maxlength="15" readonly="readonly" class="uneditable" /> 289 289 </p> 290 290 … … 381 381 processing center. 382 382 </p> 383 <p><label for="paymentNotice Results">payment process results</label><br /><textarea readonly="readonly" id="paymentNoticeResults" rows="5" cols=""></textarea></p>383 <p><label for="paymentNoticeResults">payment process results</label><br /><textarea readonly="readonly" id="paymentNoticeResults" rows="5" cols=""></textarea></p> 384 384 <p align="right"> 385 385 <button type="button" class="Buttons" onclick="performPaymentProcess('<?php echo $_SESSION["app_path"] ?>')">process payment</button> … … 414 414 </tr><tr> 415 415 <td colspan="2" class="invoiceTotalLabels"><div>subtotal</div></td> 416 <td class="totalItems"><input class="uneditable fieldCurrency fieldTotal" name="totaltni" id="totaltni" type="text" value="<?php echo numberToCurrency($therecord["totaltni"])?>" size="12" maxlength="15" readonly=" true" onchange="calculateTotal();" /></td>416 <td class="totalItems"><input class="uneditable fieldCurrency fieldTotal" name="totaltni" id="totaltni" type="text" value="<?php echo numberToCurrency($therecord["totaltni"])?>" size="12" maxlength="15" readonly="readonly" onchange="calculateTotal();" /></td> 417 417 <td class="totalItems"> </td> 418 418 </tr> … … 430 430 <td colspan="2" class="invoiceTotalLabels important"><div>total</div></td> 431 431 <td class="totalItems"> 432 <input class="uneditable fieldCurrency important fieldTotal" name="totalti" id="totalti" type="text" value="<?php echo numberToCurrency($therecord["totalti"])?>" size="12" maxlength="15" onchange="calculateTotal();" readonly=" true" />432 <input class="uneditable fieldCurrency important fieldTotal" name="totalti" id="totalti" type="text" value="<?php echo numberToCurrency($therecord["totalti"])?>" size="12" maxlength="15" onchange="calculateTotal();" readonly="readonly" /> 433 433 <input id="totalcost" name="totalcost" type="hidden" value="<?php echo $therecord["totalcost"] ?>" /> 434 434 <input id="totaltaxable" name="totaltaxable" type="hidden" value="<?php echo $therecord["totaltaxable"] ?>" />