From bd6edb2d2c3e608375793f224fbf0528d0e3cb14 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Fri, 24 Mar 2017 14:58:43 +0300 Subject: [PATCH] Merge inclusive tax fix --- app/Http/Controllers/InvoiceController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/InvoiceController.php b/app/Http/Controllers/InvoiceController.php index cc0aa3b669e8..640a6503f27c 100644 --- a/app/Http/Controllers/InvoiceController.php +++ b/app/Http/Controllers/InvoiceController.php @@ -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'] . '%'; } }