mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-02 19:59:12 +00:00
Minor fixes
This commit is contained in:
@@ -107,7 +107,7 @@ def get_item_groups(pos_profile):
|
|||||||
if pos_profile.get('item_groups'):
|
if pos_profile.get('item_groups'):
|
||||||
# Get items based on the item groups defined in the POS profile
|
# Get items based on the item groups defined in the POS profile
|
||||||
for data in pos_profile.get('item_groups'):
|
for data in pos_profile.get('item_groups'):
|
||||||
item_groups.extend(["'%s'"%d.name for d in get_child_nodes('Item Group', data.item_group)])
|
item_groups.extend(["'%s'" % frappe.db.escape(d.name) for d in get_child_nodes('Item Group', data.item_group)])
|
||||||
|
|
||||||
return list(set(item_groups))
|
return list(set(item_groups))
|
||||||
|
|
||||||
|
|||||||
@@ -431,7 +431,7 @@ class BuyingController(StockController):
|
|||||||
d.schedule_date = self.schedule_date
|
d.schedule_date = self.schedule_date
|
||||||
|
|
||||||
if d.schedule_date and getdate(d.schedule_date) < getdate(self.transaction_date):
|
if d.schedule_date and getdate(d.schedule_date) < getdate(self.transaction_date):
|
||||||
frappe.throw(_("Expected Date cannot be before Transaction Date"))
|
frappe.throw(_("Row #{0}: Reqd by Date cannot be before Transaction Date").format(d.idx))
|
||||||
else:
|
else:
|
||||||
frappe.throw(_("Please enter Schedule Date"))
|
frappe.throw(_("Please enter Reqd by Date"))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user