Class Match

java.lang.Object
org.compiere.apps.form.Match
Direct Known Subclasses:
WMatch

public class Match extends Object
  • Field Details

  • Constructor Details

    • Match

      public Match()
  • Method Details

    • cmd_matchFrom

      protected Vector<String> cmd_matchFrom(String selection)
      Match From Changed - Fill Match To
      Parameters:
      selection - match from
    • cmd_search

      public IMiniTable cmd_search(IMiniTable xMatchedTable, int display, String matchToString, Integer Product, Integer Vendor, Timestamp from, Timestamp to, boolean matched)
      Search Button Pressed - Fill match from.
      Parameters:
      xMatchedTable -
      display - match from (MATCH_* constant), to popular xMatchedTable.
      matchToString - match to (invoice, material receipt or purchase order)
      Product - optional M_Product_ID
      Vendor - optional C_BPartner_ID
      from - optional from date
      to - optional to date
      matched - true for partial or fully match, false for not matched
    • cmd_process

      public void cmd_process(IMiniTable xMatchedTable, IMiniTable xMatchedToTable, int matchMode, int matchFrom, String matchTo, BigDecimal m_xMatched)
      Process Button Pressed - Process Matching
      Parameters:
      xMatchedTable - Match from table
      xMatchedToTable - Match to table
      matchMode - MODE_NOTMATCHED or MODE_MATCHED
      matchFrom - Match from document type
      matchTo - Match to document type
      m_xMatched - Difference to match
    • cmd_searchTo

      public IMiniTable cmd_searchTo(IMiniTable xMatchedTable, IMiniTable xMatchedToTable, String displayString, int matchToType, boolean sameBPartner, boolean sameProduct, boolean sameQty, boolean matched)
      Fill match to
      Parameters:
      xMatchedTable - Match from table, to get line id from selected row
      xMatchedToTable -
      displayString - Match from, to populate xMatchedToTable
      matchToType - Document to match with displayString (MATCH_* constant)
      sameBPartner -
      sameProduct -
      sameQty -
      matched - true for partial or fully match, false for not matched
    • tableInit

      protected void tableInit(int display, int matchToType, boolean matched, KeyNamePair lineMatched)
      Initialize Table access - create SQL, dateColumn.
      The driving table is "hdr", e.g. for hdr.C_BPartner_ID=..
      The line table is "lin", e.g. for lin.M_Product_ID=..
      You use the dateColumn/qtyColumn variable directly as it is table specific.
      The sql is dependent on MatchMode:
      - If Matched - all (fully or partially) matched records are listed
      - If Not Matched - all not fully matched records are listed
      Parameters:
      display - (Match from - Invoice, Material Receipt, Order) see MATCH_*
      matchToType - (Match to - Invoice, Material Receipt, Order) see MATCH_*
      matched - false for not matched, true for full/partially matched
      lineMatched -
    • tableLoad

      protected void tableLoad(IMiniTable table)
      Fill the table using m_sql
      Parameters:
      table - table
    • createMatchRecord

      protected boolean createMatchRecord(boolean invoice, int M_InOutLine_ID, int Line_ID, BigDecimal qty, String trxName)
      Create Matching Record
      Parameters:
      invoice - true if matching invoice false if matching PO
      M_InOutLine_ID - shipment line
      Line_ID - C_InvoiceLine_ID or C_OrderLine_ID
      qty - quantity
      trxName -
      Returns:
      true if created
    • setTrxName

      public void setTrxName(String trxName)
      Parameters:
      trxName -
    • getTrxName

      public String getTrxName()
      Returns:
      trxName
    • getMatchTypeText

      public String getMatchTypeText(int matchType)
      Parameters:
      matchType - MATCH_INVOICE, MATCH_SHIPMENT or MATCH_ORDER
      Returns:
      display text for match type
    • getColumnLayout

      public ColumnInfo[] getColumnLayout()
      Returns:
      ColumnInfo array