From: Phil D. <we...@pa...> - 2005-06-29 08:18:34
|
Well the value of $POLine->DecimalPlaces is set by the PO class function that creates a new line. function add_to_order($LineNo, $StockID, $Serialised, $Controlled, $Qty, $ItemDescr, $Price, $UOM, $GLCode, $ReqDelDate, $ShiptRef, $JobRef, $QtyInv=0, $QtyRecd=0, $GLActName='', $DecimalPlaces=0){ ie it defaults to 0 - we could equally make it default to some other value ... 0 seemed like a good idea at the time - maybe 2 would be a better compromise? Phil On Tue, 28 Jun 2005 16:51, emdeex wrote: > Line 716 of PO_Items.php appears to set the number of decimal places > to display for a line item in th Purchase Order. > > $DisplayQuantity = number_format($POLine->Quantity,$POLine->DecimalPlaces); > > But if the item being ordered is a non-stock item, there is no decimal > place variable set. > > So a non-stock order of say "0.5" of a square meter, will display as "0". > > And ideas on how to fix this? > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=Click > _______________________________________________ > Web-erp-developers mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-erp-developers -- Phil Daintree webERP Project Admin |