update error
All checks were successful
Build, Push and Deploy / build-and-push (push) Successful in 4m50s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 16s
Build, Push and Deploy / deploy-staging (push) Successful in 41s
Build, Push and Deploy / deploy-production (push) Has been skipped

This commit is contained in:
2026-05-06 09:49:01 +07:00
parent 28510f1163
commit 0cb58d3419
7 changed files with 28 additions and 24 deletions

View File

@@ -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);
})