mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04: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
|
//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…
x
Reference in New Issue
Block a user