add currency for teamstore

This commit is contained in:
Frank John Begornia
2019-08-19 21:37:47 +08:00
parent e60bb3baf8
commit b7e81adf31
68 changed files with 9977 additions and 442 deletions

View File

@@ -66,9 +66,12 @@ class MainModel extends Model {
return $i;
}
function cartCount($cartkey){ // count Confirmed attendees
function cartCount($cartkey){ //
$i = DB::table('cart_tmp')->where('CartKey', '=', $cartkey)->sum('Quantity');
$i = DB::table('cart_tmp')
->whereNull('VoucherId')
->where('CartKey', '=', $cartkey)
->sum('Quantity');
return $i;