org.adempiere.webui.apps.form
Class WPayment
java.lang.Object
org.zkoss.zk.ui.AbstractComponent
org.zkoss.zk.ui.HtmlBasedComponent
org.zkoss.zul.impl.XulElement
org.zkoss.zul.Window
org.adempiere.webui.component.Window
org.adempiere.webui.apps.form.WPayment
- All Implemented Interfaces:
- Serializable, Cloneable, Component, EventListener, IdSpace, ComponentCtrl
public class WPayment
- extends Window
- implements EventListener
Display (and process) Payment Options.
Payment Rule
-B- Cash (Date) -> Cash Entry
-P- Payment Term (Term)
-S- Check (Routing, ..) -> Payment Entry
-K- CreditCard (No) -> Payment Entry
-U- ACH Transfer (Routing) -> Payment Entry
When processing:
- If an invoice is a S/K/U, but has no Payment Entry, it is changed to P
- If an invoive is B and has no Cash Entry, it is created
- An invoice is "Open" if it is "P" and no Payment
Entry:
- If not processed, an invoice has no Cash or Payment entry
- The entry is created, during "Online" and when Saving
Changes/Reversals:
- existing Cash Entries are reversed and newly created
- existing Payment Entries are not changed and then "hang there" and need to be allocated
- Author:
- Niraj Sohun
Payment Rule : Based on VPayment
- See Also:
- Serialized Form
|
Method Summary |
boolean |
isInitOK()
Init OK to be able to make changes? |
boolean |
needSave()
Need Save record (payment with waiting order) |
void |
onEvent(Event e)
|
| Methods inherited from class org.zkoss.zul.Window |
clone, doEmbedded, doHighlighted, doModal, doOverlapped, doPopup, getBorder, getCaption, getContentSclass, getContentStyle, getDefaultActionOnShow, getMode, getOuterAttrs, getPosition, getRealStyle, getSclass, getTitle, getTitleSclass, inEmbedded, inHighlighted, inModal, inOverlapped, inPopup, insertBefore, isClosable, isSizable, newExtraCtrl, onChildRemoved, onClose, onModal, setBorder, setClosable, setContentSclass, setContentStyle, setDefaultActionOnShow, setDraggable, setMode, setMode, setPage, setParent, setPosition, setSclass, setSizable, setTitle, setVisible |
| Methods inherited from class org.zkoss.zul.impl.XulElement |
getAction, getActionAttrs, getAllOnClickAttrs, getContext, getCtrlKeys, getInnerAttrs, getPopup, getTooltip, setAction, setContext, setContext, setCtrlKeys, setPopup, setPopup, setTooltip, setTooltip |
| Methods inherited from class org.zkoss.zk.ui.HtmlBasedComponent |
focus, getAllOnClickAttrs, getDraggable, getDroppable, getHeight, getLeft, getRealSclass, getRealStyleFlags, getStyle, getTooltiptext, getTop, getWidth, getZIndex, setClass, setDroppable, setFocus, setHeight, setLeft, setStyle, setTooltiptext, setTop, setWidth, setZIndex |
| Methods inherited from class org.zkoss.zk.ui.AbstractComponent |
addAnnotation, addAnnotation, addEventHandler, addEventListener, addForward, addForward, addForward, addForward, addMoved, addSharedAnnotationMap, addSharedEventHandlerMap, appendAsapAttr, appendAsapAttr, appendChild, applyProperties, containsVariable, detach, equals, getAnnotatedProperties, getAnnotatedPropertiesBy, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAttribute, getAttribute, getAttributes, getAttributes, getChildren, getCommand, getDefinition, getDesktop, getEventHandler, getEventHandlerNames, getExtraCtrl, getFellow, getFellowIfAny, getFellows, getFirstChild, getId, getLastChild, getListenerIterator, getMold, getMoldURI, getNamespace, getNextSibling, getPage, getParent, getPreviousSibling, getPropagatee, getRoot, getSpaceOwner, getUuid, getVariable, invalidate, isAsapRequired, isChildable, isInvalidated, isListenerAvailable, isVisible, onChildAdded, onDrawNewChild, onPageAttached, onPageDetached, onWrongValue, redraw, removeAttribute, removeAttribute, removeChild, removeEventListener, removeForward, removeForward, response, sessionDidActivate, sessionWillPassivate, setAttribute, setAttribute, setComponentDefinition, setId, setMold, setPageBefore, setVariable, smartUpdate, smartUpdate, smartUpdate, smartUpdateDeferred, smartUpdateValues, toString, unsetVariable |
WPayment
public WPayment(int WindowNo,
GridTab mTab,
WButtonEditor button)
- Constructor
- Parameters:
WindowNo - owning windowmTab - owning tabbutton - button with access information
isInitOK
public boolean isInitOK()
- Init OK to be able to make changes?
- Returns:
- true if init OK
onEvent
public void onEvent(Event e)
throws Exception
- Specified by:
onEvent in interface EventListener
- Throws:
Exception
needSave
public boolean needSave()
- Need Save record (payment with waiting order)
- Returns:
- true if payment with waiting order
Adempiere® is a registered trademark of ADempiere Business Inc. ©2004-2008 HumanFlash.com All rights reserved.