mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-13 17:53:49 +00:00
fix(stock): ignore current voucher in reserved stock validation
(cherry picked from commit 0e7f9711e1)
This commit is contained in:
@@ -2235,6 +2235,10 @@ def get_future_sle_with_negative_batch_qty(sle_args):
|
||||
|
||||
|
||||
def validate_reserved_stock(kwargs):
|
||||
# ignore current voucher when validating the reserved stock
|
||||
if not kwargs.ignore_voucher_nos and kwargs.voucher_no:
|
||||
kwargs.ignore_voucher_nos = [kwargs.voucher_no]
|
||||
|
||||
if kwargs.serial_no:
|
||||
validate_reserved_serial_nos(kwargs)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user