feat: added negative inventory validation and restrict to make backdated entry for serial nos

This commit is contained in:
Rohit Waghchaure
2023-03-20 14:15:34 +05:30
parent 674bd3e2e5
commit 86da306cca
8 changed files with 209 additions and 46 deletions

View File

@@ -531,6 +531,11 @@ class SellingController(StockController):
if item_row.warehouse:
sle.dependant_sle_voucher_detail_no = item_row.name
if item_row.serial_and_batch_bundle:
sle["serial_and_batch_bundle"] = self.make_package_for_transfer(
item_row.serial_and_batch_bundle, item_row.target_warehouse
)
return sle
def set_po_nos(self, for_validate=False):