From df81480aaea61d8b539cd001ef9efcb365cf2292 Mon Sep 17 00:00:00 2001 From: Sari Sharetribe Date: Mon, 15 Jan 2024 11:00:53 +0200 Subject: [PATCH] Show customer commission in email templates --- .../booking-accepted-request-html.html | 17 ++++++++++++++++- .../purchase-order-receipt-html.html | 16 ++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) diff --git a/default-booking/templates/booking-accepted-request/booking-accepted-request-html.html b/default-booking/templates/booking-accepted-request/booking-accepted-request-html.html index 9432477..802b81a 100644 --- a/default-booking/templates/booking-accepted-request/booking-accepted-request-html.html +++ b/default-booking/templates/booking-accepted-request/booking-accepted-request-html.html @@ -228,7 +228,22 @@

{{t "Bo - {{/if}}{{/eq}}{{/contains}}{{/each}} + {{/if}}{{/eq}}{{#eq "line-item/customer-commission" code}} + + + + + + + + +
+ +

{{t "BookingNewRequest.MarketplaceFeeLabel" "{marketplaceName} fee" marketplaceName=marketplace.name}}

+
+

{{> format-money money=line-total}}

+
+ {{/eq}}{{/contains}}{{/each}}
diff --git a/default-purchase/templates/purchase-order-receipt/purchase-order-receipt-html.html b/default-purchase/templates/purchase-order-receipt/purchase-order-receipt-html.html index d7cfd50..d02c5be 100644 --- a/default-purchase/templates/purchase-order-receipt/purchase-order-receipt-html.html +++ b/default-purchase/templates/purchase-order-receipt/purchase-order-receipt-html.html @@ -89,6 +89,22 @@

{{t "Pu

+ {{/eq}} + {{#eq "line-item/customer-commission" code}} + + + + + + + + +
+ +

{{t "PurchaseNewOrder.FeeLabel" "{marketplaceName} fee" marketplaceName=marketplace.name}}

+
+

{{> format-money money=line-total}}

+
{{/eq}}{{/contains}}{{/each}}