From 0bb99c15e5f2dd4148e5db1d870561b1e4be4409 Mon Sep 17 00:00:00 2001 From: rohitwaghchaure Date: Mon, 14 Oct 2019 15:18:36 +0530 Subject: [PATCH] fix: while submitting landed cost voucher user getting negative stock error (#19269) --- .../stock/doctype/landed_cost_voucher/landed_cost_voucher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/stock/doctype/landed_cost_voucher/landed_cost_voucher.py b/erpnext/stock/doctype/landed_cost_voucher/landed_cost_voucher.py index d001a91f2f5..3f370935ef1 100644 --- a/erpnext/stock/doctype/landed_cost_voucher/landed_cost_voucher.py +++ b/erpnext/stock/doctype/landed_cost_voucher/landed_cost_voucher.py @@ -129,7 +129,7 @@ class LandedCostVoucher(Document): # update stock & gl entries for submit state of PR doc.docstatus = 1 - doc.update_stock_ledger(via_landed_cost_voucher=True) + doc.update_stock_ledger(allow_negative_stock=True, via_landed_cost_voucher=True) doc.make_gl_entries() def update_rate_in_serial_no(self, receipt_document):