mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Hide 2nd tax rate until option is available
This commit is contained in:
parent
0c2bd4414d
commit
a2f9daf190
@ -18,7 +18,7 @@
|
|||||||
font-weight: normal !important;
|
font-weight: normal !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
select.tax-select {
|
select.xtax-select {
|
||||||
width: 50%;
|
width: 50%;
|
||||||
float: left;
|
float: left;
|
||||||
}
|
}
|
||||||
@ -271,14 +271,16 @@
|
|||||||
->raw() !!}
|
->raw() !!}
|
||||||
<input type="text" data-bind="value: tax_name1, attr: {name: 'invoice_items[' + $index() + '][tax_name1]'}" style="display:none">
|
<input type="text" data-bind="value: tax_name1, attr: {name: 'invoice_items[' + $index() + '][tax_name1]'}" style="display:none">
|
||||||
<input type="text" data-bind="value: tax_rate1, attr: {name: 'invoice_items[' + $index() + '][tax_rate1]'}" style="display:none">
|
<input type="text" data-bind="value: tax_rate1, attr: {name: 'invoice_items[' + $index() + '][tax_rate1]'}" style="display:none">
|
||||||
{!! Former::select('')
|
<div style="display:none">
|
||||||
->addOption('', '')
|
{!! Former::select('')
|
||||||
->options($taxRateOptions)
|
->addOption('', '')
|
||||||
->data_bind('value: tax2')
|
->options($taxRateOptions)
|
||||||
->addClass('tax-select')
|
->data_bind('value: tax2')
|
||||||
->raw() !!}
|
->addClass('tax-select')
|
||||||
<input type="text" data-bind="value: tax_name2, attr: {name: 'invoice_items[' + $index() + '][tax_name2]'}" style="display:none">
|
->raw() !!}
|
||||||
<input type="text" data-bind="value: tax_rate2, attr: {name: 'invoice_items[' + $index() + '][tax_rate2]'}" style="display:none">
|
<input type="text" data-bind="value: tax_name2, attr: {name: 'invoice_items[' + $index() + '][tax_name2]'}" style="display:none">
|
||||||
|
<input type="text" data-bind="value: tax_rate2, attr: {name: 'invoice_items[' + $index() + '][tax_rate2]'}" style="display:none">
|
||||||
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align:right;padding-top:9px !important" nowrap>
|
<td style="text-align:right;padding-top:9px !important" nowrap>
|
||||||
<div class="line-total" data-bind="text: totals.total"></div>
|
<div class="line-total" data-bind="text: totals.total"></div>
|
||||||
@ -427,14 +429,16 @@
|
|||||||
->raw() !!}
|
->raw() !!}
|
||||||
<input type="text" name="tax_name1" data-bind="value: tax_name1" style="display:none">
|
<input type="text" name="tax_name1" data-bind="value: tax_name1" style="display:none">
|
||||||
<input type="text" name="tax_rate1" data-bind="value: tax_rate1" style="display:none">
|
<input type="text" name="tax_rate1" data-bind="value: tax_rate1" style="display:none">
|
||||||
{!! Former::select('')
|
<div style="display:none">
|
||||||
->addOption('', '')
|
{!! Former::select('')
|
||||||
->options($taxRateOptions)
|
->addOption('', '')
|
||||||
->addClass('tax-select')
|
->options($taxRateOptions)
|
||||||
->data_bind('value: tax2')
|
->addClass('tax-select')
|
||||||
->raw() !!}
|
->data_bind('value: tax2')
|
||||||
<input type="text" name="tax_name2" data-bind="value: tax_name2" style="display:none">
|
->raw() !!}
|
||||||
<input type="text" name="tax_rate2" data-bind="value: tax_rate2" style="display:none">
|
<input type="text" name="tax_name2" data-bind="value: tax_name2" style="display:none">
|
||||||
|
<input type="text" name="tax_rate2" data-bind="value: tax_rate2" style="display:none">
|
||||||
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align: right"><span data-bind="text: totals.taxAmount"/></td>
|
<td style="text-align: right"><span data-bind="text: totals.taxAmount"/></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
Loading…
Reference in New Issue
Block a user