Esempio n. 1
0
 public function get($params = NULL)
 {
     $expenses = parent::get($params);
     if ($expenses and isset($params['group_by_type'])) {
         $tmp = $expenses;
         unset($expenses);
         foreach ($tmp as $item) {
             $expenses[$item->mcb_expense_id][] = $item;
         }
     }
     return $expenses;
 }
Esempio n. 2
0
 public function get($params = NULL)
 {
     $provider = parent::get($params);
     if ($provider and isset($params['group_by_type'])) {
         $tmp = $provider;
         unset($provider);
         foreach ($tmp as $item) {
             $provider[$item->expense_provider_id][] = $item;
         }
     }
     return $provider;
 }
Esempio n. 3
0
 public function get($params = NULL)
 {
     $bank = parent::get($params);
     if ($bank and isset($params['group_by_type'])) {
         $tmp = $bank;
         unset($bank);
         foreach ($tmp as $item) {
             $bank[$item->bank_id][] = $item;
         }
     }
     return $bank;
 }
Esempio n. 4
0
 public function get($params = NULL)
 {
     $expense_payment_type = parent::get($params);
     if ($expense_payment_type and isset($params['group_by_type'])) {
         $tmp = $expense_payment_type;
         unset($expense_payment_type);
         foreach ($tmp as $item) {
             $expense_payment_type[$item->expense_payment_type_id][] = $item;
         }
     }
     return $expense_payment_type;
 }
Esempio n. 5
0
 public function get($params = NULL)
 {
     $category = parent::get($params);
     if ($category and isset($params['group_by_type'])) {
         $tmp = $category;
         unset($category);
         foreach ($tmp as $item) {
             $category[$item->expense_category_id][] = $item;
         }
     }
     return $category;
 }