refactor: rename doctype serial and batch ledger to serial and batch entry

This commit is contained in:
Rohit Waghchaure
2023-03-21 10:54:41 +05:30
parent 16f26fb3d8
commit 5bb3173676
22 changed files with 176 additions and 211 deletions

View File

@@ -509,7 +509,7 @@ class SubcontractingController(StockController):
qty -= qty_to_consumed
if qty_to_consumed > 0:
bundle.append("ledgers", {"batch_no": batch_no, "qty": qty_to_consumed * -1})
bundle.append("entries", {"batch_no": batch_no, "qty": qty_to_consumed * -1})
def __set_serial_nos_for_bundle(self, bundle, qty, key):
bundle.has_serial_no = 1
@@ -525,7 +525,7 @@ class SubcontractingController(StockController):
if batch_no:
self.available_materials[key]["batch_no"][batch_no] -= 1
bundle.append("ledgers", {"serial_no": sn, "batch_no": batch_no, "qty": -1})
bundle.append("entries", {"serial_no": sn, "batch_no": batch_no, "qty": -1})
self.available_materials[key]["serial_no"].remove(sn)