mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixes for invoice taxes - exclusive
This commit is contained in:
parent
fbc03aa9f7
commit
52936f2307
@ -120,19 +120,19 @@ class InvoiceSum
|
||||
{
|
||||
|
||||
if($this->invoice->tax_rate1 > 0){
|
||||
$tax = $this->taxer($this->total, $this->invoice->tax_rate1);
|
||||
$tax = $this->taxer($this->sub_total, $this->invoice->tax_rate1);
|
||||
$this->total_taxes += $tax;
|
||||
$this->total_tax_map[] = ['name' => $this->invoice->tax_name1 . ' ' . $this->invoice->tax_rate1.'%', 'total' => $tax];
|
||||
}
|
||||
|
||||
if($this->invoice->tax_rate2 > 0){
|
||||
$tax = $this->taxer($this->total, $this->invoice->tax_rate2);
|
||||
$tax = $this->taxer($this->sub_total, $this->invoice->tax_rate2);
|
||||
$this->total_taxes += $tax;
|
||||
$this->total_tax_map[] = ['name' => $this->invoice->tax_name2. ' ' . $this->invoice->tax_rate2.'%', 'total' => $tax];
|
||||
}
|
||||
|
||||
if($this->invoice->tax_rate3 > 0){
|
||||
$tax = $this->taxer($this->total, $this->invoice->tax_rate3);
|
||||
$tax = $this->taxer($this->sub_total, $this->invoice->tax_rate3);
|
||||
$this->total_taxes += $tax;
|
||||
$this->total_tax_map[] = ['name' => $this->invoice->tax_name3 . ' ' . $this->invoice->tax_rate3.'%', 'total' => $tax];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user