typo
This commit is contained in:
parent
73d0e97c3d
commit
5fd9e82ba6
@ -425,15 +425,15 @@ abstract class Form extends Component
|
||||
|
||||
protected function getCurrency($document, $currency, $currency_code)
|
||||
{
|
||||
if (!empty($currency)) {
|
||||
if (! empty($currency)) {
|
||||
return $currency;
|
||||
}
|
||||
|
||||
if (!empty($currency_code)) {
|
||||
if (! empty($currency_code)) {
|
||||
$currency = Currency::where('code', $currency_code)->first();
|
||||
}
|
||||
|
||||
if (empty($currency) && !empty($document)) {
|
||||
if (empty($currency) && ! empty($document)) {
|
||||
$currency = Currency::where('code', $document->currency_code)->first();
|
||||
}
|
||||
|
||||
|
@ -39,6 +39,7 @@ return [
|
||||
'error' => [
|
||||
'self_delete' => 'Error: Can not delete yourself!',
|
||||
'self_disable' => 'Error: Can not disable yourself!',
|
||||
'unassigned' => 'Error: Can not unassigned company! The :company company must be assigned at least one user.',
|
||||
'no_company' => 'Error: No company assigned to your account. Please, contact the system administrator.',
|
||||
],
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
id="{{ $formId }}"
|
||||
:route="$formRoute"
|
||||
method="{{ $formMethod }}"
|
||||
:model="$contact"
|
||||
:model="$document"
|
||||
>
|
||||
@if (! $hideCompany)
|
||||
<x-documents.form.company :type="$type" />
|
||||
|
Loading…
x
Reference in New Issue
Block a user