Merge pull request #17072 from kennethsequeira/auto-re-val

fix: spelling in validation message for Auto-reorder
This commit is contained in:
Nabin Hait 2019-04-04 11:40:08 +05:30 committed by GitHub
commit 2df623c693
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -529,7 +529,7 @@ class Item(WebsiteGenerator):
if d.get("warehouse") and d.get("warehouse") not in warehouse: if d.get("warehouse") and d.get("warehouse") not in warehouse:
warehouse += [d.get("warehouse")] warehouse += [d.get("warehouse")]
else: else:
frappe.throw(_("Row {0}: An Reorder entry already exists for this warehouse {1}") frappe.throw(_("Row {0}: Reorder entry already exists for the warehouse {1}")
.format(d.idx, d.warehouse), DuplicateReorderRows) .format(d.idx, d.warehouse), DuplicateReorderRows)
if d.warehouse_reorder_level and not d.warehouse_reorder_qty: if d.warehouse_reorder_level and not d.warehouse_reorder_qty:
@ -1008,4 +1008,4 @@ def update_variants(variants, template, publish_progress=True):
variant.save() variant.save()
count+=1 count+=1
if publish_progress: if publish_progress:
frappe.publish_progress(count*100/len(variants), title = _("Updating Variants...")) frappe.publish_progress(count*100/len(variants), title = _("Updating Variants..."))