Hi,

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
ADVERTISEMENT
click here


Yahoo! Groups Links

Reply via email to