Class 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
    • Constructor Detail

      • CalloutOrder

        public CalloutOrder()
    • 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 - Context
        WindowNo - current Window No
        mTab - Model Tab
        mField - Model Field
        value - 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 - Context
        WindowNo - current Window No
        mTab - Model Tab
        mField - Model Field
        value - 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 - Context
        WindowNo - current Window No
        mTab - Model Tab
        mField - Model Field
        value - 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 - context
        WindowNo - window no
        mTab - tab
        mField - field
        value - 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 - context
        WindowNo - current Window No
        mTab - Grid Tab
        mField - Grid Field
        value - New Value
        readonly - Read Only - do not set tab fields, just context
        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 - context
        WindowNo - window no
        mTab - tab
        mField - field
        value - 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 - context
        WindowNo - current Window No
        mTab - Grid Tab
        mField - Grid Field
        value - 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 - context
        WindowNo - current Window No
        mTab - Grid Tab
        mField - Grid Field
        value - 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 - context
        WindowNo - current Window No
        mTab - Grid Tab
        mField - Grid Field
        value - 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 - context
        WindowNo - current Window No
        mTab - Grid Tab
        mField - Grid Field
        value - 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 - context
        WindowNo - current Window No
        mTab - Grid Tab
        mField - Grid Field
        value - New Value
        Returns:
        null or error message