salesentry filters

This commit is contained in:
Sampanna Rimal
2024-09-17 16:34:40 +05:45
parent afb2c202d6
commit 0b438e302d
19 changed files with 303 additions and 50 deletions

View File

@ -23,6 +23,11 @@ class StockRepository implements StockInterface
return Stock::where('email', $email)->first();
}
public function getStocksByProduct($productId)
{
return Stock::where('product_id', $productId)->pluck('title', 'id');
}
public function delete($StockId)
{
Stock::destroy($StockId);