Show ‘Default tax rate’

This commit is contained in:
Hillel Coren 2017-05-22 10:52:14 +03:00
parent d71b073504
commit 324c4d107f
2 changed files with 3 additions and 3 deletions

View File

@ -47,7 +47,7 @@
 
@include('partials.tax_rates')
@include('partials.tax_rates', ['taxRateLabel' => trans('texts.default_tax_rate_id')])
 
{!! Former::actions( Button::success(trans('texts.save'))->submit()->appendIcon(Icon::create('floppy-disk')) ) !!}

View File

@ -1,7 +1,7 @@
@if ($account->invoice_item_taxes)
{!! Former::select('tax_select1')
->addOption('','')
->label(trans('texts.tax_rate'))
->label(isset($taxRateLabel) ? $taxRateLabel : trans('texts.tax_rate'))
->onchange('taxSelectChange(event)')
->fromQuery($taxRates) !!}
@ -13,7 +13,7 @@
<div style="display:{{ $account->enable_second_tax_rate ? 'block' : 'none' }}">
{!! Former::select('tax_select2')
->addOption('','')
->label(trans('texts.tax_rate'))
->label(isset($taxRateLabel) ? $taxRateLabel : trans('texts.tax_rate'))
->onchange('taxSelectChange(event)')
->fromQuery($taxRates) !!}