Package org.compiere.model
Class CalloutOrder
java.lang.Object
org.compiere.model.CalloutEngine
org.compiere.model.CalloutOrder
- All Implemented Interfaces:
Callout
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
-
Method Summary
Modifier and TypeMethodDescriptionamt
(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value) Order Line - AmountbPartner
(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value) Order Header - BPartnerbPartnerBill
(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value) Order Header - Invoice BPartnercharge
(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value) Order Line - ChargedocType
(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value) Order Header Change - DocTypenavigateOrderLine
(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value) organization
(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value) paymentTerm
(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value) Deprecated.priceList
(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value) priceListFill
(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value, boolean readonly) Order Header - PriceList.priceListReadOnly
(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value) product
(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value) Order Line - Productqty
(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value) Order Line - QuantitySalesOrderTenderType
(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value, Object oldValue) tax
(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value) Order Line - Taxwarehouse
(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
-
Constructor Details
-
CalloutOrder
public CalloutOrder()
-
-
Method Details
-
docType
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
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
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
-
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
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
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
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
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
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
-
organization
public String organization(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value)
-