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

Swapnil Shah commented on OFBIZ-5566:
-------------------------------------

[~ofbizzer] As per the existing implementation, whenever any task is completed, 
system assumes that all 'Qty to Produced' set over production run header is 
produced EXCEPT the Rejected Qty. So :
# As per the above reported flow by user, when she hits 'Quick Complete' then,
#- First task end up showing Produced=8 because 2 units got rejected from it at 
the time of declaration
#- Second task end up showing Produced=9 because 1 units got rejected from it 
at the time of declaration
#- Now because user has already stocked In 1 unit via "Production Run Declare 
And Produce" section and last (Second) task had finally produced only 9 units, 
so finally for the whole production run only 9 units can be produced and hence 
upon 'Quick Complete' the '"Production Run Declare And Produce"' section shows 
to stock in the remaining qty of 8 units.
# Finally when user performs 'Quick Close' then the remaining 8 units get 
produced/stocked in and hence the total Produced Qty is shown as '9 units' over 
header (which doesn't exceed what is produced through last routing task).

Of course as of now there is no checks in place in the existing implementation 
that prevents user to produce less than or equal to what is produced in its 
immediate predecessor task probably by assuming that there is enough WIP to 
fulfill and produce the whole qty by subsequent task. But if there is any 
special case then we can definitely plan it as improvement. 

> Production Run Header and tasks quantityProduced incorrect when 
> completing/closing
> ----------------------------------------------------------------------------------
>
>                 Key: OFBIZ-5566
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-5566
>             Project: OFBiz
>          Issue Type: Bug
>          Components: manufacturing
>    Affects Versions: Trunk
>            Reporter: Christian Carlow
>
> The produced quantity gets set incorrectly when completing or closing 
> production runs.  
> To reproduce:
> 1.  Create a production run to product 10 of PIZZA
> 2.  Click "Confirm" then "Quick Start All Tasks"
> 3.  Declare 2 produced and 2 rejected for the first task
> 4.  Declare 1 produced and 1 rejected for the second task
> 5.  Stock In 1 in "Production Run Declare And Produce" section
> 6.  Notice at this point the quantity produced for the header is 1 and 2 for 
> the first task and 1 for the second task
> 7.  Click "Quick Close" or "Quick Complete"
> 8.  Notice the quantity produced for the header was changed to 9 and 8 for 
> the first task and 9 for the second
> This doesn't make sense.  First, the second task should not have a quantity 
> produced greater than the prior task.  Also since the first task only 
> produced 8, the production run header seems like it should be limited to a 
> max quantity produced value of 8.
> Besides that problem, I don't think the quantities should be increased to 
> values greater than what was already declared.  In other words when I close 
> the production run, I expected the quantity produced for the header to remain 
> 1 and 2 for the first task and 1 for the second.



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

Reply via email to