$objSignupProduct = SignupProduct::LoadBySignupEntryIdFormProductId($objSignupEntry->Id, $objFormProduct->Id); if ($objSignupProduct) { print QApplication::DisplayCurrency($objSignupProduct->Amount); } else { print " "; } print ","; } } print QApplication::DisplayCurrency($objSignupEntry->AmountTotal); print ","; print QApplication::DisplayCurrency($objSignupEntry->AmountPaid); print ","; print QApplication::DisplayCurrency($objSignupEntry->AmountBalance); print ","; $strReturn = ''; if ($objSignupEntry->CountSignupPayments()) { $objArray = $objSignupEntry->GetSignupPaymentArray(); $strReturn .= SignupPaymentType::ToString($objArray[0]->SignupPaymentTypeId); } else { $strReturn = 'No payment'; } print EscapeCsv($strReturn); print ","; } if ($objSignupEntry->DateSubmitted) { print EscapeCsv($objSignupEntry->DateSubmitted->ToString('M/D/YYYY')); } print "\r\n"; } }
public function RenderPaymentType(SignupEntry $objSignupEntry) { $strReturn = ''; if ($objSignupEntry->CountSignupPayments()) { $objArray = $objSignupEntry->GetSignupPaymentArray(); $strReturn .= SignupPaymentType::ToString($objArray[0]->SignupPaymentTypeId); } else { $strReturn = 'No payment'; } return $strReturn; }