Scenario of disable sale/purchase price done

This commit is contained in:
Cihan Şentürk
2022-12-19 12:22:59 +03:00
committed by GitHub
parent a9703e45ca
commit afb1a9fadb
3 changed files with 8 additions and 2 deletions

View File

@ -88,6 +88,11 @@ class Item extends Model
return $query->where($billing . '_price', '=', null);
}
public function scopePriceType($query, $price_type)
{
return $query->whereNotNull($price_type . '_price');
}
/**
* Get the item id.
*