fix for optional and alternative

This commit is contained in:
2025-05-31 20:10:38 +02:00
parent f93eb9ec71
commit 4e469a3ffc

View File

@@ -716,10 +716,10 @@ const documentReport = computed(() => {
let totalHoursSellingPrice = 0
itemInfo.value.rows.forEach(row => {
itemInfo.value.rows.filter(i => !i.optional && !i.alternative).forEach(row => {
if(row.product) {
let product = products.value.find(i => i.id === row.product)
console.log(product)
console.log(product.purchasePrice)
totalProductsPurchasePrice += product.purchasePrice * row.quantity