mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-31 23:44:35 -04:00
fix for types
This commit is contained in:
parent
2bd8581592
commit
3d8ddb23cf
@ -192,8 +192,8 @@ class InvoiceService
|
|||||||
$this->invoice->line_items = collect($this->invoice->line_items)
|
$this->invoice->line_items = collect($this->invoice->line_items)
|
||||||
->map(function ($item) {
|
->map(function ($item) {
|
||||||
|
|
||||||
if($item->type_id == 3)
|
if($item->type_id == '3')
|
||||||
$item->type_id = 4;
|
$item->type_id = '4';
|
||||||
|
|
||||||
return $item;
|
return $item;
|
||||||
|
|
||||||
@ -208,7 +208,7 @@ class InvoiceService
|
|||||||
$this->invoice->line_items = collect($this->invoice->line_items)
|
$this->invoice->line_items = collect($this->invoice->line_items)
|
||||||
->reject(function ($item) {
|
->reject(function ($item) {
|
||||||
|
|
||||||
return $item->type_id == 3;
|
return $item->type_id == '3';
|
||||||
|
|
||||||
})->toArray();
|
})->toArray();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user