1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-12 14:12:44 +01:00

Working on taxes

This commit is contained in:
Hillel Coren 2017-05-29 19:32:32 +03:00
parent 93d9eb6636
commit 1c17bead45
2 changed files with 23 additions and 24 deletions

View File

@ -33,7 +33,9 @@
{!! Former::text('cost') !!}
@include('partials.tax_rates')
@if ($account->invoice_item_taxes)
@include('partials.tax_rates')
@endif
</div>
</div>

View File

@ -1,29 +1,26 @@
@if ($account->invoice_item_taxes)
{!! Former::select('tax_select1')
->addOption('','')
->label(isset($taxRateLabel) ? $taxRateLabel : trans('texts.tax_rate'))
->onchange('taxSelectChange(event)')
->fromQuery($taxRates) !!}
{!! Former::select('tax_select1')
->addOption('','')
->label(isset($taxRateLabel) ? $taxRateLabel : trans('texts.tax_rate'))
->onchange('taxSelectChange(event)')
->fromQuery($taxRates) !!}
<div style="display:none">
{!! Former::input('tax_rate1') !!}
{!! Former::input('tax_name1') !!}
</div>
<div style="display:none">
{!! Former::input('tax_rate1') !!}
{!! Former::input('tax_name1') !!}
</div>
<div style="display:{{ $account->enable_second_tax_rate ? 'block' : 'none' }}">
{!! Former::select('tax_select2')
->addOption('','')
->label(isset($taxRateLabel) ? $taxRateLabel : trans('texts.tax_rate'))
->onchange('taxSelectChange(event)')
->fromQuery($taxRates) !!}
<div style="display:none">
{!! Former::input('tax_rate2') !!}
{!! Former::input('tax_name2') !!}
</div>
</div>
@endif
<div style="display:{{ $account->enable_second_tax_rate ? 'block' : 'none' }}">
{!! Former::select('tax_select2')
->addOption('','')
->label(isset($taxRateLabel) ? $taxRateLabel : trans('texts.tax_rate'))
->onchange('taxSelectChange(event)')
->fromQuery($taxRates) !!}
<div style="display:none">
{!! Former::input('tax_rate2') !!}
{!! Former::input('tax_name2') !!}
</div>
</div>
<script type="text/javascript">