18 SetupUtil::CONFIG_OVERRIDES => [
19 Config::CONFIG_XML_PATH_APPLY_AFTER_DISCOUNT => 1,
20 Config::XML_PATH_ALGORITHM => Calculation::CALC_ROW_BASE,
22 SetupUtil::TAX_RATE_OVERRIDES => [
23 SetupUtil::TAX_RATE_TX => 9,
24 SetupUtil::TAX_RATE_AUSTIN => 5,
26 SetupUtil::TAX_RULE_OVERRIDES => [
29 'code' =>
'Product Tax Rule TX',
30 'product_tax_class_ids' => [SetupUtil::PRODUCT_TAX_CLASS_1],
31 'tax_rate_ids' => [SetupUtil::TAX_RATE_TX],
36 'code' =>
'Product Tax Rule AUSTIN',
37 'product_tax_class_ids' => [SetupUtil::PRODUCT_TAX_CLASS_1],
38 'tax_rate_ids' => [SetupUtil::TAX_RATE_AUSTIN],
40 'calculate_subtotal' => 1,
45 'billing_address' => [
46 'region_id' => SetupUtil::REGION_TX,
48 'shipping_address' => [
49 'region_id' => SetupUtil::REGION_TX,
50 'tax_postcode' => SetupUtil::AUSTIN_POST_CODE,
65 'expected_results' => [
68 'base_subtotal' => 20.5,
69 'subtotal_incl_tax' => 23.36,
70 'base_subtotal_incl_tax' => 23.36,
72 'base_tax_amount' => 2.86,
73 'shipping_amount' => 0,
74 'base_shipping_amount' => 0,
75 'shipping_incl_tax' => 0,
76 'base_shipping_incl_tax' => 0,
77 'shipping_taxable' => 0,
78 'base_shipping_taxable' => 0,
79 'shipping_tax_amount' => 0,
80 'base_shipping_tax_amount' => 0,
81 'discount_amount' => 0,
82 'base_discount_amount' => 0,
83 'discount_tax_compensation_amount' => 0,
84 'base_discount_tax_compensation_amount' => 0,
85 'shipping_discount_tax_compensation_amount' => 0,
86 'base_shipping_discount_tax_compensation_amount' => 0,
87 'grand_total' => 23.36,
88 'base_grand_total' => 23.36,
90 SetupUtil::TAX_RATE_TX => [
93 'base_amount' => 1.84,
96 'code' => SetupUtil::TAX_RATE_TX,
97 'title' => SetupUtil::TAX_RATE_TX,
102 SetupUtil::TAX_RATE_AUSTIN => [
105 'base_amount' => 1.02,
108 'code' => SetupUtil::TAX_RATE_AUSTIN,
109 'title' => SetupUtil::TAX_RATE_AUSTIN,
118 'row_total' => 10.05,
119 'base_row_total' => 10.05,
122 'base_price' => 10.05,
123 'price_incl_tax' => 11.45,
124 'base_price_incl_tax' => 11.45,
125 'row_total_incl_tax' => 11.45,
126 'base_row_total_incl_tax' => 11.45,
128 'base_tax_amount' => 1.4,
129 'discount_amount' => 0,
130 'base_discount_amount' => 0,
131 'discount_percent' => 0,
132 'discount_tax_compensation_amount' => 0,
133 'base_discount_tax_compensation_amount' => 0,
137 'base_amount' => 0.9,
139 'id' => SetupUtil::TAX_RATE_TX,
143 'code' => SetupUtil::TAX_RATE_TX,
144 'title' => SetupUtil::TAX_RATE_TX,
148 'item_type' =>
'product',
149 'associated_item_id' =>
null,
153 'base_amount' => 0.5,
155 'id' => SetupUtil::TAX_RATE_AUSTIN,
159 'code' => SetupUtil::TAX_RATE_AUSTIN,
160 'title' => SetupUtil::TAX_RATE_AUSTIN,
164 'item_type' =>
'product',
165 'associated_item_id' =>
null,
170 'row_total' => 10.45,
171 'base_row_total' => 10.45,
174 'base_price' => 10.45,
175 'price_incl_tax' => 11.91,
176 'base_price_incl_tax' => 11.91,
177 'row_total_incl_tax' => 11.91,
178 'base_row_total_incl_tax' => 11.91,
179 'tax_amount' => 1.46,
180 'base_tax_amount' => 1.46,
181 'discount_amount' => 0,
182 'base_discount_amount' => 0,
183 'discount_percent' => 0,
184 'discount_tax_compensation_amount' => 0,
185 'base_discount_tax_compensation_amount' => 0,
189 'base_amount' => 0.94,
191 'id' => SetupUtil::TAX_RATE_TX,
195 'code' => SetupUtil::TAX_RATE_TX,
196 'title' => SetupUtil::TAX_RATE_TX,
200 'item_type' =>
'product',
201 'associated_item_id' =>
null,
205 'base_amount' => 0.52,
207 'id' => SetupUtil::TAX_RATE_AUSTIN,
211 'code' => SetupUtil::TAX_RATE_AUSTIN,
212 'title' => SetupUtil::TAX_RATE_AUSTIN,
216 'item_type' =>
'product',
217 'associated_item_id' =>
null,
$taxCalculationData['multi_tax_rule_two_row_calculate_subtotal_yes_row']