Hi all, i have a problem when posting a purchase invoice. during posting it adjusts value entries and diaplys division by zero error. any idea from where it can be originating?
Turn on the debugger and check it out. My first guess would be a quantity and that it is trying to divide an amount by that quantity to get a unit amount.
Well if you found the error you should be able to trace it back to how the value is calculated.
If it's dividing by a field, look at that field. If it's just a variable, you should be able to look at the code and see where the calculation happens.
As a workaround, you can also uncheck "Automatic Cost Adjustment" in the "Inventory Setup" to get the purchase posted and then do the adjustment manually later by running the "Adjust Cost - Item Entries" Report to see if the error occurs there too.
Comments
My Blog - nav.education
If it's dividing by a field, look at that field. If it's just a variable, you should be able to look at the code and see where the calculation happens.
My Blog - nav.education