fix: Added validation for stock reconciliation in stock ledger entry

This commit is contained in:
deepeshgarg007 2019-01-02 11:31:55 +05:30
parent 9eb99dc61e
commit 9c0c633259

View File

@ -31,7 +31,7 @@ class StockLedgerEntry(Document):
self.check_stock_frozen_date()
self.actual_amt_check()
if not self.get("via_landed_cost_voucher"):
if not self.get("via_landed_cost_voucher") and self.voucher_type != 'Stock Reconciliation':
from erpnext.stock.doctype.serial_no.serial_no import process_serial_no
process_serial_no(self)
@ -132,4 +132,4 @@ def on_doctype_update():
frappe.db.add_index("Stock Ledger Entry", ["voucher_no", "voucher_type"])
frappe.db.add_index("Stock Ledger Entry", ["batch_no", "item_code", "warehouse"])