fix(ux): change batch selection message to alert (#36500)

* fix(ux): change batch selection message to alert

* chore: linters
This commit is contained in:
Dany Robert
2023-08-17 18:01:15 +05:30
committed by GitHub
parent b773465b41
commit 641fe7738c

View File

@@ -297,7 +297,9 @@ def get_batch_no(item_code, warehouse, qty=1, throw=False, serial_no=None):
frappe.msgprint( frappe.msgprint(
_( _(
"Please select a Batch for Item {0}. Unable to find a single batch that fulfills this requirement" "Please select a Batch for Item {0}. Unable to find a single batch that fulfills this requirement"
).format(frappe.bold(item_code)) ).format(frappe.bold(item_code)),
indicator="yellow",
alert=(not throw),
) )
if throw: if throw:
raise UnableToSelectBatchError raise UnableToSelectBatchError