/** * 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'); }
/** * * @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'); }
/** * * @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'); }
/** * * @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'); }
/** * * @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'); }
/** * 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'); }
/** * 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}"); }