Commit fea2aab4 authored by Yusei Tahara's avatar Yusei Tahara

Fix typo of base_amount/tax category id.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30854 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fec3c923
...@@ -2400,7 +2400,7 @@ class TestTradeModelLine(TestTradeModelLineMixin): ...@@ -2400,7 +2400,7 @@ class TestTradeModelLine(TestTradeModelLineMixin):
# create a model line and set target level to `delivery`. # create a model line and set target level to `delivery`.
tax = self.createTradeModelLine(trade_condition, tax = self.createTradeModelLine(trade_condition,
reference='TAX', reference='TAX',
base_application_list=['base_amount/taxable'], base_application_list=['base_amount/tax'],
base_contribution_list=['base_amount/total_tax']) base_contribution_list=['base_amount/total_tax'])
tax.edit(price=0.05, target_level=TARGET_LEVEL_DELIVERY) tax.edit(price=0.05, target_level=TARGET_LEVEL_DELIVERY)
...@@ -2412,11 +2412,11 @@ class TestTradeModelLine(TestTradeModelLineMixin): ...@@ -2412,11 +2412,11 @@ class TestTradeModelLine(TestTradeModelLineMixin):
order_line_1 = order.newContent(portal_type=self.order_line_portal_type, order_line_1 = order.newContent(portal_type=self.order_line_portal_type,
price=1000, quantity=1, price=1000, quantity=1,
resource_value=resource_A, resource_value=resource_A,
base_contribution_list=['base_amount/taxable']) base_contribution_list=['base_amount/tax'])
order_line_2 = order.newContent(portal_type=self.order_line_portal_type, order_line_2 = order.newContent(portal_type=self.order_line_portal_type,
price=500, quantity=1, price=500, quantity=1,
resource_value=resource_B, resource_value=resource_B,
base_contribution_list=['base_amount/taxable']) base_contribution_list=['base_amount/tax'])
amount_list = trade_condition.getAggregatedAmountList(order) amount_list = trade_condition.getAggregatedAmountList(order)
self.assertEqual(1, len(amount_list)) self.assertEqual(1, len(amount_list))
self.assertEqual(set([order_line_1, order_line_2]), self.assertEqual(set([order_line_1, order_line_2]),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment