Rounding Precision Error

Dear All

The following error came while preparing Sales order

"The value of round parameter 2 is outside of the permitted range.

The current value is 0

The permitted range is from 1 to 2147483647"

Where as in my G/L Set Inv. Rounding Precesion is 1

Please help me to sort out the problem.

Thanks.

This is not related to Inv. Rounding Precesion value.

the 2nd parameter is wrong in the rounding function…please check it or paste the rounding function here…

Not always true… It\s a bit more complicated, because here are MANY rounding precision setups - invoice, VAT, payment tolerance, ForEx rates and maybe more, I can\t be sure I remember them all by heart now.

Setting all these up is a little bit messy process, they can come into conflict sometimes - that is, somewhere rounding is allowed, and somewhe it is set to zero, and in such case the msg quoted pops up.

It looks like setup problem, not direct and errorenous usage of rounding func somewhere in code, as mohana suggested earlier…

8171.error.docx (178 KB)

Please find attached docx file for the error

Actually the error is showing in : Form - onaftergetrecord()

itemcostmgt.calculateaveragecost(rec,AveragecostLcy, Averagecostacy)

please check and inform me

Thanks

What is “Averagecostacy”?

Is it a decimal?