Don’t allow changing tax type after it’s created

This commit is contained in:
Hillel Coren 2018-01-23 16:27:50 +02:00
parent 65918a456b
commit fa91c698d4

View File

@ -28,7 +28,7 @@
{!! Former::text('name')->label('texts.name') !!} {!! Former::text('name')->label('texts.name') !!}
{!! Former::text('rate')->label('texts.rate')->append('%') !!} {!! Former::text('rate')->label('texts.rate')->append('%') !!}
@if (! auth()->user()->account->inclusive_taxes) @if (! $taxRate && ! auth()->user()->account->inclusive_taxes)
{!! Former::radios('is_inclusive')->radios([ {!! Former::radios('is_inclusive')->radios([
trans('texts.exclusive') . ': 100 + 10% = 100 + 10' => array('name' => 'is_inclusive', 'value' => 0), trans('texts.exclusive') . ': 100 + 10% = 100 + 10' => array('name' => 'is_inclusive', 'value' => 0),
trans('texts.inclusive') . ':  100 + 10% = 90.91 + 9.09' => array('name' => 'is_inclusive', 'value' => 1), trans('texts.inclusive') . ':  100 + 10% = 90.91 + 9.09' => array('name' => 'is_inclusive', 'value' => 1),