mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixes for line items
This commit is contained in:
parent
09af7474e4
commit
f3316277c3
@ -69,6 +69,9 @@ class SubscriptionCalculator
|
||||
return $product['quantity'] >= 1;
|
||||
});
|
||||
|
||||
nlog("items");
|
||||
nlog($items);
|
||||
|
||||
return collect($items)->map(function ($item){
|
||||
$line_item = new InvoiceItem();
|
||||
$line_item->product_key = $item['product']['product_key'];
|
||||
@ -78,7 +81,7 @@ class SubscriptionCalculator
|
||||
|
||||
return $line_item;
|
||||
|
||||
})->toArray();
|
||||
})->flatten()->toArray();
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user