applied new features of money package

This commit is contained in:
Denis Duliçi
2023-07-11 12:03:14 +03:00
parent 20e5b57562
commit bfb37c62c6
51 changed files with 110 additions and 105 deletions

View File

@@ -118,7 +118,7 @@ class Transaction extends Notification
];
return [
money($this->transaction->amount, $this->transaction->currency_code, true),
money($this->transaction->amount, $this->transaction->currency_code),
company_date($this->transaction->paid_at),
URL::signedRoute('signed.payments.show', $route_params),
route('transactions.show', $route_params),

View File

@@ -129,13 +129,13 @@ class PaymentReceived extends Notification
return [
$this->invoice->document_number,
money($this->invoice->amount, $this->invoice->currency_code, true),
money($this->invoice->amount, $this->invoice->currency_code),
company_date($this->invoice->due_at),
trans('documents.statuses.' . $this->invoice->status),
URL::signedRoute('signed.invoices.show', $route_params),
route('invoices.show', $route_params),
route('portal.invoices.show', $route_params),
money($this->transaction->amount, $this->transaction->currency_code, true),
money($this->transaction->amount, $this->transaction->currency_code),
company_date($this->transaction->paid_at),
$this->transaction->payment_method,
$this->invoice->contact_name,

View File

@@ -97,8 +97,8 @@ class Bill extends Notification
return [
$this->bill->document_number,
money($this->bill->amount, $this->bill->currency_code, true),
money($this->bill->amount_due, $this->bill->currency_code, true),
money($this->bill->amount, $this->bill->currency_code),
money($this->bill->amount_due, $this->bill->currency_code),
company_date($this->bill->issued_at),
company_date($this->bill->due_at),
route('bills.show', $route_params),

View File

@@ -142,8 +142,8 @@ class Invoice extends Notification
return [
$this->invoice->document_number,
money($this->invoice->amount, $this->invoice->currency_code, true),
money($this->invoice->amount_due, $this->invoice->currency_code, true),
money($this->invoice->amount, $this->invoice->currency_code),
money($this->invoice->amount_due, $this->invoice->currency_code),
company_date($this->invoice->issued_at),
company_date($this->invoice->due_at),
URL::signedRoute('signed.invoices.show', $route_params),