Allow type_id=5 for invoice items

This commit is contained in:
Benjamin Beganović 2021-07-21 15:07:01 +02:00
parent d231707d7d
commit ff5769ef78

View File

@ -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;
}
}