commit | 4263344cd2a71ef2c743fd78695ea47f0323afab | [log] [tgz] |
---|---|---|
author | Anand Doshi <anand@erpnext.com> | Tue Sep 03 16:21:21 2013 +0530 |
committer | Anand Doshi <anand@erpnext.com> | Tue Sep 03 16:21:21 2013 +0530 |
tree | 884fced42d9acdb8909c9b7b3fb256cfeb3b89de | |
parent | 1dadf35fc739c79f3f5af0d2df8462fbf6e5187d [diff] |
[fix] [minor] customer-wise discount
diff --git a/selling/utils.py b/selling/utils.py index 53ebbee..ca99512 100644 --- a/selling/utils.py +++ b/selling/utils.py
@@ -161,7 +161,7 @@ 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: