mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 13:04:30 -04:00
Merge inclusive tax fix
This commit is contained in:
parent
3061209ea7
commit
b8c0375b3e
@ -289,11 +289,10 @@ class InvoiceController extends BaseController
|
|||||||
$taxRateOptions = $account->present()->taxRateOptions;
|
$taxRateOptions = $account->present()->taxRateOptions;
|
||||||
if ($invoice->exists) {
|
if ($invoice->exists) {
|
||||||
foreach ($invoice->getTaxes() as $key => $rate) {
|
foreach ($invoice->getTaxes() as $key => $rate) {
|
||||||
$key = '0 ' . $key;
|
|
||||||
if (isset($taxRateOptions[$key])) {
|
if (isset($taxRateOptions[$key])) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
$taxRateOptions[$key] = $rate['name'] . ' ' . $rate['rate'] . '%';
|
$taxRateOptions['0 ' . $key] = $rate['name'] . ' ' . $rate['rate'] . '%';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user