} } else { $msg->getMessage("invoice first time"); echo $msg->displayMessage(); } $do_invoice_check->free(); } ?> </div> <div id="show_past_due"></div> <?php if ($_SESSION['inv_past_due_hide'] != 'Yes' && $_SESSION['do_invoice_list']->from_invoice_page === true) { //echo '<br /><br />'; echo $_SESSION['do_invoice_list']->getInvoicesPastDue(); } if ($do_payment_inv->getExtraAmoutNotPaid() !== false && $_SESSION['extra_amt'] == '') { echo '<br />'; echo '<div style="margin-left:0px;">'; echo '<div class="messages_unauthorized marginright">'; echo _('You have payments which are not yet applied to invoices.') . ' <a href="#" onclick="showExtraAmt();return false;">' . _('Click here.') . '</a>'; echo '<div id="extra_amt" style="display:none;">'; $do_payment_inv->displayExtraAmtNotPaid(); echo '</div>'; echo '</div></div><br />'; } ?> <div class="contentfull"> <div class="banner60_mid text14"> <?php if ($_SESSION['do_invoice_list']->from_invoice_page === true) {
/** * Event method to set the extra amount to the invoice * @param object $evtcl */ function eventSetApplyExtraAmount(EventControler $evtcl) { $do_payment_invoice = new PaymentInvoice(); if ($do_payment_invoice->getExtraAmoutNotPaid() !== false) { $_SESSION['extra_amt'] = $do_payment_invoice->extra_amt; $_SESSION['ref_num'] = $do_payment_invoice->ref_num; } }