From ff5769ef78be09947150456ea3cb7adef4d146ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Wed, 21 Jul 2021 15:07:01 +0200 Subject: [PATCH] Allow type_id=5 for invoice items --- app/Utils/Traits/MakesInvoiceValues.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Utils/Traits/MakesInvoiceValues.php b/app/Utils/Traits/MakesInvoiceValues.php index e72f384c95fc..1dd38dd75ad3 100644 --- a/app/Utils/Traits/MakesInvoiceValues.php +++ b/app/Utils/Traits/MakesInvoiceValues.php @@ -273,13 +273,13 @@ trait MakesInvoiceValues foreach ($items as $key => $item) { if ($table_type == '$product' && $item->type_id != 1) { - if ($item->type_id != 4 && $item->type_id != 6) { + if ($item->type_id != 4 && $item->type_id != 6 && $item->type_id != 5) { continue; } } if ($table_type == '$task' && $item->type_id != 2) { - if ($item->type_id != 4) { + if ($item->type_id != 4 && $item->type_id != 5) { continue; } }