From: skaill <sk...@ro...> - 2004-09-23 21:10:26
|
MessageUmm...probably the include and exit need to be within those = braces too... ----- Original Message -----=20 From: skaill=20 To: web...@li...=20 Sent: Thursday, September 23, 2004 12:33 PM Subject: Re: [Web-erp-developers] CVS File Error's Looks like it's checking whether there is at least one line that has a = positive quantity. I believe the echo line should be changed to if ($QuantityInvoicedIsPositive) { echo '<BR><FONT SIZE=3D4 COLOR=3DRED>Error: </FONT>' . _('There are no = lines on this order with a quantity to invoice. No furth$ } Something is wrong with that echo too. Where's the closing parenthesis? = What is furth$? If you let me know the script and whereabouts within the script I'll = look further... Steve ----- Original Message -----=20 From: Chris Bice=20 To: web...@li...=20 Sent: Thursday, September 23, 2004 10:43 AM Subject: RE: [Web-erp-developers] CVS File Error's The error is in this line of code: /*First check there are lines on the dipatch with quantities to = invoice invoices can have a zero amount but there must be a quantity to = invoice */ $QuantityInvoicedIsPositive =3D false;=20 =20 foreach ($_SESSION['Items']->LineItems as $OrderLine) { if ($OrderLine->QtyDispatched > 0){ $QuantityInvoicedIsPositive =3Dtrue; } } echo '<BR><FONT SIZE=3D4 COLOR=3DRED>Error: </FONT>' . = _('There are no lines on this order with a quantity to invoice. No = furth$ include('includes/footer.inc'); =20 exit; -----Original Message----- From: web...@li... = [mailto:web...@li...] On Behalf Of = Chris Bice Sent: Thursday, September 23, 2004 9:40 AM To: web...@li... Subject: [Web-erp-developers] CVS File Error's Ok, I have downloaded the latest CSV. I upgraded from 2.8 to 2.9 to = 2.10 with the SQL Upgrade Scripts. Now when I Try and process an = Invoice, it gives me an error saying I have to have something in the = Quantity Field, or Line to Process. There are 7 Lines on this Invoice.=20 Are there going to be major issues with upgrading from a couple = previous versions to the letst CVS version?? |