From de6034f3d459d190e3d0d2e5ef86c1f54e96bd4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Fri, 11 Sep 2020 09:23:16 +0200 Subject: [PATCH] Don't skip items with type_id = 4 --- app/Utils/Traits/MakesInvoiceValues.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/Utils/Traits/MakesInvoiceValues.php b/app/Utils/Traits/MakesInvoiceValues.php index a81fde1d7aaa..7d4a5775ac98 100644 --- a/app/Utils/Traits/MakesInvoiceValues.php +++ b/app/Utils/Traits/MakesInvoiceValues.php @@ -592,11 +592,15 @@ trait MakesInvoiceValues foreach ($items as $key => $item) { if ($table_type == '$product' && $item->type_id != 1) { - continue; + if ($item->type_id != 4) { + continue; + } } if ($table_type == '$task' && $item->type_id != 2) { - continue; + if ($item->type_id != 4) { + continue; + } } $data[$key][$table_type.'.product_key'] = $item->product_key;