Skip to content

Commit

Permalink
Merge pull request #720 from bigcapitalhq/add-estimate-customer-note
Browse files Browse the repository at this point in the history
fix Customer note does not appear in pdf document
  • Loading branch information
abouolia authored Oct 19, 2024
2 parents 2ee49f7 + f381d43 commit ccbb399
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions packages/server/resources/views/modules/estimate-regular.pug
Original file line number Diff line number Diff line change
Expand Up @@ -231,12 +231,12 @@ block content
div(class=`${prefix}-totals__item-amount`) #{total}

//- Statements section
if showTermsConditions && termsConditions
div(class=`${prefix}-statement`)
div(class=`${prefix}-statement__label`) #{termsConditionsLabel}
div(class=`${prefix}-statement__value`) #{termsConditions}

if showCustomerNote && customerNote
div(class=`${prefix}-statement`)
div(class=`${prefix}-statement__label`) #{customerNoteLabel}
div(class=`${prefix}-statement__value`) #{customerNote}

if showTermsConditions && termsConditions
div(class=`${prefix}-statement`)
div(class=`${prefix}-statement__label`) #{termsConditionsLabel}
div(class=`${prefix}-statement__value`) #{termsConditions}
2 changes: 1 addition & 1 deletion packages/server/src/services/Sales/Estimates/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const transformEstimateToPdfTemplate = (
})),
total: estimate.formattedSubtotal,
subtotal: estimate.formattedSubtotal,
customerNote: estimate.customerNote,
customerNote: estimate.note,
termsConditions: estimate.termsConditions,
customerAddress: contactAddressTextFormat(estimate.customer),
};
Expand Down

0 comments on commit ccbb399

Please sign in to comment.