Ejemplo n.º 1
0
     $pdf->SetFont('Times', '', 10);
     $pdf->FinishPage($curY, $prev_fam_ID, $prev_fam_Name, $prev_fam_Address1, $prev_fam_Address2, $prev_fam_City, $prev_fam_State, $prev_fam_Zip, $prev_fam_Country);
 }
 // Start Page for New Family
 if ($fam_ID != $currentFamilyID) {
     $curY = $pdf->StartNewPage($fam_ID, $fam_Name, $fam_Address1, $fam_Address2, $fam_City, $fam_State, $fam_Zip, $fam_Country, $iYear, $fam_envelope);
     $summaryDateX = $pdf->leftX;
     $summaryCheckNoX = 40;
     $summaryMethodX = 60;
     $summaryFundX = 85;
     $summaryMemoX = 110;
     $summaryAmountX = 160;
     $summaryIntervalY = 4;
     $curY += 2 * $summaryIntervalY;
     $pdf->SetFont('Times', 'B', 10);
     $pdf->SetXY($summaryDateX, $curY);
     $pdf->Cell(20, $summaryIntervalY, 'Date');
     $pdf->Cell(20, $summaryIntervalY, 'Chk No.', 0, 0, "C");
     $pdf->Cell(25, $summaryIntervalY, 'PmtMethod');
     $pdf->Cell(40, $summaryIntervalY, 'Fund');
     $pdf->Cell(40, $summaryIntervalY, 'Memo');
     $pdf->Cell(25, $summaryIntervalY, 'Amount', 0, 1, "R");
     //$curY = $pdf->GetY();
     $totalAmount = 0;
     $totalNonDeductible = 0;
     $cnt = 0;
     $currentFamilyID = $fam_ID;
 }
 // Format Data
 if (strlen($plg_CheckNo) > 8) {
     $plg_CheckNo = "..." . substr($plg_CheckNo, -8, 8);
Ejemplo n.º 2
0
     $sDepositTitle = "Deposit #{$plg_depID} ({$dep_Date})";
     $pdf->SetFont("Times", 'B', 10);
     $pdf->WriteAt(20, $curY, $sDepositTitle);
     $curY += 1.5 * $summaryIntervalY;
 }
 // Check for new fund
 if (($currentFundID != $fun_ID || $currentDepositID != $plg_depID) && $currentFundID && $detail_level != "summary") {
     // New Fund. Print Previous Fund Summary
     if ($countFund > 1) {
         $item = gettext("items");
     } else {
         $item = gettext("item");
     }
     $sFundSummary = "{$currentFundName} Total - {$countFund} {$item}:   \$" . number_format($currentFundAmount, 2, '.', ',');
     $curY += 2;
     $pdf->SetXY(20, $curY);
     $pdf->SetFont("Times", 'I', 10);
     $pdf->Cell(176, $summaryIntervalY, $sFundSummary, 0, 0, "R");
     $curY += 1.75 * $summaryIntervalY;
     $countFund = 0;
     $currentFundAmount = 0;
     $page = $pdf->PageBreak($page);
 }
 // Check for new deposit
 if ($currentDepositID != $plg_depID && $currentDepositID) {
     // New Deposit ID.  Print Previous Deposit Summary
     if ($countDeposit > 1) {
         $item = gettext("items");
     } else {
         $item = gettext("item");
     }