fix: Reservation Based On in the reservation entry

This commit is contained in:
Rohit Waghchaure
2025-06-12 15:44:53 +05:30
parent 46985e0f3c
commit 57429e5d90
3 changed files with 78 additions and 4 deletions

View File

@@ -839,7 +839,7 @@ class SellingController(StockController):
sre_doc = frappe.get_doc("Stock Reservation Entry", sre)
qty_can_be_deliver = 0
if sre_doc.reservation_based_on == "Serial and Batch":
if sre_doc.reservation_based_on == "Serial and Batch" and item.serial_and_batch_bundle:
sbb = frappe.get_doc("Serial and Batch Bundle", item.serial_and_batch_bundle)
if sre_doc.has_serial_no:
delivered_serial_nos = [d.serial_no for d in sbb.entries]