Merge pull request #6308 from beganovich/v5-574

(v5) Allow type_id=5 for invoice items
This commit is contained in:
Benjamin Beganović 2021-07-21 15:07:27 +02:00 committed by GitHub
commit bccdf630ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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