Merge pull request #2931 from opensourcepos/fix_tax_basis

Fixes #2920 issue
This commit is contained in:
odiea
2020-08-21 10:15:50 -06:00
committed by GitHub

View File

@@ -80,7 +80,7 @@ class Tax_lib
foreach($tax_info as $tax)
{
// This computes tax for each line item and adds it to the tax type total
$tax_basis = $this->CI->sale_lib->get_item_total($item['quantity'], $item['price'], $item['discount'], TRUE);
$tax_basis = $this->CI->sale_lib->get_item_total($item['quantity'], $item['price'], $item['discount'], $item['discount_type'], TRUE);
$tax_amount = 0.0;
if($this->CI->config->item('tax_included'))