Merge pull request #6308 from beganovich/v5-574
(v5) Allow type_id=5 for invoice items
This commit is contained in:
commit
bccdf630ad
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue