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

Paul Foxworthy commented on OFBIZ-9592:
---------------------------------------

Hi Jacques,

I'm not sure, but after some thought, here's where I ended up.

The two most important numbers, to my mind, are the quantity the customer wants 
*after* any cancellations, and the quantity outstanding we still have to 
deliver. So put them at the top. Also add a line to imply that Required is the 
quantity originally ordered less any cancellations.

Required            6                         Outstanding  6
Cancelled          2
                         ----
Orig Ordered     8

Notice I have renamed "Remaining" to "Required" - this is the quantity the 
customer wants.

Change "Ordered" to "Orig Ordered" or "Originally Ordered". If there have been 
cancellations, this number is not as important. It should be there but not at 
the top.

I did consider other words to clarify "Remaining", such as "Needed"? "Wanted"? 
"Now Needed/Wanted/Required"? "Still Needed/Wanted/Required"? "After 
cancellations"? "Remaining (O - C)"?

We can hide the the Cancelled and Orig Ordered when there have not been 
cancellations? They're just noise in the simple situation. 

Maybe add a rollover or an i for information icon for these labels. Do you know 
of anywhere else in OFBiz that does that?

What do people think?


> Order Item "Remaining" duplicates "Outstanding" 
> ------------------------------------------------
>
>                 Key: OFBIZ-9592
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-9592
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: order
>    Affects Versions: Trunk, Upcoming Branch
>            Reporter: Paul Foxworthy
>            Assignee: Paul Foxworthy
>            Priority: Major
>              Labels: order, order_item
>
> In the quantities relating to order items, there are two numbers presented: 
> "remaining" and "outstanding". The calculations for these two numbers are 
> identical.
> Compare
> [https://github.com/apache/ofbiz-framework/blame/trunk/applications/order/template/order/OrderItems.ftl#L252]
> for a purchase order item (and two lines below for a sales order item)
> with
> [https://github.com/apache/ofbiz-framework/blame/trunk/applications/order/template/order/OrderItems.ftl#L303]
>  for a purchases order item (and two lines below for a sales order item)
> The only difference I can see between the Remaining and Outstanding numbers 
> is the extra test the second time to force the outstanding number to zero for 
> a status of ITEM_COMPLETED.
> There are two different numbers because the original intent was that 
> Remaining is the quantity after any cancellations, so in the common situation 
> where there have been no cancellations, Remaining should be the same as the 
> original quantity ordered.
> A bug was introduced in a commit a long time ago, where "Remaining" was 
> changed so it replicates "Outstanding".
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to