Add filter by sale_channel, add method to get prices by offer, sale_channel and quantity
This commit is contained in:
@@ -11,6 +11,11 @@ use App\Models\Shop\PriceList;
|
||||
class PriceLists
|
||||
{
|
||||
|
||||
public static function getByOfferAndSaleChannel($offer_id, $sale_channel_id)
|
||||
{
|
||||
return PriceList::bySaleChannel($sale_channel_id)->byOffer($offer_id)->get();
|
||||
}
|
||||
|
||||
public static function getByOffer($offer_id)
|
||||
{
|
||||
return PriceList::byOffer($offer_id)->get();
|
||||
|
||||
Reference in New Issue
Block a user