fix: voucher detail no in SABB

This commit is contained in:
Rohit Waghchaure
2026-03-01 13:32:00 +05:30
parent 4c374e182d
commit c37a56ec89
3 changed files with 33 additions and 3 deletions

View File

@@ -399,6 +399,9 @@ class SerialBatchBundle:
def submit_serial_and_batch_bundle(self):
doc = frappe.get_doc("Serial and Batch Bundle", self.sle.serial_and_batch_bundle)
if self.sle.voucher_detail_no and doc.voucher_detail_no != self.sle.voucher_detail_no:
doc.voucher_detail_no = self.sle.voucher_detail_no
self.validate_actual_qty(doc)
doc.flags.ignore_voucher_validation = True