/** * Get COA current Budgets by PO list * @param $poList * @return array */ public static function getCoaCurrentBudgetsByPoList($poList) { $poIds = array(); $budgets = array(); foreach ($poList as $po) { $poIds[] = $po->PO_ID; } if (count($poIds) > 0) { $budgets = Pos::getCoaCurrentBudgets($poIds); } return $budgets; }