update error
All checks were successful
All checks were successful
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user