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
  • Constructor Details

    • CalloutInvoice

      public CalloutInvoice()
  • Method Details

    • 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 - context
      WindowNo - window no
      mTab - tab
      mField - field
      value - 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 - context
      WindowNo - window no
      mTab - tab
      mField - field
      value - 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 - 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)
      Invoice Line - Product. - reset C_Charge_ID / M_AttributeSetInstance_ID - PriceList, PriceStd, PriceLimit, C_Currency_ID, EnforcePriceLimit - UOM Calls Tax
      Parameters:
      ctx - context
      WindowNo - window no
      mTab - tab
      mField - field
      value - 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 - context
      WindowNo - window no
      mTab - tab
      mField - field
      value - 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 - context
      WindowNo - window no
      mTab - tab
      mField - field
      value - 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 - context
      WindowNo - window no
      mTab - tab
      mField - field
      value - 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 - context
      WindowNo - window no
      mTab - tab
      mField - field
      value - value
      Returns:
      null or error message