update error
All checks were successful
All checks were successful
This commit is contained in:
@@ -36,7 +36,7 @@ public function index(Request $request)
|
||||
$query->when(request()->has('branch_id'), function ($q) {
|
||||
$q->whereColumn('stocks.branch_id', 'warehouses.branch_id');
|
||||
});
|
||||
}], DB::raw('productStock * productPurchasePrice'))
|
||||
}], DB::raw('"productStock" * "productPurchasePrice"'))
|
||||
->when($request->branch_id, function ($q) use ($request) {
|
||||
$q->where('branch_id', $request->branch_id);
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user