コード例 #1
0
 /**
  * print cash withdrawal
  * 
  * @param int $id cash withdrawal id
  */
 public function actionPrintWithdrawal($id)
 {
     Pdf::model()->executePdf(Pdf::PORTRAIT, Pdf::A4, 'Savings Withdrawal', 'application.views.pdf.cashWithdrawal', array('withdrawal' => CashWithdrawals::model()->findByPk($id)), 'Savings Withdrawal');
 }
コード例 #2
0
ファイル: Incomes.php プロジェクト: wanyos2005/hsbf
 /**
  * 
  * @param date $till yyyy-mm-dd
  */
 public function printTrialBalance($till)
 {
     Pdf::model()->executePdf(Pdf::PORTRAIT, Pdf::A4, 'Trial Balance', 'application.views.pdf.trialBalance', array('rows' => $this->balancesForMembers($this->cashAndBankBalances(array(), LoanApplications::model()->dayAfter($till)), Person::model()->membersForTrialBalance(), LoanApplications::model()->dayAfter($till), $till), 'till' => $till), 'Trial Balance');
 }
コード例 #3
0
ファイル: NextReceiptNo.php プロジェクト: wanyos2005/hsbf
 /**
  * 
  * @param array $receipts receipt numbers
  */
 public function printReceipts($receipts)
 {
     Pdf::model()->executePdf(Pdf::PORTRAIT, Pdf::A4, 'Receipts', 'application.views.pdf.receipts', array('receipts' => $receipts), 'Receipts');
 }
コード例 #4
0
ファイル: Expenditures.php プロジェクト: wanyos2005/hsbf
 /**
  * 
  * @param date $since yyyy-mm-dd
  * @param date $till yyyy-mm-dd
  */
 public function printExpenditureJournal($since, $till)
 {
     Pdf::model()->executePdf(Pdf::PORTRAIT, Pdf::A4, 'Payment Expenditure Journal', 'application.views.pdf.expenseJournal', array('expenses' => $this->expendituresBetweenAndIncludingThisDates($since, $till), 'since' => $since, 'till' => $till), 'Payment Expenditure Journal');
 }
コード例 #5
0
 /**
  * 
  * @param int $id loan application id
  */
 public function loanStatements($id)
 {
     Pdf::model()->executePdf(Pdf::PORTRAIT, Pdf::A4, 'Loan Repayment Statement', 'application.views.pdf.loanRepayment', array('loanApplication' => $loanApplication = LoanApplications::model()->findByPk($id), 'person' => Person::model()->loadModel($loanApplication->member), 'transactions' => $this->orderLoanRepaymentTransactions(LoanRepayments::model()->memberLoanRepaymentsBtwnDatesAgain($id, $startDate = $loanApplication->close_date, $endDate = date('Y') . '-' . date('m') . '-' . date('d')), $loanApplication, $startDate, $endDate), 'endDate' => $endDate), 'Loan Repayment Statement');
 }
コード例 #6
0
 /**
  * print loan application
  * 
  * @param int $id loan application id
  */
 public function actionPrintLoan($id)
 {
     Pdf::model()->executePdf(Pdf::PORTRAIT, Pdf::A4, 'Loan Application', 'application.views.pdf.loanApplication', array('loan' => LoanApplications::model()->findByPk($id)), 'Loan Application');
 }
コード例 #7
0
ファイル: DefaultController.php プロジェクト: wanyos2005/hsbf
 /**
  * print membership details
  * 
  * @param int $id person id
  */
 public function actionPrintMembershipDetails($id)
 {
     $person = Person::model()->findByPk($id);
     Pdf::model()->executePdf(Pdf::PORTRAIT, Pdf::A4, 'Membership Details', 'application.views.pdf.memberDetails', array('person' => $person), "{$person->first_name} {$person->middle_name} {$person->last_name}");
 }