diff --git a/ext/default-mail-templates/booking-request-accepted/booking-request-accepted-html.html b/ext/default-mail-templates/booking-request-accepted/booking-request-accepted-html.html index f89326ab..0d3864f3 100644 --- a/ext/default-mail-templates/booking-request-accepted/booking-request-accepted-html.html +++ b/ext/default-mail-templates/booking-request-accepted/booking-request-accepted-html.html @@ -25,16 +25,49 @@ {{#each tx-line-items}} {{#contains include-for "customer"}} - - {{#eq "line-item/day" code}} - {{> format-money money=unit-price}} × {{number quantity}} {{inflect quantity "day" "days"}} - {{> format-money money=line-total}} - {{/eq}} - {{#eq "line-item/night" code}} - {{> format-money money=unit-price}} × {{number quantity}} {{inflect quantity "night" "nights"}} - {{> format-money money=line-total}} - {{/eq}} - + {{#eq "line-item/day" code}} + + Price per day + {{> format-money money=unit-price}} + + {{#if seats}} + + Days + × {{number units}} + + + Seats + × {{number seats}} + + {{else}} + + Days + × {{number quantity}} + + {{/if}} + {{/eq}} + + {{#eq "line-item/night" code}} + + Price per night + {{> format-money money=unit-price}} + + {{#if seats}} + + Nights + × {{number units}} + + + Seats + × {{number seats}} + + {{else}} + + Nights + × {{number quantity}} + + {{/if}} + {{/eq}} {{/contains}} {{/each}} diff --git a/ext/default-mail-templates/money-paid/money-paid-html.html b/ext/default-mail-templates/money-paid/money-paid-html.html index f4afe5d1..0737a797 100644 --- a/ext/default-mail-templates/money-paid/money-paid-html.html +++ b/ext/default-mail-templates/money-paid/money-paid-html.html @@ -25,22 +25,64 @@ {{#each tx-line-items}} {{#contains include-for "provider"}} - - {{#eq "line-item/day" code}} - {{> format-money money=unit-price}} × {{number quantity}} {{inflect quantity "day" "days"}} - {{> format-money money=line-total}} - {{/eq}} + {{#eq "line-item/day" code}} + + Price per day + {{> format-money money=unit-price}} + + {{#if seats}} + + Days + × {{number units}} + + + Seats + × {{number seats}} + + {{else}} + + Days + × {{number quantity}} + + {{/if}} + + Subtotal + {{> format-money money=line-total}} + + {{/eq}} - {{#eq "line-item/night" code}} - {{> format-money money=unit-price}} × {{number quantity}} {{inflect quantity "night" "nights"}} - {{> format-money money=line-total}} - {{/eq}} + {{#eq "line-item/night" code}} + + Price per night + {{> format-money money=unit-price}} + + {{#if seats}} + + Nights + × {{number units}} + + + Seats + × {{number seats}} + + {{else}} + + Nights + × {{number quantity}} + + {{/if}} + + Subtotal + {{> format-money money=line-total}} + + {{/eq}} {{#eq "line-item/provider-commission" code}} + {{marketplace.name}} fee: {{> format-money money=line-total}} + {{/eq}} - {{/contains}} {{/each}} diff --git a/ext/default-mail-templates/new-booking-request/new-booking-request-html.html b/ext/default-mail-templates/new-booking-request/new-booking-request-html.html index 9a24198d..10700c79 100644 --- a/ext/default-mail-templates/new-booking-request/new-booking-request-html.html +++ b/ext/default-mail-templates/new-booking-request/new-booking-request-html.html @@ -23,22 +23,64 @@ {{#each tx-line-items}} {{#contains include-for "provider"}} - - {{#eq "line-item/day" code}} - {{> format-money money=unit-price}} × {{number quantity}} {{inflect quantity "day" "days"}} - {{> format-money money=line-total}} - {{/eq}} + {{#eq "line-item/day" code}} + + Price per day + {{> format-money money=unit-price}} + + {{#if seats}} + + Days + × {{number units}} + + + Seats + × {{number seats}} + + {{else}} + + Days + × {{number quantity}} + + {{/if}} + + Subtotal + {{> format-money money=line-total}} + + {{/eq}} - {{#eq "line-item/night" code}} - {{> format-money money=unit-price}} × {{number quantity}} {{inflect quantity "night" "nights"}} - {{> format-money money=line-total}} - {{/eq}} + {{#eq "line-item/night" code}} + + Price per night + {{> format-money money=unit-price}} + + {{#if seats}} + + Nights + × {{number units}} + + + Seats + × {{number seats}} + + {{else}} + + Nights + × {{number quantity}} + + {{/if}} + + Subtotal + {{> format-money money=line-total}} + + {{/eq}} - {{#eq "line-item/provider-commission" code}} - {{marketplace.name}} fee: - {{> format-money money=line-total}} - {{/eq}} - + {{#eq "line-item/provider-commission" code}} + + {{marketplace.name}} fee + {{> format-money money=line-total}} + + {{/eq}} {{/contains}} {{/each}}