[Minor]Removed alert=true from frappe.throw (#11904)

This commit is contained in:
KanchanChauhan 2017-12-11 12:24:43 +05:30 committed by Nabin Hait
parent 0419e2384d
commit 7f8df06663

View File

@ -934,7 +934,7 @@ def get_warehouse_details(args):
@frappe.whitelist()
def validate_sample_quantity(item_code, sample_quantity, qty, batch_no = None):
if cint(qty) < cint(sample_quantity):
frappe.throw(_("Sample quantity {0} cannot be more than received quantity {1}").format(sample_quantity, qty), alert=True)
frappe.throw(_("Sample quantity {0} cannot be more than received quantity {1}").format(sample_quantity, qty))
retention_warehouse = frappe.db.get_single_value('Stock Settings', 'sample_retention_warehouse')
retainted_qty = 0
if batch_no: