mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 21:00:31 +00:00
feat: apply credit note to invoice module
This commit is contained in:
@@ -19,9 +19,9 @@ export class SaleEstimatePdfTemplate {
|
||||
public async getEstimatePdfTemplate(estimateTemplateId: number) {
|
||||
const template =
|
||||
await this.getPdfTemplateService.getPdfTemplate(estimateTemplateId);
|
||||
|
||||
// Retreives the organization branding attributes.
|
||||
const commonOrgBrandingAttrs =
|
||||
await this.getOrgBrandingAttrs.getOrganizationBrandingAttributes();
|
||||
const commonOrgBrandingAttrs = await this.getOrgBrandingAttrs.execute();
|
||||
|
||||
// Merge the default branding attributes with organization attrs.
|
||||
const orgainizationBrandingAttrs = {
|
||||
|
||||
@@ -19,9 +19,10 @@ export class SaleInvoicePdfTemplate {
|
||||
async getInvoicePdfTemplate(invoiceTemplateId: number) {
|
||||
const template =
|
||||
await this.getPdfTemplateService.getPdfTemplate(invoiceTemplateId);
|
||||
|
||||
// Retrieves the organization branding attributes.
|
||||
const commonOrgBrandingAttrs =
|
||||
await this.getOrgBrandingAttributes.getOrganizationBrandingAttributes();
|
||||
await this.getOrgBrandingAttributes.execute();
|
||||
|
||||
const organizationBrandingAttrs = {
|
||||
...defaultInvoicePdfTemplateAttributes,
|
||||
|
||||
Reference in New Issue
Block a user