Rounding error in invoices
-------------------------- Key: OFBIZ-971 URL: https://issues.apache.org/jira/browse/OFBIZ-971 Project: OFBiz (The Open for Business Project) Issue Type: Bug Components: accounting Reporter: Jacopo Cappellato Here is a way to recreate a rounding error with seed data: 1) enter an order for DemoCustomer for 10 units of WG-1111 2) select no-shipping as the shipping method 3) split ship the order: 5 units (plus the promo item) in the first shipment; pack the shipment to get the invoice and capture 4) create the second shipment for the remaining 5 units; pack the shipment to get the invoice and capture You'll get: order total = 344.65 total first invoice = 172.32 total second invoice = 172.32 So the total amount captured and invoiced is 344.64 instead of 344.65 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
[ https://issues.apache.org/jira/browse/OFBIZ-971?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jacopo Cappellato closed OFBIZ-971. ----------------------------------- Resolution: Won't Fix Thinking more about this, it is not an error and probably the best way of handling this situation. The important thing is that OFBiz captures the exact amount invoiced. > Rounding error in invoices > -------------------------- > > Key: OFBIZ-971 > URL: https://issues.apache.org/jira/browse/OFBIZ-971 > Project: OFBiz (The Open for Business Project) > Issue Type: Bug > Components: accounting > Reporter: Jacopo Cappellato > > Here is a way to recreate a rounding error with seed data: > 1) enter an order for DemoCustomer for 10 units of WG-1111 > 2) select no-shipping as the shipping method > 3) split ship the order: 5 units (plus the promo item) in the first shipment; pack the shipment to get the invoice and capture > 4) create the second shipment for the remaining 5 units; pack the shipment to get the invoice and capture > You'll get: > order total = 344.65 > total first invoice = 172.32 > total second invoice = 172.32 > So the total amount captured and invoiced is 344.64 instead of 344.65 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-971?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12494284 ] Jonathon Wong commented on OFBIZ-971: ------------------------------------- Suggestion: Round up (to nearest cent) all invoices before the last. For the last invoice, subtract previous invoice amounts from the order total, and output the remaining. First invoice: 172.33 Second invoice: 172.33 - 0.01 for "rounding adjustments". > Rounding error in invoices > -------------------------- > > Key: OFBIZ-971 > URL: https://issues.apache.org/jira/browse/OFBIZ-971 > Project: OFBiz (The Open for Business Project) > Issue Type: Bug > Components: accounting > Reporter: Jacopo Cappellato > > Here is a way to recreate a rounding error with seed data: > 1) enter an order for DemoCustomer for 10 units of WG-1111 > 2) select no-shipping as the shipping method > 3) split ship the order: 5 units (plus the promo item) in the first shipment; pack the shipment to get the invoice and capture > 4) create the second shipment for the remaining 5 units; pack the shipment to get the invoice and capture > You'll get: > order total = 344.65 > total first invoice = 172.32 > total second invoice = 172.32 > So the total amount captured and invoiced is 344.64 instead of 344.65 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
Free forum by Nabble | Edit this page |