Package org.compiere.apps.form
Class Match
- java.lang.Object
-
- org.compiere.apps.form.Match
-
-
Field Summary
Fields Modifier and Type Field Description static int
I_BPartner
Indexes in Tablestatic int
I_Line
static int
I_MATCHED
static int
I_Product
static int
I_QTY
static int
MATCH_INVOICE
static int
MATCH_ORDER
static int
MATCH_SHIPMENT
static int
MODE_NOTMATCHED
-
Constructor Summary
Constructors Constructor Description Match()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Vector<String>
cmd_matchFrom(String selection)
Match From Changed - Fill Match Tovoid
cmd_process(IMiniTable xMatchedTable, IMiniTable xMatchedToTable, int matchMode, int matchFrom, String matchTo, BigDecimal m_xMatched)
Process Button Pressed - Process MatchingIMiniTable
cmd_search(IMiniTable xMatchedTable, int display, String matchToString, Integer Product, Integer Vendor, Timestamp from, Timestamp to, boolean matched)
Search Button Pressed - Fill match fromIMiniTable
cmd_searchTo(IMiniTable xMatchedTable, IMiniTable xMatchedToTable, String displayString, int matchToType, boolean sameBPartner, boolean sameProduct, boolean sameQty, boolean matched)
Fill match toprotected boolean
createMatchRecord(boolean invoice, int M_InOutLine_ID, int Line_ID, BigDecimal qty, String trxName)
Create Matching RecordString
getMatchTypeText(int matchType)
String
getTrxName()
void
setTrxName(String trxName)
protected void
tableInit(int display, int matchToType, boolean matched, KeyNamePair lineMatched)
Initialize Table access - create SQL, dateColumn.protected void
tableLoad(IMiniTable table)
Fill the table using m_sql
-
-
-
Field Detail
-
MATCH_INVOICE
public static final int MATCH_INVOICE
- See Also:
- Constant Field Values
-
MATCH_SHIPMENT
public static final int MATCH_SHIPMENT
- See Also:
- Constant Field Values
-
MATCH_ORDER
public static final int MATCH_ORDER
- See Also:
- Constant Field Values
-
MODE_NOTMATCHED
public static final int MODE_NOTMATCHED
- See Also:
- Constant Field Values
-
I_BPartner
public static final int I_BPartner
Indexes in Table- See Also:
- Constant Field Values
-
I_Line
public static final int I_Line
- See Also:
- Constant Field Values
-
I_Product
public static final int I_Product
- See Also:
- Constant Field Values
-
I_QTY
public static final int I_QTY
- See Also:
- Constant Field Values
-
I_MATCHED
public static final int I_MATCHED
- See Also:
- Constant Field Values
-
-
Method Detail
-
cmd_matchFrom
protected Vector<String> cmd_matchFrom(String selection)
Match From Changed - Fill Match To
-
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
-
cmd_process
public void cmd_process(IMiniTable xMatchedTable, IMiniTable xMatchedToTable, int matchMode, int matchFrom, String matchTo, BigDecimal m_xMatched)
Process Button Pressed - Process Matching
-
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
-
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
- (Invoice, Shipment, Order) see MATCH_*matchToType
- (Invoice, Shipment, Order) see MATCH_*
-
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 POM_InOutLine_ID
- shipment lineLine_ID
- C_InvoiceLine_ID or C_OrderLine_IDqty
- quantitytrxName
-- 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
-
-