Merged in fix/BOOK-529-my-stay-guarantee (pull request #3282)
fix(BOOK-529): add card icon to payment cards, show scrollbar, add missing text * fix(BOOK-529): add card icon to payment cards, show scrollbar, add missing text * fix(BOOK-529): refactor savdecard * fix(BOOK-529): fix lokaliseid * fix(BOOK-529): paymentmethods Approved-by: Joakim Jäderberg
This commit is contained in:
@@ -110,6 +110,18 @@ export function calculateTotalPrice(rooms: Room[], currency: CurrencyEnum) {
|
||||
}
|
||||
}
|
||||
break
|
||||
case PriceTypeEnum.money:
|
||||
{
|
||||
if (room.totalPoints) {
|
||||
total.local.additionalPrice =
|
||||
(total.local.additionalPrice || 0) + room.totalPoints
|
||||
}
|
||||
|
||||
if (!total.local.additionalPriceCurrency) {
|
||||
total.local.additionalPriceCurrency = CurrencyEnum.POINTS
|
||||
}
|
||||
}
|
||||
break
|
||||
}
|
||||
|
||||
return total
|
||||
|
||||
Reference in New Issue
Block a user