mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 12:50:38 +00:00
feat: wip send invoice receipt preview
This commit is contained in:
@@ -79,7 +79,7 @@ export class ContactMailNotification {
|
||||
.withGraphFetched('metadata');
|
||||
|
||||
return {
|
||||
CompanyName: organization.metadata.name,
|
||||
['Company Name']: organization.metadata.name,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -106,18 +106,18 @@ export class SendSaleInvoiceMailCommon {
|
||||
tenantId,
|
||||
invoiceId
|
||||
);
|
||||
const commonArgs =
|
||||
await this.contactMailNotification.getCommonFormatArgs(tenantId);
|
||||
|
||||
const commonArgs = await this.contactMailNotification.getCommonFormatArgs(
|
||||
tenantId
|
||||
);
|
||||
return {
|
||||
...commonArgs,
|
||||
CustomerName: invoice.customer.displayName,
|
||||
InvoiceNumber: invoice.invoiceNo,
|
||||
InvoiceDueAmount: invoice.dueAmountFormatted,
|
||||
InvoiceDueDate: invoice.dueDateFormatted,
|
||||
InvoiceDate: invoice.invoiceDateFormatted,
|
||||
InvoiceAmount: invoice.totalFormatted,
|
||||
OverdueDays: invoice.overdueDays,
|
||||
['Customer Name']: invoice.customer.displayName,
|
||||
['Invoice Number']: invoice.invoiceNo,
|
||||
['Invoice DueAmount']: invoice.dueAmountFormatted,
|
||||
['Invoice DueDate']: invoice.dueDateFormatted,
|
||||
['Invoice Date']: invoice.invoiceDateFormatted,
|
||||
['Invoice Amount']: invoice.totalFormatted,
|
||||
['Overdue Days']: invoice.overdueDays,
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,19 +1,19 @@
|
||||
import config from '@/config';
|
||||
|
||||
export const DEFAULT_INVOICE_MAIL_SUBJECT =
|
||||
'Invoice {InvoiceNumber} from {CompanyName}';
|
||||
'Invoice {Invoice Number} from {Company Name}';
|
||||
export const DEFAULT_INVOICE_MAIL_CONTENT = `
|
||||
<p>Dear {CustomerName}</p>
|
||||
<p>Dear {Customer Name}</p>
|
||||
<p>Thank you for your business, You can view or print your invoice from attachements.</p>
|
||||
<p>
|
||||
Invoice <strong>#{InvoiceNumber}</strong><br />
|
||||
Due Date : <strong>{InvoiceDueDate}</strong><br />
|
||||
Amount : <strong>{InvoiceAmount}</strong></br />
|
||||
Invoice <strong>#{Invoice Number}</strong><br />
|
||||
Due Date : <strong>{Invoice Due Date}</strong><br />
|
||||
Amount : <strong>{Invoice Amount}</strong></br />
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<i>Regards</i><br />
|
||||
<i>{CompanyName}</i>
|
||||
<i>{Company Name}</i>
|
||||
</p>
|
||||
`;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user