I create profit/loss journal and their lines from code. When i insert a journal line, i have the quantity and the cost amount of the record and I calculate the cost price by using the formula given below :
inventJournalTrans.costPrice = PriceDisc::amount2Price(inventJournalTrans.costAmount,
0,
0,
inventJournalTrans.qty,
0,
1,
'',
0);
I know that the system also calculates the cost price in this way.
But when i try to validate or post the journal, system gives me the error below :
"Incorrect rounding of amount"
If i modify the cost price or the cost amount ON THE FORM and finally i see the same price and amount as before, it validates. I couldn't understand!!!
May someone help me???
Thankx in advance.
---------------------------------
Do you Yahoo!?
Vote for the stars of Yahoo!'s next ad campaign!
[Non-text portions of this message have been removed]
| Yahoo! Groups Sponsor | |
|
|
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 the Yahoo! Terms of Service.

