You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Albert Mayo (JIRA)" <ji...@apache.org> on 2009/11/23 20:13:39 UTC

[jira] Commented: (OFBIZ-3253) possible bug with adding an item to an order that has a canceled item

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

Albert Mayo commented on OFBIZ-3253:
------------------------------------

This happens because because the service "loadCartFromOrder" is called from the function "loadCartForUpdate".  Inside the service loadCartFromOrder, the only items that are loaded into the cart are the "valid" order items with the function OrderReadHelper.getValidOrderItems, which exclude canceled items.

When items are added and the makeOrderItems function is called, it will use the next item sequence number which could be the same number of the canceled item.

> possible bug with adding an item to an order that has a canceled item
> ---------------------------------------------------------------------
>
>                 Key: OFBIZ-3253
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-3253
>             Project: OFBiz
>          Issue Type: Bug
>          Components: order
>    Affects Versions: Release Branch 4.0
>            Reporter: Albert Mayo
>
> 1. I created an order with GZ-1000 and GZ-1004.
> 2. I canceled the GZ-1004 item.
> 3. I added GZ-1001 to the order.
> Instead of putting GZ-1001 as a new line item, it looks like GZ-1001 replaces the GZ-1004 line item.
> I say it is a possible bug because I do not know if this is the functional intent.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.