refactor: serial and batch package creation for finished item and cleanup code

This commit is contained in:
Rohit Waghchaure
2023-03-20 22:56:06 +05:30
parent 86da306cca
commit 16f26fb3d8
11 changed files with 220 additions and 699 deletions

View File

@@ -407,7 +407,6 @@ class StockController(AccountsController):
else:
bundle_doc.save(ignore_permissions=True)
print(bundle_doc.name)
return bundle_doc.name
def get_sl_entries(self, d, args):
@@ -428,7 +427,6 @@ class StockController(AccountsController):
),
"incoming_rate": 0,
"company": self.company,
"serial_no": d.get("serial_no"),
"project": d.get("project") or self.get("project"),
"is_cancelled": 1 if self.docstatus == 2 else 0,
}