Ankush Menat 80f1a8c645
fix: incorrect logic for "Reserved Qty for Production" (#28880)
* fix: reservation for production incorrect

The query uses case to decide what fields to compute reservation on,
this case is outermost case hence the very first Work order's "Skip
transfer" is considered for ALL work orders.

Solution: move the case inside Sum.

Steps to reproduce:
1. Make work order for more than 1 qty (with | without skip transfer)
2. Create manufacture and transfer entries.
3. Keep checking reserved quantities during this process.

* test: use default warehouse for testing reservation
2021-12-14 17:02:42 +05:30
..
2021-08-16 20:38:38 +05:30
2021-11-05 11:16:29 +05:30
2021-11-05 11:16:29 +05:30
2021-11-05 11:16:29 +05:30
2021-11-05 11:16:29 +05:30
2021-11-05 11:16:29 +05:30
2021-12-12 23:20:04 +05:30
2021-11-05 11:16:29 +05:30
2021-12-06 13:52:00 +05:30
2021-12-06 19:19:34 +05:30
2021-11-05 11:16:29 +05:30
2021-11-27 23:16:34 +00:00
2021-10-28 14:07:15 +05:30