Package org.compiere.model
Class CalloutOrder
- java.lang.Object
-
- org.compiere.model.CalloutEngine
-
- org.compiere.model.CalloutOrder
-
- All Implemented Interfaces:
Callout
public class CalloutOrder extends CalloutEngine
Order Callouts.- Version:
- $Id: CalloutOrder.java,v 1.5 2006/10/08 06:57:33 comdivision 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 CalloutOrder()
-
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)
Order Line - AmountString
bPartner(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value)
Order Header - BPartnerString
bPartnerBill(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value)
Order Header - Invoice BPartnerString
charge(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value)
Order Line - ChargeString
docType(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value)
Order Header Change - DocTypeString
navigateOrderLine(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value)
String
organization(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value)
String
paymentTerm(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value)
Deprecated.String
priceList(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value)
String
priceListFill(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value, boolean readonly)
Order Header - PriceList.String
priceListReadOnly(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value)
String
product(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value)
Order Line - ProductString
qty(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value)
Order Line - QuantityString
SalesOrderTenderType(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value, Object oldValue)
String
tax(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value)
Order Line - TaxString
warehouse(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value)
Set Delivery Rule if Warehouse is changed.-
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)
Order Header Change - DocType. - InvoiceRule/DeliveryRule/PaymentRule - temporary Document Context: - DocSubTypeSO - HasCharges - (re-sets Business Partner info of required)- Parameters:
ctx
- ContextWindowNo
- current Window NomTab
- Model TabmField
- Model Fieldvalue
- The new value- Returns:
- Error message or ""
-
bPartner
public String bPartner(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value)
Order Header - BPartner. - M_PriceList_ID (+ Context) - C_BPartner_Location_ID - Bill_BPartner_ID/Bill_Location_ID - AD_User_ID - POReference - SO_Description - IsDiscountPrinted - InvoiceRule/DeliveryRule/PaymentRule/FreightCost/DeliveryViaRule - C_PaymentTerm_ID- Parameters:
ctx
- ContextWindowNo
- current Window NomTab
- Model TabmField
- Model Fieldvalue
- The new value- Returns:
- Error message or ""
-
bPartnerBill
public String bPartnerBill(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value)
Order Header - Invoice BPartner. - M_PriceList_ID (+ Context) - Bill_Location_ID - Bill_User_ID - POReference - SO_Description - IsDiscountPrinted - InvoiceRule/PaymentRule - C_PaymentTerm_ID- Parameters:
ctx
- ContextWindowNo
- current Window NomTab
- Model TabmField
- Model Fieldvalue
- The new value- Returns:
- Error message or ""
-
warehouse
public String warehouse(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value)
Set Delivery Rule if Warehouse is changed.- Parameters:
ctx
- contextWindowNo
- window nomTab
- tabmField
- fieldvalue
- value- Returns:
- null or error message
-
priceListFill
public String priceListFill(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value, boolean readonly)
Order Header - PriceList. (used also in Invoice) - C_Currency_ID - IsTaxIncluded Window Context: - EnforcePriceLimit - StdPrecision - M_PriceList_Version_ID- Parameters:
ctx
- contextWindowNo
- current Window NomTab
- Grid TabmField
- Grid Fieldvalue
- New Valuereadonly
- Read Only - do not set tab fields, just context- Returns:
- null or error message
-
priceList
public String priceList(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value)
-
priceListReadOnly
public String priceListReadOnly(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value)
-
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)
Order Line - Product. - reset C_Charge_ID / M_AttributeSetInstance_ID - PriceList, PriceStd, PriceLimit, C_Currency_ID, EnforcePriceLimit - UOM Calls Tax- Parameters:
ctx
- contextWindowNo
- current Window NomTab
- Grid TabmField
- Grid Fieldvalue
- New Value- Returns:
- null or error message
-
charge
public String charge(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value)
Order Line - Charge. - updates PriceActual from Charge - sets PriceLimit, PriceList to zero Calls tax- Parameters:
ctx
- contextWindowNo
- current Window NomTab
- Grid TabmField
- Grid Fieldvalue
- New Value- Returns:
- null or error message
-
tax
public String tax(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value)
Order Line - Tax. - basis: Product, Charge, BPartner Location - sets C_Tax_ID Calls Amount- Parameters:
ctx
- contextWindowNo
- current Window NomTab
- Grid TabmField
- Grid Fieldvalue
- New Value- Returns:
- null or error message
-
amt
public String amt(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value)
Order Line - Amount. - called from QtyOrdered, Discount and PriceActual - calculates Discount or Actual Amount - calculates LineNetAmt - enforces PriceLimit- Parameters:
ctx
- contextWindowNo
- current Window NomTab
- Grid TabmField
- Grid Fieldvalue
- New Value- Returns:
- null or error message
-
qty
public String qty(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value)
Order Line - Quantity. - called from C_UOM_ID, QtyEntered, QtyOrdered - enforces qty UOM relationship- Parameters:
ctx
- contextWindowNo
- current Window NomTab
- Grid TabmField
- Grid Fieldvalue
- New Value- Returns:
- null or error message
-
SalesOrderTenderType
public String SalesOrderTenderType(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value, Object oldValue)
-
organization
public String organization(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value)
-
navigateOrderLine
public String navigateOrderLine(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value)
-
-