From 848269ff1cac90f8bdcc16323bf109f1b3ff3dd9 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Fri, 10 Feb 2017 09:29:56 +0200 Subject: [PATCH] Fix taxes for new quotes --- app/Http/Controllers/QuoteController.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/QuoteController.php b/app/Http/Controllers/QuoteController.php index 244c38c619..ea6983c362 100644 --- a/app/Http/Controllers/QuoteController.php +++ b/app/Http/Controllers/QuoteController.php @@ -100,7 +100,11 @@ class QuoteController extends BaseController $defaultTax = false; foreach ($rates as $rate) { - $options[$rate->rate . ' ' . $rate->name] = $rate->name . ' ' . ($rate->rate + 0) . '%'; + $name = $rate->name . ' ' . ($rate->rate + 0) . '%'; + if ($rate->is_inclusive) { + $name .= ' - ' . trans('texts.inclusive'); + } + $options[($rate->is_inclusive ? '1 ' : '0 ') . $rate->rate . ' ' . $rate->name] = $name; // load default invoice tax if ($rate->id == $account->default_tax_rate_id) {