Merge pull request #56512 from frappe/revert-56500-mergify/bp/version-16-hotfix/pr-56497

Revert "fix: handle missing serial and batch bundle in print format (backport #56497)"
This commit is contained in:
Mihir Kandoi
2026-06-26 12:56:19 +05:30
committed by GitHub

View File

@@ -608,16 +608,10 @@ def get_serial_nos_from_bundle(serial_and_batch_bundle, serial_nos=None):
def get_serial_or_batch_nos(bundle):
# For print format
if not bundle:
return ""
bundle_data = frappe.get_cached_value(
"Serial and Batch Bundle", bundle, ["has_serial_no", "has_batch_no"], as_dict=True
)
if not bundle_data:
return bundle
fields = []
if bundle_data.has_serial_no:
fields.append("serial_no")