Package org.compiere.model
Class CalloutInvoice
- java.lang.Object
-
- org.compiere.model.CalloutEngine
-
- org.compiere.model.CalloutInvoice
-
- All Implemented Interfaces:
Callout
public class CalloutInvoice extends CalloutEngine
Invoice Callouts- Version:
- $Id: CalloutInvoice.java,v 1.4 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 CalloutInvoice()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
amt(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value)
Invoice - AmountString
bPartner(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value)
Invoice Header- BPartnerString
charge(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value)
Invoice Line - ChargeString
docType(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value)
Invoice Header - DocTypeString
navigateInvoiceLine(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value)
String
paymentTerm(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value)
Deprecated.String
product(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value)
Invoice Line - ProductString
qty(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value)
Invoice Line - QuantityString
tax(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value)
Invoice Line - Tax-
Methods inherited from class org.compiere.model.CalloutEngine
checkPeriodOpen, convert, dateAcct, getGridField, getGridTab, isCalloutActive, rate, setCalloutActive, start
-
-
-
-
Method Detail
-
docType
public String docType(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value)
Invoice Header - DocType. - PaymentRule - temporary Document Context: - DocSubTypeSO - HasCharges - (re-sets Business Partner info of required)- Parameters:
ctx
- contextWindowNo
- window nomTab
- tabmField
- fieldvalue
- value- Returns:
- null or error message
-
bPartner
public String bPartner(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value)
Invoice Header- BPartner. - M_PriceList_ID (+ Context) - C_BPartner_Location_ID - AD_User_ID - POReference - SO_Description - IsDiscountPrinted - PaymentRule - C_PaymentTerm_ID- Parameters:
ctx
- contextWindowNo
- window nomTab
- tabmField
- fieldvalue
- value- Returns:
- null or error message
-
paymentTerm
@Deprecated public String paymentTerm(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value)
Deprecated.Set Payment Term. Payment Term has changed- Parameters:
ctx
- contextWindowNo
- window nomTab
- tabmField
- fieldvalue
- value- Returns:
- null or error message
-
product
public String product(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value)
Invoice Line - Product. - reset C_Charge_ID / M_AttributeSetInstance_ID - PriceList, PriceStd, PriceLimit, C_Currency_ID, EnforcePriceLimit - UOM Calls Tax- Parameters:
ctx
- contextWindowNo
- window nomTab
- tabmField
- fieldvalue
- value- Returns:
- null or error message
-
charge
public String charge(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value)
Invoice Line - Charge. - updates PriceActual from Charge - sets PriceLimit, PriceList to zero Calles tax- Parameters:
ctx
- contextWindowNo
- window nomTab
- tabmField
- fieldvalue
- value- Returns:
- null or error message
-
tax
public String tax(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value)
Invoice Line - Tax. - basis: Product, Charge, BPartner Location - sets C_Tax_ID Calls Amount- Parameters:
ctx
- contextWindowNo
- window nomTab
- tabmField
- fieldvalue
- value- Returns:
- null or error message
-
amt
public String amt(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value)
Invoice - Amount. - called from QtyInvoiced, PriceActual - calculates LineNetAmt- Parameters:
ctx
- contextWindowNo
- window nomTab
- tabmField
- fieldvalue
- value- Returns:
- null or error message
-
qty
public String qty(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value)
Invoice Line - Quantity. - called from C_UOM_ID, QtyEntered, QtyInvoiced - enforces qty UOM relationship- Parameters:
ctx
- contextWindowNo
- window nomTab
- tabmField
- fieldvalue
- value- Returns:
- null or error message
-
navigateInvoiceLine
public String navigateInvoiceLine(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value)
-
-