コード例 #1
0
ファイル: AdvancedDeposit.php プロジェクト: dschwen/CRM
 }
 // 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");
     }
     $sDepositSummary = "Deposit #{$currentDepositID} Total - {$countDeposit} {$item}:   \$" . number_format($currentDepositAmount, 2, '.', ',');
     $pdf->SetXY(20, $curY);
     $pdf->SetFont("Times", 'B', 10);
     $pdf->Cell(176, $summaryIntervalY, $sDepositSummary, 0, 0, "R");
     $curY += 2 * $summaryIntervalY;
     if ($detail_level != "summary") {
         $pdf->line(40, $curY - 2, 195, $curY - 2);
     }
     $page = $pdf->PageBreak($page);
     // New Deposit Title
     if ($detail_level != "summary") {
         $sDepositTitle = "Deposit #{$plg_depID} ({$dep_Date})";
         $pdf->SetFont("Times", 'B', 10);
         $pdf->WriteAt(20, $curY, $sDepositTitle);
         $curY += 1.5 * $summaryIntervalY;
     }
     $countDeposit = 0;
     $currentDepositAmount = 0;
 }
 // Print Deposit Detail
 if ($detail_level == "detail") {
     // Format Data