Package org.compiere.model
Class CalloutPayment
java.lang.Object
org.compiere.model.CalloutEngine
org.compiere.model.CalloutPayment
- All Implemented Interfaces:
Callout
Payment Callouts. org.compiere.model.CalloutPayment.*
- Version:
- $Id: CalloutPayment.java,v 1.3 2006/07/30 00:51:03 jjanke Exp $
- Author:
- Jorg Janke, Teo Sarca, SC ARHIPAC SERVICE SRL
- BF [ 1803316 ] CalloutPayment: use C_Order.Bill_BPartner_ID, j2garcia - GlobalQSS
- BF [ 2021745 ] Cannot assign project to payment with charge, Carlos Ruiz - GlobalQSS
- BF [ 1933948 ] CalloutPayment working just with Draft Status
-
Field Summary
Fields inherited from class org.compiere.model.CalloutEngine
additionalArgs, ARG_SEPARATOR, log, NO_ERROR
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionamounts
(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value, Object oldValue) Payment_Amounts.charge
(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value) Payment_Charge. - reset - C_BPartner_ID, Invoice, Order, Project, Discount, WriteOffdocType
(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value) Payment_Document Type.invoice
(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value) Payment_Invoice. when Invoice selected - set C_Currency_ID - C_BPartner_ID - DiscountAmt = C_Invoice_Discount (ID, DateTrx) - PayAmt = invoiceOpen (ID) - Discount - WriteOffAmt = 0order
(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value) Payment_Order. when Waiting Payment Order selected - set C_Currency_ID - C_BPartner_ID - DiscountAmt = C_Invoice_Discount (ID, DateTrx) - PayAmt = invoiceOpen (ID) - Discount - WriteOffAmt = 0Methods inherited from class org.compiere.model.CalloutEngine
checkPeriodOpen, convert, dateAcct, getGridField, getGridTab, isCalloutActive, rate, setCalloutActive, start
-
Constructor Details
-
CalloutPayment
public CalloutPayment()
-
-
Method Details
-
invoice
Payment_Invoice. when Invoice selected - set C_Currency_ID - C_BPartner_ID - DiscountAmt = C_Invoice_Discount (ID, DateTrx) - PayAmt = invoiceOpen (ID) - Discount - WriteOffAmt = 0- Parameters:
ctx
- contextWindowNo
- current Window NomTab
- Grid TabmField
- Grid Fieldvalue
- New Value- Returns:
- null or error message
-
order
Payment_Order. when Waiting Payment Order selected - set C_Currency_ID - C_BPartner_ID - DiscountAmt = C_Invoice_Discount (ID, DateTrx) - PayAmt = invoiceOpen (ID) - Discount - WriteOffAmt = 0- Parameters:
ctx
- contextWindowNo
- current Window NomTab
- Grid TabmField
- Grid Fieldvalue
- New Value- Returns:
- null or error message
-
charge
Payment_Charge. - reset - C_BPartner_ID, Invoice, Order, Project, Discount, WriteOff- Parameters:
ctx
- contextWindowNo
- current Window NomTab
- Grid TabmField
- Grid Fieldvalue
- New Value- Returns:
- null or error message
-
docType
Payment_Document Type. Verify that Document Type (AP/AR) and Invoice (SO/PO) are in sync- Parameters:
ctx
- contextWindowNo
- current Window NomTab
- Grid TabmField
- Grid Fieldvalue
- New Value- Returns:
- null or error message
-
amounts
public String amounts(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value, Object oldValue) Payment_Amounts. Change of: - IsOverUnderPayment -> set OverUnderAmt to 0 - C_Currency_ID, C_ConvesionRate_ID -> convert all - PayAmt, DiscountAmt, WriteOffAmt, OverUnderAmt -> PayAmt make sure that add up to InvoiceOpenAmt- Parameters:
ctx
- contextWindowNo
- current Window NomTab
- Grid TabmField
- Grid Fieldvalue
- New ValueoldValue
- Old Value- Returns:
- null or error message
-