mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 17:04:47 +00:00
fix: zero valuation rate for the batch
This commit is contained in:
@@ -113,6 +113,7 @@ class SerialBatchBundle:
|
||||
"is_rejected": self.is_rejected_entry(),
|
||||
"is_packed": self.is_packed_entry(),
|
||||
"make_bundle_from_sle": 1,
|
||||
"sle": self.sle,
|
||||
}
|
||||
).make_serial_and_batch_bundle()
|
||||
|
||||
@@ -1036,6 +1037,14 @@ class SerialBatchCreation:
|
||||
|
||||
if not hasattr(self, "do_not_submit") or not self.do_not_submit:
|
||||
doc.flags.ignore_voucher_validation = True
|
||||
if self.get("sle"):
|
||||
doc.flags.ignore_validate = True
|
||||
doc.save()
|
||||
self.sle.db_set("serial_and_batch_bundle", doc.name, update_modified=False)
|
||||
|
||||
if doc.flags.ignore_validate:
|
||||
doc.flags.ignore_validate = False
|
||||
|
||||
doc.submit()
|
||||
else:
|
||||
doc.save()
|
||||
|
||||
Reference in New Issue
Block a user