HappyKnuckles / Cine-App

Local Cinema app for friends and me
https://cine-app-three.vercel.app
0 stars 0 forks source link

Add Price range calculation #37

Open HappyKnuckles opened 4 months ago

HappyKnuckles commented 4 months ago

min price according to usual price + length boni, max price depending on cinema and release flags : dolby, deluxe etc

interface PriceDetails { basePrice: number; payCardDiscount: number; studioCinemaPrice: number; surcharges: { deluxeCinema: number; longFilm: { min125: number; min145: number; min175: number; }; dolbyAtmos: number; cinemagnum: number; threeD: number; dBox: number; onyxLED: number; }; }

const priceDetails: PriceDetails = { basePrice: 11.50, payCardDiscount: 1.00, studioCinemaPrice: 10.50, surcharges: { deluxeCinema: 6.00, longFilm: { min125: 0.50, min145: 1.00, min175: 1.50, }, dolbyAtmos: 1.00, cinemagnum: 1.50, threeD: 1.50, dBox: 6.00, onyxLED: 1.50, } };