Merge pull request #20503 from sunhoww/patch-4

fix: [v11] negative stock error at landed cost voucher
This commit is contained in:
Deepesh Garg
2020-02-02 17:35:54 +05:30
committed by GitHub

View File

@@ -124,7 +124,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):