X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=taxes%2Ftax_calc.inc;fp=taxes%2Ftax_calc.inc;h=004fcd33fcb49ae2bc64a497bd21692b5969b760;hb=1c01c6f19f3a1410814abb63e4143d080373aaba;hp=84aa9ce6372595ca380371e985178753dea4dace;hpb=eea7d897f2c6b2234d4fca235a5a2d30ac900b45;p=fa-stable.git diff --git a/taxes/tax_calc.inc b/taxes/tax_calc.inc index 84aa9ce6..004fcd33 100644 --- a/taxes/tax_calc.inc +++ b/taxes/tax_calc.inc @@ -91,7 +91,7 @@ function get_base_taxdata($stock_id, $group_id) /* Main tax procedure splitting transaction item value according to item tax rules applicable: - $stock_id - stock item code; special case is '' for shipping + $stock_id - stock item code; NULL for shipping $amount - price/value to be splitted $tax_group - entity tax group $tax_included - whether value includes all taxes @@ -230,7 +230,7 @@ function get_tax_for_items($trans_type, $items, $prices, $shipping_cost, $tax_gr // if shipping cost is passed, just add to the prices/items tables if ($shipping_cost != 0) { - $items[] = null; + $items[] = NULL; $prices[] = $shipping_cost; if ($vat_factors) $vat_factors[] = 1;