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

Leon commented on OFBIZ-4134:
-----------------------------

following is the steps to re-produce this issue:
1. (in order entry--additem page) choose a product, e.g. "GZ-1000", input 
quantity as "1", then click "submit" directly. An cart item will be shown in 
"Order Items" list
2. choose same product again, e.g. "GZ-1000", input quantity as "2", select a 
"Desired Delivery Date" and input some comments, then click "submit". This 
time, according to my understanding, there should be second (a new ) item in 
"Order items" list, but in fact there's only one.

The reason for this issue is because ShoppingCartItem.equals method return true 
if the attribute of either cart item or new item is empty.

> Shopping Cart Item, treat items contains same product but with or without 
> comment as same shopping cart item
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-4134
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4134
>             Project: OFBiz
>          Issue Type: Bug
>          Components: order
>    Affects Versions: SVN trunk
>            Reporter: Leon
>            Priority: Minor
>             Fix For: SVN trunk
>
>         Attachments: ShoppingCartItem.patch
>
>
> In "add order item" page, you select a product and leave other field empty, 
> submit. Then you select same product but input some comment, after submit, 
> you can only get one item in shopping cart item list with its order quantity 
> increased but the comment written in second time is discard.

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

Reply via email to