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

@@ -24,7 +24,7 @@ public function index(Request $request)
$total_stock_value = Stock::whereHas('product', function ($q) use ($businessId) {
$q->where('business_id', $businessId);
})->sum(DB::raw('productPurchasePrice * productStock'));
})->sum(DB::raw('"productPurchasePrice" * "productStock"'));
$total_qty = Stock::whereHas('product', function ($q) use ($businessId) {
$q->where('business_id', $businessId);