1
0
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:
David Bomba 2021-03-26 20:20:37 +11:00
parent b40751a2b9
commit b3863581ae

View File

@ -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;
}
}