[jira] [Comment Edited] (OFBIZ-7255) Not able to cancel quantity of order item less than ordered quantity

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Comment Edited] (OFBIZ-7255) Not able to cancel quantity of order item less than ordered quantity

Nicolas Malin (Jira)

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

Divesh Dutta edited comment on OFBIZ-7255 at 6/10/16 10:49 AM:
---------------------------------------------------------------

When this issue was created, I was also thinking that this issue is not valid, because as [~deepak.dixit] mentioned , user can edit order to reduce the quantity of an order . But after thinking more no it, I think we can still work on this ticket. This might not be bug and we can change this to an improvement.  I will tell why I think we can still work on this ticket.

OrderItem table have field cancelQuantity . In current OFBiz work flow, when user clicks on cancel quantity, all items are cancelled in one shot. But I think this is a valid business case that you have taken an order, and then customer calls back after some time and says that he would like to cancel some items. So say 5 items have been ordered and customer wants to cancel 2 items.

So one option is to edit the order item from 5 to 3. But this does not records in system that  2 items are cancelled. In order view page, cancelled items are shown as 0. But if we leverage cancelQuantity field of OrderItem table and allow user to cancel 2 items out of 5, then we can save 2 quantity in cancelQuantity field of OrderItem table and in Order view we can show 2 items are cancelled.

So we have data model and UI for it, but we don't have support in code. So I think we can make this improvement. As per my above given example, in OrderItemChange table , cancelled item will be recorded as "Cancelled" instead of "Order Item Change". So I think for logging purpose this is better flow to allow user to cancel items.

So user will have both the options, cancel item or edit order item.

Please let us know what do you think  [~rishisolankii] and [~deepak.dixit] and [~mridul.pathak]




was (Author: diveshdut):
When this issue was created, I was also thinking that this issue is not valid, because you as [~deepak.dixit] mentioned , user can edit order to reduce the quantity of an order . But after thinking more no it, I think we can still work on this ticket. This might not be but and we can change this to an improvement.  I will tell why I think we can still work on this ticket.

OrderItem table have field cancelQuantity . In current OFBiz work flow, when user clicks on cancel quantity, all items are cancelled in one shot. But I think this is a valid business case that you have taken an order, and then customer calls back after some time and says that he would like to cancel some items. So say 5 items have been ordered and customer wants to cancel 2 items.

So one option is to edit the order item from 5 to 3. But this does not records in system that  2 items are cancelled. In order view page, cancelled items are shown as 0. But if we leverage cancelQuantity field of OrderItem table and allow user to cancel 2 items out of 5, then we can save 2 quantity in cancelQuantity field of OrderItem table and in Order view we can show 2 items are cancelled.

So we have data model and UI for it, but we don't have support in code. So I think we can make this improvement. As per my above given example, in OrderItemChange table , cancelled item will be recorded as "Cancelled" instead of "Order Item Change". So I think for logging purpose this is better flow to allow user to cancel items.

So user will have both the options, cancel item or edit order item.

> Not able to cancel quantity of order item less than ordered quantity
> --------------------------------------------------------------------
>
>                 Key: OFBIZ-7255
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-7255
>             Project: OFBiz
>          Issue Type: Bug
>          Components: order
>            Reporter: Mohammad Kathawala
>         Attachments: Screenshot1.png, Screenshot2.png, Screenshot3.png
>
>
> Steps to generate:
> 1) Create a sales order with item quantity more than 1. Lets suppose 3.
> 2) Go to order overview page and click on 'Edit Items'.
> 3) Try to cancel the item with quantity less than 3. Lets suppose 2.
> Expected result:
> Item's 2 quantity should be cancelled.
> Actual result:
> All 3 quantity gets cancelled.
> See attached screenshots for more info.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)