[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 1.4 ; db TABLEs invoice,orderitems ; drop field precision ?



yes, i agree, the field precision is fetched from db;  but , as far as
i can see, never used!

 $query = qq|SELECT o.id AS orderitems_id, p.partnumber, p.assembly,
o.description, o.qty, o.sellprice, o.precision,.....

But , as far as i can see, the fetched value is not used!
if it were used , we should see a line similar to :  aVar=$aRref->{precision}

a few lines further on, decimalplaces is calculated from sellprice
value, instead of  being set from precision

  ($decimalplaces) = ( $ref->{sellprice} =~ /\.(\d+)/ );
   $decimalplaces = length $decimalplaces;
  $decimalplaces = ( $decimalplaces > 2 ) ? $decimalplaces : 2;


Best Wishes,
Herman

2012/2/3 Chris Travers <..hidden..>:
> Query starting OE.pm line 880 for example....
>
> Best Wishes,
> Chris Travers
>
> ------------------------------------------------------------------------------
> Try before you buy = See our experts in action!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-dev2
> _______________________________________________
> Ledger-smb-devel mailing list
> ..hidden..
> https://lists.sourceforge.net/lists/listinfo/ledger-smb-devel
>