mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 00:44:45 +00:00
fix: while submitting landed cost voucher user getting negative stock error (#19269)
This commit is contained in:
committed by
Nabin Hait
parent
3f2c5c2319
commit
0bb99c15e5
@@ -129,7 +129,7 @@ class LandedCostVoucher(Document):
|
|||||||
|
|
||||||
# update stock & gl entries for submit state of PR
|
# update stock & gl entries for submit state of PR
|
||||||
doc.docstatus = 1
|
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()
|
doc.make_gl_entries()
|
||||||
|
|
||||||
def update_rate_in_serial_no(self, receipt_document):
|
def update_rate_in_serial_no(self, receipt_document):
|
||||||
|
|||||||
Reference in New Issue
Block a user