public function dtgFunds_Unposted_Bind() { $fltArray = $this->objBatch->GetUnpostedBalanceByStewardshipFundId(); if (count($fltArray)) { $strArrayArray = array(); foreach ($fltArray as $intStewardshipFundId => $fltAmount) { $strArray = array(StewardshipFund::Load($intStewardshipFundId)->Name, QApplication::DisplayCurrencyHtml($fltAmount)); $strArrayArray[] = $strArray; } $this->dtgFunds->DataSource = $strArrayArray; } }
public function RenderAmount(StewardshipPost $objPost) { if ($objPost->Id) { return QApplication::DisplayCurrencyHtml($objPost->TotalAmount); } }
public function lblTotalAmount_Refresh($strFormId, $strControlId, $strParameter) { $fltTotal = 0; foreach ($this->mctAmountArray as $mctAmount) { $fltTotal += floatval($mctAmount->AmountControl->Text); } $this->lblTotalAmount->Text = QApplication::DisplayCurrencyHtml($fltTotal); }
public function RenderPaymentAmount(SignupPayment $objPayment) { if ($objPayment->Id) { return QApplication::DisplayCurrencyHtml($objPayment->Amount); } else { return QApplication::DisplayCurrencyHtml($this->mctSignupEntry->SignupEntry->RefreshAmounts()); } }
_p($objAmount->StewardshipFund->Name); ?> </div> <div class="value"><?php _p(QApplication::DisplayCurrencyHtml($objAmount->Amount), false); ?> </div> <div class="cleaner"></div> </div> <?php } ?> <div class="amount amountTotal"> <div class="fund">TOTAL</div> <div class="value"><?php _p(QApplication::DisplayCurrencyHtml($_CONTROL->objContribution->TotalAmount), false); ?> </div> <div class="cleaner"></div> </div> <div class="cleaner"></div> </div> <div class="recordInfo">Record originally created by <strong><?php _p($_CONTROL->objContribution->CreatedByLogin->Name); ?> </strong> on <strong><?php _p($_CONTROL->objContribution->DateEntered->ToString('MMMM D, YYYY')); ?> </strong> at <?php
<div class="cleaner"></div> <div class="batchLabel">Actual</div><div class="batchValue"><?php _p(QApplication::DisplayCurrency($this->objBatch->ActualTotalAmount)); ?> </div> <div class="cleaner"></div> <?php if ($this->objBatch->ReportedTotalAmount) { ?> <div class="batchLabel">Reported</div><div class="batchValue"><?php _p(QApplication::DisplayCurrency($this->objBatch->ReportedTotalAmount)); ?> </div> <div class="cleaner"></div> <div class="batchLabel">Difference</div><div class="batchValue"><?php _p(QApplication::DisplayCurrencyHtml($this->objBatch->ActualTotalAmount - $this->objBatch->ReportedTotalAmount), false); ?> </div> <div class="cleaner"></div> <?php } if ($this->objBatch->PostedTotalAmount) { ?> <div class="batchLabel">Posted</div><div class="batchValue"><?php _p(QApplication::DisplayCurrency($this->objBatch->PostedTotalAmount)); ?> </div> <?php } else { ?> <div class="batchLabel">Posted</div><div class="batchValue">n/a</div>
public function pnlStack_Refresh(StewardshipStack $objStack) { $strControlId = 'pnlStack' . $objStack->Id; $pnlStack = $this->GetControl($strControlId); if (!$pnlStack) { return; } $strClassName = null; if ($this->objStack && $this->objStack->Id == $objStack->Id) { $strClassName = 'selected'; // Since there are so many calculated values in the HTML, we'll store the template as a // sprintf-formatted string (e.g. with a bunch of %s) as a textfile and use sprintf to manually set the text of the // pnlStack, instead of doing a full fledged QPanel template if ($objStack->ReportedTotalAmount) { $strSprintfTemplate = file_get_contents(dirname(__FILE__) . '/pnlStack_WithReportedAmount.txt'); $pnlStack->Text = sprintf($strSprintfTemplate, $objStack->StackNumber, $strClassName, $objStack->StackNumber, number_format($objStack->ItemCount, 0), QApplication::DisplayCurrency($objStack->ActualTotalAmount), QApplication::DisplayCurrency($objStack->ReportedTotalAmount), QApplication::DisplayCurrencyHtml($objStack->ActualTotalAmount - $objStack->ReportedTotalAmount)); } else { $strSprintfTemplate = file_get_contents(dirname(__FILE__) . '/pnlStack_WithoutReportedAmount.txt'); $pnlStack->Text = sprintf($strSprintfTemplate, $objStack->StackNumber, $strClassName, $objStack->StackNumber, number_format($objStack->ItemCount, 0), QApplication::DisplayCurrency($objStack->ActualTotalAmount)); } // For "Unselected" } else { $strSprintfTemplate = file_get_contents(dirname(__FILE__) . '/pnlStack_Unselected.txt'); $pnlStack->Text = sprintf($strSprintfTemplate, $objStack->StackNumber, $strClassName, $objStack->StackNumber, number_format($objStack->ItemCount, 0), QApplication::DisplayCurrency($objStack->ActualTotalAmount)); } }
public function RenderAmount(StewardshipContributionAmount $objAmount) { if (!$objAmount->Id) { return '<span style="font-weight: normal;">' . QApplication::DisplayCurrency($this->fltTotal, 10) . '</span>'; } $this->fltTotal += $objAmount->Amount; $strToReturn = QApplication::DisplayCurrencyHtml($objAmount->Amount, true); if ($objAmount->StewardshipContribution->NonDeductibleFlag) { $strToReturn .= '<br/><span style="color: #666; font-size: 10px;">Non-Deductible</span>'; } return $strToReturn; }