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

Show VAT for ninja account clients

This commit is contained in:
Hillel Coren 2018-02-16 15:04:29 +02:00
parent fc2a264bfb
commit b6527eef1b
2 changed files with 2 additions and 2 deletions

View File

@ -998,7 +998,7 @@ class ClientPortalController extends BaseController
$rules['first_name'] = 'required';
$rules['last_name'] = 'required';
}
if ($account->vat_number) {
if ($account->vat_number || $account->isNinjaAccount()) {
$rules['vat_number'] = 'required';
}

View File

@ -69,7 +69,7 @@
->placeholder(trans('texts.email'))
->label('') !!}
</div>
@if ($account->vat_number)
@if ($account->vat_number || $account->isNinjaAccount())
<div class="col-md-6">
{!! Former::text('vat_number')
->placeholder(trans('texts.vat_number'))