From f381d433eca296a4bd9590c5187e1c56165ab9e1 Mon Sep 17 00:00:00 2001 From: Ahmed Bouhuolia Date: Sat, 19 Oct 2024 16:28:01 +0200 Subject: [PATCH] fix Customer note does not appear in pdf document --- .../resources/views/modules/estimate-regular.pug | 10 +++++----- packages/server/src/services/Sales/Estimates/utils.ts | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/server/resources/views/modules/estimate-regular.pug b/packages/server/resources/views/modules/estimate-regular.pug index b2f9364ef..975436d0f 100644 --- a/packages/server/resources/views/modules/estimate-regular.pug +++ b/packages/server/resources/views/modules/estimate-regular.pug @@ -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} \ No newline at end of file diff --git a/packages/server/src/services/Sales/Estimates/utils.ts b/packages/server/src/services/Sales/Estimates/utils.ts index f15a25546..9c7d92de5 100644 --- a/packages/server/src/services/Sales/Estimates/utils.ts +++ b/packages/server/src/services/Sales/Estimates/utils.ts @@ -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), };