You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Anil K Patel (Resolved) (JIRA)" <ji...@apache.org> on 2011/10/28 04:15:32 UTC

[jira] [Resolved] (OFBIZ-4519) Order adjustment prorating does not work as expected for when creating an invoice for an order with partially canceled items

     [ https://issues.apache.org/jira/browse/OFBIZ-4519?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Anil K Patel resolved OFBIZ-4519.
---------------------------------

    Resolution: Fixed

Fix applied to trunk r1190134 and 11.0 r 1190135. Martin, thanks for contribution.
                
> Order adjustment prorating does not work as expected for when creating an invoice for an order with partially canceled items
> ----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-4519
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4519
>             Project: OFBiz
>          Issue Type: Bug
>          Components: order
>    Affects Versions: SVN trunk
>            Reporter: Martin Kreidenweis
>            Assignee: Anil K Patel
>         Attachments: OFBIZ-4519.patch
>
>
> We had a problem with creating invoices for orders with partially canceled items (OrderItem.cancelQuantity > 0). The pro-rating of the order adjustments doesn't work as expected. 
> In the createInvoiceForOrder the billingQuantity passed to the service takes into account the cancelQuantity, whereas the quantity from the original order item used to prorate the order adjustment amount does not. The attached patch changes this by calling OrderReadHelper.getOrderItemQuantity() like done for the billItem orderItem, instead of reading the quantity from the original orderItem directly. 
> I'm not 100% sure this doesn't break anything else. Maybe there was a reason not to take the cancelQuantity into account here. It does not break any OFBiz tests though. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira