fix: voucher detail no in SABB

(cherry picked from commit c37a56ec89)
This commit is contained in:
Rohit Waghchaure
2026-03-01 13:32:00 +05:30
committed by Mergify
parent 88b4699025
commit 744d7a2793
3 changed files with 33 additions and 3 deletions

View File

@@ -401,6 +401,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