feat: move room charge to top in price details modal
This commit is contained in:
committed by
Michael Zetterberg
parent
194a401a56
commit
a99e434d84
@@ -26,7 +26,9 @@ export function calculateTotalPrice(
|
||||
if (room.totalPoints) {
|
||||
total.points = total.points + room.totalPoints
|
||||
}
|
||||
if (room.totalPrice) {
|
||||
// room.totalPrice is a negative value when
|
||||
// its a vouchers booking (╯°□°)╯︵ ┻━┻
|
||||
if (room.totalPrice && !room.vouchers) {
|
||||
total.cash = total.cash + room.totalPrice
|
||||
}
|
||||
return total
|
||||
|
||||
Reference in New Issue
Block a user