feat: tracking - added discount property and some basics for paymentInfo

This commit is contained in:
Linus Flood
2025-01-08 08:50:50 +01:00
parent 501c6be22a
commit 519795acac
6 changed files with 41 additions and 4 deletions

View File

@@ -115,7 +115,10 @@ export default function EnterDetailsTracking(props: Props) {
bedType: bedType?.description,
roomTypeCode: bedType?.roomTypeCode,
roomPrice: roomPrice.perStay.local.price,
//discount: public - member rates?.
discount: roomRate.memberRate
? roomRate.publicRate.localPrice.pricePerStay -
roomRate.memberRate.localPrice.pricePerStay
: 0,
}
return data