Force line items to have a default type_id
This commit is contained in:
parent
9c9de4c49c
commit
9ec7a48eae
1 changed files with 4 additions and 0 deletions
|
|
@ -55,6 +55,10 @@ trait CleanLineItems
|
|||
//always cast the value!
|
||||
$item[$key] = BaseSettings::castAttribute(InvoiceItem::$casts[$key], $item[$key]);
|
||||
}
|
||||
|
||||
if($item['type_id'] == '0')
|
||||
$item['type_id'] ='1';
|
||||
|
||||
}
|
||||
|
||||
if (array_key_exists('id', $item)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue