Merge inclusive tax fix
This commit is contained in:
parent
b8c0375b3e
commit
4ce76ef138
1 changed files with 2 additions and 1 deletions
|
|
@ -289,10 +289,11 @@ class InvoiceController extends BaseController
|
|||
$taxRateOptions = $account->present()->taxRateOptions;
|
||||
if ($invoice->exists) {
|
||||
foreach ($invoice->getTaxes() as $key => $rate) {
|
||||
$key = '0 ' . $key;
|
||||
if (isset($taxRateOptions[$key])) {
|
||||
continue;
|
||||
}
|
||||
$taxRateOptions['0 ' . $key] = $rate['name'] . ' ' . $rate['rate'] . '%';
|
||||
$taxRateOptions[$key] = $rate['name'] . ' ' . $rate['rate'] . '%';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue