Display all bands grouped by genre, create m:n association between Band and Genre in database

This commit is contained in:
2024-09-27 23:25:24 +02:00
parent 848e7abf92
commit 9b325c849e
29 changed files with 275 additions and 165 deletions

View File

@@ -1,6 +1,5 @@
import { defineStore } from "pinia";
import { useLocalStorage } from "@vueuse/core";
import { calcPrice } from "@/scripts/productScripts";
import { BasketItemModel } from "../models/basketItemModel";
import { useFeedbackStore } from "./feedbackStore";
import { BannerStateEnum } from "../enums/bannerStateEnum";
@@ -26,9 +25,9 @@ export const useBasketStore = defineStore('basketStore', {
getTotalPrice() {
let result = 0
for (let item of this.itemsInBasket) {
result += calcPrice(item.product.price, item.product.discount, item.quantity)
}
// for (let item of this.itemsInBasket) {
// result += calcPrice(item.product.price, item.product.discount, item.quantity)
// }
return Math.round(result * 100) / 100
}