pricing rule testcase fixes
This commit is contained in:
parent
e7546e2305
commit
47a8670d37
@ -20,6 +20,7 @@ class TestPricingRule(unittest.TestCase):
|
||||
"price_or_discount": "Discount Percentage",
|
||||
"price": 0,
|
||||
"discount_percentage": 10,
|
||||
"company": "_Test Company"
|
||||
}
|
||||
frappe.get_doc(test_record.copy()).insert()
|
||||
|
||||
@ -36,7 +37,6 @@ class TestPricingRule(unittest.TestCase):
|
||||
"transaction_type": "selling",
|
||||
"customer": "_Test Customer",
|
||||
})
|
||||
|
||||
details = get_item_details(args)
|
||||
self.assertEquals(details.get("discount_percentage"), 10)
|
||||
|
||||
|
@ -268,6 +268,7 @@ def apply_pricing_rule(args):
|
||||
args.supplier_type = frappe.db.get_value("Supplier", args.supplier, "supplier_type")
|
||||
|
||||
pricing_rules = get_pricing_rules(args)
|
||||
|
||||
pricing_rule = filter_pricing_rules(args, pricing_rules)
|
||||
|
||||
if pricing_rule:
|
||||
|
Loading…
x
Reference in New Issue
Block a user