update_5_2_2019
This commit is contained in:
@@ -134,5 +134,13 @@ class TeamStoreModel extends Model {
|
||||
->update($data);
|
||||
return $i;
|
||||
}
|
||||
|
||||
function getSoldQty($productId){
|
||||
$i = DB::table('orders')->select(DB::raw('SUM(Quantity) AS SoldQty'))
|
||||
->where('ProductId', $productId)
|
||||
->get();
|
||||
return $i;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user