You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2021/09/27 18:28:00 UTC

[jira] [Commented] (OFBIZ-11928) Explode items not handling tax and adjustments properly

    [ https://issues.apache.org/jira/browse/OFBIZ-11928?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17420957#comment-17420957 ] 

ASF subversion and git services commented on OFBIZ-11928:
---------------------------------------------------------

Commit c6bd86d53ef9150a17607e8517b28baf09c5d49f in ofbiz-framework's branch refs/heads/trunk from Nicolas Malin
[ https://gitbox.apache.org/repos/asf?p=ofbiz-framework.git;h=c6bd86d ]

Fixed: Explode items not handling tax and adjustments properly (OFBIZ-11928)

If you set explodeItems to true on your productStore, tax and adjustment wasn't correctly calculate when you ordered some finish goods.

Thanks: Suraj Khurana and Ankush Upadhyay


> Explode items not handling tax and adjustments properly
> -------------------------------------------------------
>
>                 Key: OFBIZ-11928
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-11928
>             Project: OFBiz
>          Issue Type: Bug
>          Components: order
>    Affects Versions: Release Branch 18.12, Release Branch 17.12, Trunk
>            Reporter: Suraj Khurana
>            Assignee: Nicolas Malin
>            Priority: Major
>         Attachments: OFBIZ-11928.patch, image-2020-08-22-14-54-06-042.png
>
>
> Steps to re-generate:
> 1) Create order with 4 qty of purple Gizmo and 3 qty of GZ-1000 - Tiny Gizmo 
>  2) Now change explode item to Y
>  3) Again create same order with same products and same quantity
>  4) Notice difference in item subtotal and grand total
> I see two issues here:
>  - item subtotal is 191.93 and 191.94, this should be addressed 191.94 is correct when explode is set to N (default order)
>  Code reference: It should be handled inside ShoppingCartItem.java#explodeItem
>  - Total sales tax is different in both orders:
>  10.72 and -0.03 which can be checked if this is any configuration issue, or taxes are not being handled while exploding items.
> Demo orders on trunk (will not last for long):
>  explode: N
>  [https://demo-trunk.ofbiz.apache.org/ordermgr/control/orderview?orderId=WSCO10001
> ]explode: Y
>  [https://demo-trunk.ofbiz.apache.org/ordermgr/control/orderview?orderId=WSCO10000]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)