Class WPaySelect

java.lang.Object
org.compiere.apps.form.PaySelect
org.adempiere.webui.apps.form.WPaySelect
All Implemented Interfaces:
ValueChangeListener, WTableModelListener, IFormController, org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>

public class WPaySelect extends PaySelect implements IFormController, org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>, WTableModelListener, ValueChangeListener
Create Manual Payments From (AP) Invoices or (AR) Credit Memos.
Allows user to select Invoices for payment.
When Processed, PaySelection is created and optionally process and printed.
  • Field Details

    • form

      protected CustomForm form
      Custom form/window instance
    • fieldBankAccount

      protected Listbox fieldBankAccount
      Bank account parameter
    • onlyDue

      protected Checkbox onlyDue
    • onlyPositiveBalance

      protected Checkbox onlyPositiveBalance
    • fieldBPartner

      protected Listbox fieldBPartner
    • fieldPayDate

      protected WDateEditor fieldPayDate
      C_PaySelection.PayDate
    • fieldPaymentRule

      protected Listbox fieldPaymentRule
    • fieldDtype

      protected Listbox fieldDtype
      Document Type
    • chkOnePaymentPerInv

      protected Checkbox chkOnePaymentPerInv
      MPaySelection.COLUMNNAME_IsOnePaymentPerInvoice
  • Constructor Details

    • WPaySelect

      public WPaySelect()
      Default constructor
  • Method Details

    • loadBankInfo

      protected void loadBankInfo()
      Load Bank Info - Load Info from Bank Account and valid Documents (PaymentRule)
    • loadTableInfo

      protected void loadTableInfo()
      Load open documents into miniTable
    • dispose

      public void dispose()
      Close form.
    • onEvent

      public void onEvent(org.zkoss.zk.ui.event.Event e)
      Event Listener
      Specified by:
      onEvent in interface org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
      Parameters:
      e - event
    • valueChange

      public void valueChange(ValueChangeEvent e)
      Description copied from interface: ValueChangeListener
      On value change event
      Specified by:
      valueChange in interface ValueChangeListener
    • tableChanged

      public void tableChanged(WTableModelEvent e)
      Table Model Listener
      Specified by:
      tableChanged in interface WTableModelListener
      Parameters:
      e - event
    • calculateSelection

      public void calculateSelection()
      Calculate selected rows.
      - add up selected rows
    • generatePaySelect

      protected void generatePaySelect()
      Generate C_PaySelection records.
    • lockUI

      public void lockUI(ProcessInfo pi)
      Lock User Interface. Called from the Worker before processing.
    • unlockUI

      public void unlockUI(ProcessInfo pi)
      Unlock User Interface. Called from the Worker when processing is done.
    • isUILocked

      public boolean isUILocked()
      Returns:
      true if UI is lock
    • getForm

      public ADForm getForm()
      Description copied from interface: IFormController
      Called by org.adempiere.webui.panel.ADForm.openForm(int)
      Specified by:
      getForm in interface IFormController
      Returns:
    • getProcessInfo

      public ProcessInfo getProcessInfo()
      Returns:
      ProcessInfo