Merge inclusive tax fix

This commit is contained in:
Hillel Coren 2017-03-24 14:54:43 +03:00
parent 3061209ea7
commit b8c0375b3e

View File

@ -289,11 +289,10 @@ 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[$key] = $rate['name'] . ' ' . $rate['rate'] . '%';
$taxRateOptions['0 ' . $key] = $rate['name'] . ' ' . $rate['rate'] . '%';
}
}