示例#1
0
                 $f940->l15b = TRUE;
                 if (isset($lines_arr[1]['p4_12'])) {
                     $f940->l16a = $lines_arr[1]['p4_12'];
                 }
                 if (isset($lines_arr[2]['p4_12'])) {
                     $f940->l16b = $lines_arr[2]['p4_12'];
                 }
                 if (isset($lines_arr[3]['p4_12'])) {
                     $f940->l16c = $lines_arr[3]['p4_12'];
                 }
                 if (isset($lines_arr[4]['p4_12'])) {
                     $f940->l16d = $lines_arr[4]['p4_12'];
                 }
             }
             $gf->addForm($f940);
             $output = $gf->output('PDF');
             if (Debug::getVerbosity() == 11) {
                 Debug::Display();
             } else {
                 Misc::FileDownloadHeader('f940.pdf', 'application/pdf', strlen($output));
                 echo $output;
             }
             Debug::writeToLog();
             exit;
         }
     }
     break;
 case 'delete':
 case 'save':
     Debug::Text('Action: ' . $action, __FILE__, __LINE__, __METHOD__, 10);
     $generic_data['id'] = UserGenericDataFactory::reportFormDataHandler($action, $filter_data, $generic_data, URLBuilder::getURL(NULL, $_SERVER['SCRIPT_NAME']));
示例#2
0
 $t4s->l88 = count($rows) - 1;
 $t4s->l14 = $rows[$last_row]['income'];
 $t4s->l22 = $rows[$last_row]['income_tax'];
 $t4s->l16 = $rows[$last_row]['employee_cpp'];
 $t4s->l18 = $rows[$last_row]['employee_ei'];
 $t4s->l27 = $rows[$last_row]['employer_cpp'];
 $t4s->l19 = $rows[$last_row]['employer_ei'];
 $t4s->l20 = $rows[$last_row]['rpp'];
 $t4s->l52 = $rows[$last_row]['pension_adjustment'];
 $total_deductions = Misc::MoneyFormat($rows[$last_row]['employee_cpp'] + $rows[$last_row]['employer_cpp'] + $rows[$last_row]['employee_ei'] + $rows[$last_row]['employer_ei'] + $rows[$last_row]['income_tax'], FALSE);
 $t4s->l82 = $total_deductions;
 $gf->addForm($t4s);
 if ($action == 'display_t4s') {
     $file_name = 't4_' . $filter_data['year'] . '.pdf';
     $mime_type = 'application/pdf';
     $output = $gf->output('PDF');
 } elseif ($action == 'export_xml') {
     $file_name = 't4_' . $filter_data['year'] . '.xml';
     $mime_type = 'application/octetstream';
     $output = $gf->output('XML');
 }
 unset($t4, $t4s);
 if (Debug::getVerbosity() == 11) {
     Debug::Display();
 } elseif (strlen($output) > 0) {
     Misc::FileDownloadHeader($file_name, $mime_type, strlen($output));
     echo $output;
     exit;
 } else {
     echo TTi18n::getText('Invalid data, unable to generate report.');
     Debug::writeToLog();
示例#3
0
文件: roe.php 项目: alachaum/timetrex
$roe_obj->created_user_last_name = 'huang';
$roe_obj->created_user_full_name = 'ennis huang';
$roe_obj->created_user_work_phone = '00000000000';
$roe_obj->company_work_phone = '555-555-555';
$roe_obj->pay_period_type = 10;
$roe_obj->code_id = 'A';
//$roe_obj->other_monies_code_id;
$roe_obj->first_date = '1336543200';
$roe_obj->last_date = '1336629599';
$roe_obj->pay_period_end_date = '1336629600';
$roe_obj->recall_date = '1338134400';
$roe_obj->insurable_hours = '453454353411.34';
$roe_obj->insurable_earnings = '565445.23';
$roe_obj->vacation_pay = '43543512.43';
$roe_obj->serial = '223232323232';
$roe_obj->payroll_reference_number = '223232323232';
$roe_obj->comments = 'ennis huang test';
$roe_obj->created_date = '1336548824';
$roe_obj->pay_period_earnings = array(860.13, 1204.0, 860.13, 1204.0, 860.13, 1204.0, 860.13, 1204.0, 860.13, 1204.0, 860.13, 1204.0, 860.13, 1204.0, 860.13, 1204.0, 860.13, 1204.0, 860.13, 1204.0, 860.13, 1204.0, 860.13, 1204.0, 860.13, 1204.0, 860.13, 1204.0, 860.13, 1204.0, 860.13, 1204.0, 860.13, 1204.0, 860.13, 1204.0, 860.13, 1204.0, 860.13, 1204.0, 860.13, 1204.0, 860.13, 1204.0, 860.13, 1204.0, 860.13, 1204.0, 860.13, 1204.0, 860.13, 1204.0, 860.13);
$roe_obj->english = TRUE;
$roe_obj->not_returning = TRUE;
$roe_obj->recall_cod = 1;
$roe_obj->other_monies = array('1256556.43', '5654612.43', '654612.43');
$roe_obj->statutory_holiday = array('4353412.43', '4353412.43', '4353412.43', '4353412.43', '4353412.43', '4353412.43', '4353412.43', '4353412.43', '4353412.43', '4353412.43', '4353412.43', '4353412.43', '4353412.43', '4353412.43');
$gf->addForm($roe_obj);
//$output = $gf->output( 'pdf' );
//file_put_contents( 'roe.pdf', $output );
$output = $gf->output('xml');
//var_dump($output);
file_put_contents('roe.blk', $output);
Debug::writeToLog();
示例#4
0
文件: 941.php 项目: alachaum/timetrex
$f941_obj->l4 = TRUE;
$f941_obj->l5 = 9999.99;
$f941_obj->l5a = 9999.91;
$f941_obj->l5b = 9999.92;
$f941_obj->l5c = 9999.93;
$f941_obj->l5d = 9999.690000000001;
$f941_obj->l5f = 9999.59;
//$f941_obj->l7 = 0.02;
//$f941_obj->l7b = 9999.99;
//$f941_obj->l7c = 9999.99;
//$f941_obj->l8 = 30000.98;
//$f941_obj->l9 = 30000.99;
$f941_obj->l11 = 9999.959999999999;
//$f941_obj->l11 = 99999.96;
$f941_obj->l12a = 9999.969999999999;
$f941_obj->l12b = 52;
$f941_obj->l15a = TRUE;
$f941_obj->l15b = TRUE;
//$f941_obj->l16 = 'NY';
$f941_obj->l16_month1 = 9999.99;
$f941_obj->l16_month2 = 9999.99;
$f941_obj->l16_month3 = 9999.99;
$gf->addForm($f941_obj);
//$output = $gf->output( 'xml' );
//file_put_contents( '941.xml', $output );
$output = $gf->output('pdf');
file_put_contents('/tmp/941test.pdf', $output);
Debug::writeToLog();
?>