added "Due Amount, Total Amount and PDF Link" new custom fields

This commit is contained in:
Asif Takavala
2022-03-30 07:35:53 +00:00
committed by Mohit Panjwani
parent 18507ddb6f
commit 32949d1eec
6 changed files with 16 additions and 8 deletions

View File

@ -650,7 +650,9 @@ class Invoice extends Model implements HasMedia
'{INVOICE_DATE}' => $this->formattedInvoiceDate,
'{INVOICE_DUE_DATE}' => $this->formattedDueDate,
'{INVOICE_NUMBER}' => $this->invoice_number,
'{INVOICE_REF_NUMBER}' => $this->reference_number,
'{PDF_LINK}' => $this->invoicePdfUrl,
'{DUE_AMOUNT}' => format_money_pdf($this->due_amount, $this->customer->currency),
'{TOTAL_AMOUNT}' => format_money_pdf($this->total, $this->customer->currency)
];
}