mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-13 17:53:49 +00:00
fix(picklist): calculate picked qty excluding the delivered qty
(cherry picked from commit f5b75b27d7)
This commit is contained in:
@@ -743,7 +743,10 @@ class PickList(TransactionBase):
|
|||||||
pi_item.serial_no,
|
pi_item.serial_no,
|
||||||
(
|
(
|
||||||
Case()
|
Case()
|
||||||
.when((pi_item.picked_qty > 0) & (pi_item.docstatus == 1), pi_item.picked_qty)
|
.when(
|
||||||
|
(pi_item.picked_qty > 0) & (pi_item.docstatus == 1),
|
||||||
|
pi_item.picked_qty - pi_item.delivered_qty,
|
||||||
|
)
|
||||||
.else_(pi_item.stock_qty)
|
.else_(pi_item.stock_qty)
|
||||||
).as_("picked_qty"),
|
).as_("picked_qty"),
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user