mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Fix taxes for new quotes
This commit is contained in:
parent
7b0adb5655
commit
848269ff1c
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user