$cdf->setExcludeAccountAmountType($data['exclude_account_amount_type_id']);
     }
     if ($cdf->isValid()) {
         $cdf->Save(FALSE);
         if (isset($data['include_pay_stub_entry_account_ids'])) {
             $cdf->setIncludePayStubEntryAccount($data['include_pay_stub_entry_account_ids']);
         } else {
             $cdf->setIncludePayStubEntryAccount(array());
         }
         if (isset($data['exclude_pay_stub_entry_account_ids'])) {
             $cdf->setExcludePayStubEntryAccount($data['exclude_pay_stub_entry_account_ids']);
         } else {
             $cdf->setExcludePayStubEntryAccount(array());
         }
         if (isset($data['user_ids'])) {
             $cdf->setUser($data['user_ids']);
         } else {
             $cdf->setUser(array());
         }
         if ($cdf->isValid()) {
             $cdf->Save(TRUE);
             $cdf->CommitTransaction();
             Redirect::Page(URLBuilder::getURL(NULL, 'CompanyDeductionList.php'));
             break;
         }
     }
 default:
     if (isset($id)) {
         BreadCrumb::setCrumb($title);
         $cdlf = new CompanyDeductionListFactory();
         $cdlf->getByCompanyIdAndId($current_company->getId(), $id);