fix: vadd validation in stock ledger entry

This commit is contained in:
pateljannat
2021-02-10 18:44:38 +05:30
parent 14717eeac6
commit 5ac5d86d84

View File

@@ -25,10 +25,11 @@ class StockLedgerEntry(Document):
def validate(self):
self.flags.ignore_submit_comment = True
from erpnext.stock.utils import validate_warehouse_company
from erpnext.stock.utils import validate_warehouse_company, validate_disabled_warehouse
self.validate_mandatory()
self.validate_item()
self.validate_batch()
validate_disabled_warehouse(self.warehouse)
validate_warehouse_company(self.warehouse, self.company)
self.scrub_posting_time()
self.validate_and_set_fiscal_year()