mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fix cost calculation in SubscriptionCalculator
This commit is contained in:
parent
0f3cd7eb3c
commit
f119c26905
@ -70,11 +70,10 @@ class SubscriptionCalculator
|
||||
});
|
||||
|
||||
return collect($items)->map(function ($item){
|
||||
|
||||
$line_item = new InvoiceItem();
|
||||
$line_item->product_key = $item['product']['product_key'];
|
||||
$line_item->quantity = (float) $item['quantity'];
|
||||
$line_item->cost = (float) ['product']['price'];
|
||||
$line_item->cost = (float) $item['product']['price'];
|
||||
$line_item->notes = $item['product']['notes'];
|
||||
|
||||
return $line_item;
|
||||
|
Loading…
x
Reference in New Issue
Block a user