Merged in feat/SW-2078-update-confirmation-page-vouchers (pull request #1731)
Feat/SW-2078 update confirmation page vouchers and Corp Cheques rate * feat: SW-2078 Tablet bookingCode ref forward issue fix (cherry picked from commit 16a6a00fd99b6b6220a98ad74de062d67d35e1c0) * feat: SW-2078 Display Vouchers and Cheques prices on confirmation page (cherry picked from commit a76494de497a7d5e7641cb0036bd7055acf875c1) * feat: SW-2078 Rebase issue fix * feat: SW-2079 Updated rate title in terms modal * feat: SW-2078 Optimized code * feat: SW-2078 Removed extra tags Approved-by: Christian Andolf
This commit is contained in:
@@ -14,7 +14,7 @@ export interface Room {
|
||||
bedDescription: string
|
||||
breakfast?: PackageSchema
|
||||
breakfastIncluded: boolean
|
||||
children?: number
|
||||
cheques: number
|
||||
childBedPreferences: ChildBedPreference[]
|
||||
childrenAges?: number[]
|
||||
confirmationNumber: string
|
||||
@@ -32,6 +32,7 @@ export interface Room {
|
||||
totalPrice: number
|
||||
totalPriceExVat: number
|
||||
vatAmount: number
|
||||
vouchers: number
|
||||
}
|
||||
|
||||
export interface InitialState {
|
||||
@@ -44,20 +45,12 @@ export interface InitialState {
|
||||
isVatCurrency: boolean
|
||||
formattedTotalCost: string
|
||||
totalBookingPrice: number
|
||||
totalBookingCheques: number
|
||||
}
|
||||
|
||||
export interface BookingConfirmationState {
|
||||
bookingCode: string | null
|
||||
isVatCurrency: boolean
|
||||
rooms: (Room | null)[]
|
||||
currencyCode: string
|
||||
vat: number
|
||||
fromDate: Date
|
||||
toDate: Date
|
||||
formattedTotalCost: string | null
|
||||
totalBookingPrice: number
|
||||
export interface BookingConfirmationState extends InitialState {
|
||||
actions: {
|
||||
setRoom: (room: Room, idx: number) => void
|
||||
setFormattedTotalCost: (updatedFormattedTotalCost: string) => void
|
||||
setFormattedTotalCost: (formattedTotalCost: string) => void
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user