mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Stubs for products / recurring products and subscription price
This commit is contained in:
parent
b40751a2b9
commit
b3863581ae
@ -263,5 +263,19 @@ class SubscriptionService
|
||||
//scan for any notification we are required to send
|
||||
}
|
||||
|
||||
public function products()
|
||||
{
|
||||
return Product::whereIn('id', explode(",", $this->subscription->product_ids))->get();
|
||||
}
|
||||
|
||||
public function recurring_products()
|
||||
{
|
||||
return Product::whereIn('id', explode(",", $this->subscription->recurring_product_ids))->get();
|
||||
}
|
||||
|
||||
public function price()
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user