Пример #1
0
     $pdf->Write(8, $dep_Date);
     if ($totalCash > 0) {
         $totalCashStr = sprintf("%.2f", $totalCash);
         $pdf->PrintRightJustified($leftX + $amountOffsetX, $topY, $totalCashStr);
         $numItems += 1;
     }
     $pdf->PrintRightJustified($numItemsX, $numItemsY, $numItems);
     $pdf->PrintRightJustified($numItemsX, $numItemsY, $numItems);
     $grandTotalStr = sprintf("%.2f", $totalChecks + $totalCash);
     $pdf->PrintRightJustified($subTotalX, $subTotalY, $grandTotalStr);
     $pdf->PrintRightJustified($topTotalX, $topTotalY, $grandTotalStr);
 }
 $pdf->SetXY($date2X, $date2Y);
 $pdf->Write(8, $dep_Date);
 $pdf->SetXY($titleX, $titleY);
 $pdf->SetFont('Courier', 'B', 20);
 $pdf->Write(8, "Deposit Summary " . $iDepositSlipID);
 $pdf->SetFont('Times', 'B', 10);
 $curX = $summaryX;
 $curY = $summaryY;
 $summaryFundX = 15;
 $summaryMethodX = 55;
 $summaryFromX = 80;
 $summaryMemoX = 120;
 $summaryAmountX = 185;
 $summaryIntervalY = 4;
 // Get the list of funds
 $sSQL = "SELECT fun_ID,fun_Name,fun_Description,fun_Active FROM donationfund_fun";
 if ($editorMode == 0) {
     $sSQL .= " WHERE fun_Active = 'true'";
 }