// 9 //$PropertyName = $mTransactions->rPropertyDetail->rPropertyType?$mTransactions->rPropertyDetail->rPropertyType->name:''; // hình như ko dùng cái $PropertyName bên trên $PropertyName = ProTransactionsInvoice::getPropertyName($model) . " " . $mTransPropertyDetail->unit_no; $LanlordName = ProTransactions::getInvoiceLanlordName($mTransactions); $TenantName = ProTransactions::getInvoiceTenantName($mTransactions); $TransactionNo = $mTransactions->transactions_no; // 8 $ClientType = ProTransactions::$aClientSaleDetail[$mTransactions->client_type_id]; // 10 /** Oct 02, 2014 xu ly cho bill to solicitor is selected - hien tai moi lam invoice normal template 1 */ $VendorsName = ''; $SolicitorName = ""; $SolicitorAddress = ''; if ($mTransactions->invoice_bill_to == ProTransactions::BILL_TO_SOLICITOR) { $VendorsName = ProTransactionsVendorPurchaserDetail::getVendorNameForSolicitor($mTransactions); $SolicitorAddress = $mBillTo->billing_address; $SolicitorName = $mBillTo->attn_to; } /** Oct 02, 2014 xu ly cho bill to solicitor is selected - hien tai moi lam invoice normal template 1 */ // invoice normal $CommissionAmount = $mBillTo->commission_amount_gst; $AttnTo = $mBillTo->attn_to; $CompanyName = $mBillTo->company_name; $BillingAddress = $mBillTo->billing_address; $ContactNo = $mBillTo->contact_no; $PostalCode = $mBillTo->postal_code; // for invoice normal if (in_array($model->invoice_template, ProTransactionsInvoice::$aTemplateInvoiceExCobroke)) { $mExternal = $model->rExternalCobroke; if ($mExternal) {