wms
wms copied to clipboard
[14.0] shopfloor_reception: take into account backorders qty done if auto_post is enabled
For reception, in the select_move screen, we were displaying the qty done for each move in the picking. However, this would always be 0 if auto posting was enabled.
Now, it will display the qty done for the move (if it hasn't been posted elsewhere) + the qty done for that product in all related backorders.
ref: rau-120
Hi @simahawk, @mmequignon, @sebalix, @guewen, some modules you are maintaining are being modified, check this out!
@mmequignon Can you update your review?
backorders_quantity_done can be empty in the response if auto_post_enabled is false in the scenario config. You cannot use this field like this in the frontend. Also, I still think this shouldn't be the frontend task to compute the qty done.
I've updated it so that it falls back to 0 if nothing is returned.
Regarding moving to the backend, I understand but I still think it's ok to give both pieces of information back to the frontend and then let it decide what to do with them, as each quantity has its own meaning.
There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.