typo
This commit is contained in:
parent
4e6988373c
commit
38c6ccd9c7
@ -171,7 +171,7 @@ abstract class Report
|
||||
$sum += is_array($total) ? array_sum($total) : $total;
|
||||
}
|
||||
|
||||
$total = $this->has_money ? money($sum, setting('default.currency'), true)->format() : $sum;
|
||||
$total = $this->has_money ? money($sum, default_currency(), true)->format() : $sum;
|
||||
} else {
|
||||
$total = trans('general.na');
|
||||
}
|
||||
|
@ -67,7 +67,7 @@ class CreateBankingDocumentTransaction extends Job implements ShouldCreate
|
||||
$currency_code = !empty($this->request['currency_code']) ? $this->request['currency_code'] : $this->model->currency_code;
|
||||
|
||||
$this->request['company_id'] = $this->model->company_id;
|
||||
$this->request['currency_code'] = isset($this->request['currency_code']) ? $this->request['currency_code'] : $this->model->currency_code;
|
||||
$this->request['currency_code'] = $currency_code;
|
||||
$this->request['paid_at'] = isset($this->request['paid_at']) ? $this->request['paid_at'] : Date::now()->toDateTimeString();
|
||||
$this->request['currency_rate'] = config('money.' . $currency_code . '.rate');
|
||||
$this->request['account_id'] = isset($this->request['account_id']) ? $this->request['account_id'] : setting('default.account');
|
||||
|
@ -66,7 +66,7 @@ class UpdateBankingDocumentTransaction extends Job implements ShouldUpdate
|
||||
$currency_code = ! empty($this->request['currency_code']) ? $this->request['currency_code'] : $this->model->currency_code;
|
||||
|
||||
$this->request['company_id'] = $this->model->company_id;
|
||||
$this->request['currency_code'] = isset($this->request['currency_code']) ? $this->request['currency_code'] : $this->model->currency_code;
|
||||
$this->request['currency_code'] = $currency_code;
|
||||
$this->request['paid_at'] = isset($this->request['paid_at']) ? $this->request['paid_at'] : Date::now()->toDateTimeString();
|
||||
$this->request['currency_rate'] = config('money.' . $currency_code . '.rate');
|
||||
$this->request['account_id'] = isset($this->request['account_id']) ? $this->request['account_id'] : setting('default.account');
|
||||
|
@ -28,7 +28,7 @@ class CreateDocumentItem extends Job implements HasOwner, HasSource, ShouldCreat
|
||||
|
||||
public function handle(): DocumentItem
|
||||
{
|
||||
$item_id = !empty($this->request['item_id']) ? $this->request['item_id'] : 0;
|
||||
$item_id = ! empty($this->request['item_id']) ? $this->request['item_id'] : 0;
|
||||
$precision = config('money.' . $this->document->currency_code . '.precision');
|
||||
|
||||
$item_amount = (double) $this->request['price'] * (double) $this->request['quantity'];
|
||||
@ -36,7 +36,7 @@ class CreateDocumentItem extends Job implements HasOwner, HasSource, ShouldCreat
|
||||
$item_discounted_amount = $item_amount;
|
||||
|
||||
// Apply line discount to amount
|
||||
if (!empty($this->request['discount'])) {
|
||||
if (! empty($this->request['discount'])) {
|
||||
if ($this->request['discount_type'] === 'percentage') {
|
||||
$item_discounted_amount -= ($item_amount * ($this->request['discount'] / 100));
|
||||
} else {
|
||||
|
@ -63,7 +63,7 @@
|
||||
{{ trans('modules.free') }}
|
||||
</span>
|
||||
@else
|
||||
@if (!empty($module->is_discount))
|
||||
@if (! empty($module->is_discount))
|
||||
{!! trans('modules.monthly_price', ['price' => '<del class="text-danger">' . $module->yearly_per_monthly_price . '</del> ' . $module->yearly_per_monthly_special_price]) !!}
|
||||
@else
|
||||
{!! trans('modules.monthly_price', ['price' => $module->yearly_per_monthly_price]) !!}
|
||||
|
@ -4,7 +4,7 @@
|
||||
<x-tabs.nav id="general">
|
||||
{{ trans('general.general') }}
|
||||
|
||||
<span class="invalid-feedback block text-xs text-red whitespace-normal" v-if="form.errors.has('name')||form.errors.has('email')||form.errors.has('phone')||form.errors.has('tax_number')||form.errors.has('currency_code')">
|
||||
<span class="invalid-feedback block text-xs text-red whitespace-normal" v-if="form.errors.has('name') || form.errors.has('email') || form.errors.has('phone') || form.errors.has('tax_number') || form.errors.has('currency_code')">
|
||||
{{ trans('general.validation_error') }}
|
||||
</span>
|
||||
</x-tabs.nav>
|
||||
@ -12,7 +12,7 @@
|
||||
<x-tabs.nav id="address">
|
||||
{{ trans('general.address') }}
|
||||
|
||||
<span class="invalid-feedback block text-xs text-red whitespace-normal" v-if="form.errors.has('address')||form.errors.has('city')||form.errors.has('zip_code')||form.errors.has('state')||form.errors.has('country')">
|
||||
<span class="invalid-feedback block text-xs text-red whitespace-normal" v-if="form.errors.has('address') || form.errors.has('city') || form.errors.has('zip_code') || form.errors.has('state') || form.errors.has('country')">
|
||||
{{ trans('general.validation_error') }}
|
||||
</span>
|
||||
</x-tabs.nav>
|
||||
@ -20,7 +20,7 @@
|
||||
<x-tabs.nav id="other">
|
||||
{{ trans_choice('general.others', 1) }}
|
||||
|
||||
<span class="invalid-feedback block text-xs text-red whitespace-normal" v-if="form.errors.has('website')||form.errors.has('reference')">
|
||||
<span class="invalid-feedback block text-xs text-red whitespace-normal" v-if="form.errors.has('website') || form.errors.has('reference')">
|
||||
{{ trans('general.validation_error') }}
|
||||
</span>
|
||||
</x-tabs.nav>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<x-tabs.nav id="general">
|
||||
{{ trans('general.general') }}
|
||||
|
||||
<span class="invalid-feedback block text-xs text-red whitespace-normal" v-if="form.errors.has('name')||form.errors.has('email')||form.errors.has('phone')||form.errors.has('tax_number')||form.errors.has('currency_code')">
|
||||
<span class="invalid-feedback block text-xs text-red whitespace-normal" v-if="form.errors.has('name') || form.errors.has('email') || form.errors.has('phone') || form.errors.has('tax_number') || form.errors.has('currency_code')">
|
||||
{{ trans('general.validation_error') }}
|
||||
</span>
|
||||
</x-tabs.nav>
|
||||
@ -12,7 +12,7 @@
|
||||
<x-tabs.nav id="address">
|
||||
{{ trans('general.address') }}
|
||||
|
||||
<span class="invalid-feedback block text-xs text-red whitespace-normal" v-if="form.errors.has('address')||form.errors.has('city')||form.errors.has('zip_code')||form.errors.has('state')||form.errors.has('country')">
|
||||
<span class="invalid-feedback block text-xs text-red whitespace-normal" v-if="form.errors.has('address') || form.errors.has('city') || form.errors.has('zip_code') || form.errors.has('state') || form.errors.has('country')">
|
||||
{{ trans('general.validation_error') }}
|
||||
</span>
|
||||
</x-tabs.nav>
|
||||
@ -20,7 +20,7 @@
|
||||
<x-tabs.nav id="other">
|
||||
{{ trans_choice('general.others', 1) }}
|
||||
|
||||
<span class="invalid-feedback block text-xs text-red whitespace-normal" v-if="form.errors.has('website')||form.errors.has('reference')">
|
||||
<span class="invalid-feedback block text-xs text-red whitespace-normal" v-if="form.errors.has('website') || form.errors.has('reference')">
|
||||
{{ trans('general.validation_error') }}
|
||||
</span>
|
||||
</x-tabs.nav>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<x-tabs.nav id="general">
|
||||
{{ trans('general.general') }}
|
||||
|
||||
<span class="invalid-feedback block text-xs text-red whitespace-normal" v-if="form.errors.has('name')||form.errors.has('email')||form.errors.has('phone')||form.errors.has('tax_number')||form.errors.has('currency_code')">
|
||||
<span class="invalid-feedback block text-xs text-red whitespace-normal" v-if="form.errors.has('name') || form.errors.has('email') || form.errors.has('phone') || form.errors.has('tax_number') || form.errors.has('currency_code')">
|
||||
{{ trans('general.validation_error') }}
|
||||
</span>
|
||||
</x-tabs.nav>
|
||||
@ -12,7 +12,7 @@
|
||||
<x-tabs.nav id="address">
|
||||
{{ trans('general.address') }}
|
||||
|
||||
<span class="invalid-feedback block text-xs text-red whitespace-normal" v-if="form.errors.has('address')||form.errors.has('city')||form.errors.has('zip_code')||form.errors.has('state')||form.errors.has('country')">
|
||||
<span class="invalid-feedback block text-xs text-red whitespace-normal" v-if="form.errors.has('address') || form.errors.has('city') || form.errors.has('zip_code') || form.errors.has('state') || form.errors.has('country')">
|
||||
{{ trans('general.validation_error') }}
|
||||
</span>
|
||||
</x-tabs.nav>
|
||||
@ -20,7 +20,7 @@
|
||||
<x-tabs.nav id="other">
|
||||
{{ trans_choice('general.others', 1) }}
|
||||
|
||||
<span class="invalid-feedback block text-xs text-red whitespace-normal" v-if="form.errors.has('website')||form.errors.has('reference')">
|
||||
<span class="invalid-feedback block text-xs text-red whitespace-normal" v-if="form.errors.has('website') || form.errors.has('reference')">
|
||||
{{ trans('general.validation_error') }}
|
||||
</span>
|
||||
</x-tabs.nav>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<x-tabs.nav id="general">
|
||||
{{ trans('general.general') }}
|
||||
|
||||
<span class="invalid-feedback block text-xs text-red whitespace-normal" v-if="form.errors.has('name')||form.errors.has('email')||form.errors.has('phone')||form.errors.has('tax_number')||form.errors.has('currency_code')">
|
||||
<span class="invalid-feedback block text-xs text-red whitespace-normal" v-if="form.errors.has('name') || form.errors.has('email') || form.errors.has('phone') || form.errors.has('tax_number') || form.errors.has('currency_code')">
|
||||
{{ trans('general.validation_error') }}
|
||||
</span>
|
||||
</x-tabs.nav>
|
||||
@ -12,7 +12,7 @@
|
||||
<x-tabs.nav id="address">
|
||||
{{ trans('general.address') }}
|
||||
|
||||
<span class="invalid-feedback block text-xs text-red whitespace-normal" v-if="form.errors.has('address')||form.errors.has('city')||form.errors.has('zip_code')||form.errors.has('state')||form.errors.has('country')">
|
||||
<span class="invalid-feedback block text-xs text-red whitespace-normal" v-if="form.errors.has('address') || form.errors.has('city') || form.errors.has('zip_code') || form.errors.has('state') || form.errors.has('country')">
|
||||
{{ trans('general.validation_error') }}
|
||||
</span>
|
||||
</x-tabs.nav>
|
||||
@ -20,7 +20,7 @@
|
||||
<x-tabs.nav id="other">
|
||||
{{ trans_choice('general.others', 1) }}
|
||||
|
||||
<span class="invalid-feedback block text-xs text-red whitespace-normal" v-if="form.errors.has('website')||form.errors.has('reference')">
|
||||
<span class="invalid-feedback block text-xs text-red whitespace-normal" v-if="form.errors.has('website') || form.errors.has('reference')">
|
||||
{{ trans('general.validation_error') }}
|
||||
</span>
|
||||
</x-tabs.nav>
|
||||
|
@ -66,7 +66,7 @@
|
||||
<x-index.disable text="{{ trans_choice('general.currencies', 1) }}" />
|
||||
@endif
|
||||
|
||||
@if ($item->code == setting("default.currency"))
|
||||
@if ($item->code == default_currency())
|
||||
<x-index.default text="{{ trans('currencies.default') }}" />
|
||||
@endif
|
||||
</x-slot>
|
||||
|
Loading…
x
Reference in New Issue
Block a user