Tickets moveable to basket, Basket shows tickets, removable

This commit is contained in:
2024-10-05 20:23:13 +02:00
parent e48782b897
commit d1cdf1f8fb
21 changed files with 301 additions and 334 deletions

View File

@@ -12,8 +12,8 @@ import { EventModel } from "@/data/models/acts/eventModel"
*
* @returns Price rounded to two digits
*/
export function calcPrice(price: number, discount: number = 0, quantity: number = 1): number {
return Math.round(quantity * price * ((100 - discount) / 100) * 100) / 100
export function calcPrice(price: number, quantity: number = 1): number {
return Math.round(quantity * price * 100) / 100
}
/**