update_5_2_2019

This commit is contained in:
Frank John Begornia
2019-05-02 22:45:44 +08:00
parent c982366dbd
commit c39fb0a2a4
10 changed files with 114 additions and 96 deletions

View File

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