From: <tim...@us...> - 2010-07-11 16:57:52
|
Revision: 3603 http://web-erp.svn.sourceforge.net/web-erp/?rev=3603&view=rev Author: tim_schofield Date: 2010-07-11 16:57:46 +0000 (Sun, 11 Jul 2010) Log Message: ----------- Fix typo in variable declaration Modified Paths: -------------- trunk/doc/Change.log.html trunk/includes/DefineCartClass.php Modified: trunk/doc/Change.log.html =================================================================== --- trunk/doc/Change.log.html 2010-07-10 21:10:57 UTC (rev 3602) +++ trunk/doc/Change.log.html 2010-07-11 16:57:46 UTC (rev 3603) @@ -1,5 +1,6 @@ <p><font SIZE=4 COLOR=BLUE><b>webERP Change Log</b></font></p> <p></p> +<p>11/07/10 Tim: DefineCartClass.php - Fix typo in variable declaration</p> <p>10/07/10 Tim: StockTransfers - Bug fixes, correctly round the decimal places, fix sql quoting errors and layout changes</p> <p>10/07/10 Tim: Bulk Transfers - Bug fixes, correctly round the decimal places, fix sql quoting errors and layout changes</p> <p>09/07/10 Tim: GLTrialBalance.php - Bug fixes, layout improvements changed period number to date and year and sql fixes</p> Modified: trunk/includes/DefineCartClass.php =================================================================== --- trunk/includes/DefineCartClass.php 2010-07-10 21:10:57 UTC (rev 3602) +++ trunk/includes/DefineCartClass.php 2010-07-11 16:57:46 UTC (rev 3603) @@ -63,7 +63,7 @@ $this->total=0; $this->ItemsOrdered=0; $this->LineCounter=0; - $this->DefaltSalesType=""; + $this->DefaultSalesType=""; $this->FreightCost =0; $this->FreightTaxes = array(); } @@ -97,7 +97,7 @@ $ExRate=1){ if (isset($StockID) AND $StockID!="" AND $Qty>0 AND isset($Qty)){ - + if ($Price<0){ /*madness check - use a credit note to give money away!*/ $Price=0; } @@ -170,13 +170,13 @@ Return 0; } - function update_cart_item( $UpdateLineNumber, - $Qty, - $Price, - $Disc, - $Narrative, - $UpdateDB='No', - $ItemDue, + function update_cart_item( $UpdateLineNumber, + $Qty, + $Price, + $Disc, + $Narrative, + $UpdateDB='No', + $ItemDue, $POLine, $GPPercent){ @@ -489,7 +489,7 @@ $this->StandardCost = $StandardCost; $this->EOQ = $EOQ; $this->NextSerialNo = $NextSerialNo; - + if ($Prc > 0){ $this->GPPercent = ((($Prc * (1 - $DiscPercent)) - ($StandardCost * $ExRate))*100)/$Prc; } else { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |