That is true it returns 2 decimals, despite it uses 3, 4 - depending on unit, but the 
view is defined by EDT. 

Darius


>Hello there,
>
>I am having some difficulties with decimals in Axapta.
>
>It seems that Axapta will always use 2 decimals - everywhere...
>
>A simple job like "(100 * 100.1)" will return a value of 10010.00; i.e. 2
>decimals. Similarly, if you multiply 2 4-decimal values, Axapta will also
>return only 2 decimals.
>
>Another example:
>Take a look at the initFromPriceDisc method of the table SalesLine:
>
>void initFromPriceDisc(PriceDisc priceDisc)
>{
>    ;
>    this.salesPrice         = priceDisc.price();
>    this.priceUnit          = priceDisc.priceUnit();
>    this.salesMarkup        = priceDisc.markup();
>    this.confirmedDlv       = this.salesTable().deliveryDate;
>
>    if (priceDisc.deliveryDays())
>        this.confirmedDlv = max(systemdateGet() + priceDisc.deliveryDays(),
>this.confirmedDlv);
>}
>
>this.salesPrice will always return 2 decimals, even though I have modified
>the EDT (actually created a new one that extends the original one) to hold 4
>decimals.
>
>If I - for testing purposes - change to "this.SalesPrice         = 4.5678;",
>this will return all 4 decimals.
>
>All I want is to have the unit prices in SalesLine and PurchLine reflect the
>relevant price in PriceDiscTable. Please note that all fields (SalesPrice,
>PurchPrice etc.) have been setup to accept 4 decimals, but something goes
>wrong in the above method.
>
>What am I missing here... ?
>
>Thanks in advance.
>
>Best Regards,
>Jens
>
>Ax_30_SP1
>
>
>
>
>
> 
>Yahoo! Groups Links
>
>
>
> 
>
>



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/saFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/development-axapta/

<*> To unsubscribe from this group, send an email to:
     [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/
 


Reply via email to