fix for optional and alternative
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user