salesentry filters
This commit is contained in:
@ -94,4 +94,16 @@ class StockController extends Controller
|
||||
|
||||
return response()->json(['status' => true, 'message' => 'Stock Deleted Successfully']);
|
||||
}
|
||||
|
||||
public function getStocksByProduct(Request $request)
|
||||
{
|
||||
$productId = $request->product_id;
|
||||
try {
|
||||
$stocks = $this->stockRepository->getStocksByProduct($productId);
|
||||
} catch (\Throwable $th) {
|
||||
toastr()->error($th->getMessage());
|
||||
}
|
||||
return response()->json(['stocks' => $stocks]);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user