typo
This commit is contained in:
		@@ -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');
 | 
			
		||||
 
 | 
			
		||||
@@ -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>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user