Package org.compiere.model
Class CalloutPaymentAllocate
- java.lang.Object
-
- org.compiere.model.CalloutEngine
-
- org.compiere.model.CalloutPaymentAllocate
-
- All Implemented Interfaces:
Callout
public class CalloutPaymentAllocate extends CalloutEngine
Callout for Allocate Payments- Version:
- $Id: CalloutPaymentAllocate.java,v 1.3 2006/07/30 00:51:03 jjanke Exp $
- Author:
- Jorg Janke
-
-
Field Summary
-
Fields inherited from class org.compiere.model.CalloutEngine
additionalArgs, ARG_SEPARATOR, log, NO_ERROR
-
-
Constructor Summary
Constructors Constructor Description CalloutPaymentAllocate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
amounts(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value, Object oldValue)
Payment_Amounts.String
invoice(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value)
Payment_Invoice.-
Methods inherited from class org.compiere.model.CalloutEngine
checkPeriodOpen, convert, dateAcct, getGridField, getGridTab, isCalloutActive, rate, setCalloutActive, start
-
-
-
-
Method Detail
-
invoice
public String invoice(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value)
Payment_Invoice. when Invoice selected - set InvoiceAmt = invoiceOpen - DiscountAmt = C_Invoice_Discount (ID, DateTrx) - Amount = invoiceOpen (ID) - Discount - WriteOffAmt,OverUnderAmt = 0- 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
-
-