@@ 347-351 (lines=5) @@ | ||
344 | ], |
|
345 | 'UnitPrice' => round(floatval($product->getPrice()), $config->rounding_precision) |
|
346 | ]; |
|
347 | if ($tax_class_name) { |
|
348 | $tax_calculator = new $tax_class_name; |
|
349 | $sales_order_line['LineTax'] = round( |
|
350 | $tax_calculator->value($item->Total()), |
|
351 | $config->rounding_precision |
|
352 | ); |
|
353 | $sales_order_line['LineTaxCode'] = $tax_code; |
|
354 | } |
|
@@ 377-381 (lines=5) @@ | ||
374 | ], |
|
375 | 'UnitPrice' => round(floatval($modifier->Amount), $config->rounding_precision) |
|
376 | ]; |
|
377 | if ($tax_class_name) { |
|
378 | $tax_calculator = new $tax_class_name; |
|
379 | $sales_order_line['LineTax'] = round( |
|
380 | $tax_calculator->value($modifier->Amount), |
|
381 | $config->rounding_precision |
|
382 | ); |
|
383 | $sales_order_line['LineTaxCode'] = $tax_code; |
|
384 | } |