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

Swapnil Shah edited comment on OFBIZ-7300 at 6/11/16 8:53 PM:
--------------------------------------------------------------

Just for reference, i remember, few of earlier clients using Ofbiz order 
workflow have handled it in following manner:

Say, An order is in following state
# First order line item ordered=4, received=2, cancelled=0, remaining=2, Item 
status=APPROVED
# Second order line item with qty=5, received=0, cancelled=0, remaining=5, Item 
status=APPROVED
# Order Header is in APPROVED status

*Use case#1* :When user cancel the order itself (via 'Cancel Order' option)
# First order line item should be moved to COMPLETED and it would have 
ordered=4, received=2,cancelled=2,remaining=0   
# Second order line item should be moved to CANCELLED and it would have 
ordered=5, received=0,cancelled=5,remaining=0  
# Order status would be 'COMPLETED' 

*Use case#2* :When user cancel the first order line item (via Cancel option 
against given line item)
# First order line item should be moved to COMPLETED and it would have 
ordered=4, received=2,cancelled=2,remaining=0   
# Second order line item should remain as APPROVED and it would have ordered=5, 
received=0,cancelled=0,remaining=5 
# Order status would also remain as  'APPROVED' 

*Use case#3* :When user cancel the Second order line item (via Cancel option 
against given line item)
# First order line item should remain as APPROVED and it would have ordered=4, 
received=2,cancelled=0,remaining=2   
# Second order line item should be moved to CANCELLED and it would have 
ordered=5, received=0,cancelled=5,remaining=0  
# Order status would also remain as  'APPROVED'    

In case of Sale order similar treatment expected by honoring "Shipped" qty 
instead of "Received" qty (as these use cases could be referred over OFBIZ-7299 
as well)


was (Author: swash78):
Just for reference, i remember, few of earlier clients using Ofbiz order 
workflow have handled it in following manner:

Say, An order is in following state
# First order line item ordered=4, received=2, cancelled=0, remaining=2, Item 
status=APPROVED
# Second order line item with qty=5, received=0, cancelled=0, remaining=5, Item 
status=APPROVED
# Order Header is in APPROVED status

*Use case#1* :When user cancel the order itself (via 'Cancel Order' option)
# First order line item should be moved to COMPLETED and it would have 
ordered=4, received=2,cancelled=2,remaining=0   
# Second order line item should be moved to CANCELLED and it would have 
ordered=5, received=0,cancelled=5,remaining=0  
# Order status would be 'COMPLETED' 

*Use case#2* :When user cancel the first order line item (via Cancel option 
against given line item)
# First order line item should be moved to COMPLETED and it would have 
ordered=4, received=2,cancelled=2,remaining=0   
# Second order line item should remain as APPROVED and it would have ordered=5, 
received=0,cancelled=0,remaining=5 
# Order status would also remain as  'APPROVED' 

*Use case#3* :When user cancel the Second order line item (via Cancel option 
against given line item)
1) First order line item should remain as APPROVED and it would have ordered=4, 
received=2,cancelled=0,remaining=2   
2) Second order line item should be moved to CANCELLED and it would have 
ordered=5, received=0,cancelled=5,remaining=0  
3) Order status would also remain as  'APPROVED'    

In case of Sale order similar treatment expected by honoring "Shipped" qty 
instead of "Received" qty (as these use cases could be referred over OFBIZ-7299 
as well)

> partial received orders are getting cancelled using cancel option over order 
> header 
> ------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-7300
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-7300
>             Project: OFBiz
>          Issue Type: Bug
>            Reporter: Ankush Upadhyay
>
> Steps to reproduce:
> 1. Place purchase order with some quantities.
> 2. Receive few quantities.
> 3. Now cancel the order.
> Actual Behaviour:
> Order gets cancelled, status in OrderHeader change to ORDER_CANCELLED and in 
> OrderItem change to ITEM_CANCELLED.
> Expected result:
> Order should mark to ORDER_COMPLETED and item should mark to ITEM_COMPLETED,
> Remaining quantity (unreceived) should be set in OrderItem.cancelQuantity.



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

Reply via email to