$cdf->setCompany($current_company->getId());
 $cdf->setStatus($data['status_id']);
 $cdf->setType($data['type_id']);
 $cdf->setName($data['name']);
 $cdf->setCalculation($data['calculation_id']);
 $cdf->setCalculationOrder($data['calculation_order']);
 if (isset($data['country'])) {
     $cdf->setCountry($data['country']);
 }
 if (isset($data['province'])) {
     $cdf->setProvince($data['province']);
 } else {
     $cdf->setProvince(NULL);
 }
 if (isset($data['district'])) {
     $cdf->setDistrict($data['district']);
 } else {
     $cdf->setDistrict(NULL);
 }
 if (isset($data['company_value1'])) {
     $cdf->setCompanyValue1($data['company_value1']);
 }
 if (isset($data['company_value2'])) {
     $cdf->setCompanyValue2($data['company_value2']);
 }
 $cdf->setPayStubEntryAccount($data['pay_stub_entry_account_id']);
 if (isset($data['user_value1'])) {
     $cdf->setUserValue1($data['user_value1']);
 }
 if (isset($data['user_value2'])) {
     $cdf->setUserValue2($data['user_value2']);