[fix] [minor] customer-wise discount

This commit is contained in:
Anand Doshi 2013-09-03 16:21:21 +05:30
parent 1dadf35fc7
commit 4263344cd2

View File

@ -161,7 +161,7 @@ def _get_item_discount(item_group, customer):
FROM `tabItem Group` AS node, `tabItem Group` AS parent
WHERE parent.lft <= node.lft and parent.rgt >= node.rgt and node.name = %s
GROUP BY parent.name
ORDER BY parent.lft desc""", item_group)]
ORDER BY parent.lft desc""", (item_group,))]
discount = 0
for d in parent_item_groups: