Package org.compiere.grid
Class CreateFromShipment
java.lang.Object
org.compiere.grid.CreateFrom
org.compiere.grid.CreateFromShipment
- All Implemented Interfaces:
ICreateFrom
- Direct Known Subclasses:
WCreateFromShipmentUI
Create M_InOutLine for M_InOut from Purchase Orders, Vendor Invoice or Customer RMA
- Version:
- $Id: VCreateFromShipment.java,v 1.4 2006/07/30 00:51:28 jjanke Exp $
- Author:
- Jorg Janke, Teo Sarca, SC ARHIPAC SERVICE SRL
- BF [ 1896947 ] Generate invoice from Order error
- BF [ 2007837 ] VCreateFrom.save() should run in trx
-
Field Summary
Fields inherited from class org.compiere.grid.CreateFrom
isSOTrx, log, p_order
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
configureMiniTable
(IMiniTable miniTable) set class/type of columnsprotected boolean
dynInit()
dynamic initialization, usually for loading of datagetInvoiceData
(int C_Invoice_ID) Load Invoice linesgetInvoiceData
(int C_Invoice_ID, int M_Locator_ID) protected KeyNamePair
getLocatorKeyNamePair
(int M_Locator_ID) Get KeyNamePair for Locator.getOrderData
(int C_Order_ID, boolean forInvoice) Load Order LinesgetOrderData
(int C_Order_ID, boolean forInvoice, int M_Locator_ID) Load order linesgetRMAData
(int M_RMA_ID) Load RMA linesgetRMAData
(int M_RMA_ID, int M_Locator_ID) void
info
(IMiniTable miniTable, IStatusBar statusBar) update status bar with info from miniTableprotected ArrayList<KeyNamePair>
loadInvoiceData
(int C_BPartner_ID) Load BPartner related Invoicesprotected ArrayList<KeyNamePair>
loadRMAData
(int C_BPartner_ID) Load BPartner related RMA records.boolean
save
(IMiniTable miniTable, String trxName) Create M_InOutLineMethods inherited from class org.compiere.grid.CreateFrom
closeWindow, getGridTab, getM_Warehouse_ID, getOrderData, getTitle, getTrxName, isInitOK, loadOrderData, loadOrderData, setInitOK, setTitle, setTrxName, showWindow
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.compiere.grid.ICreateFrom
getWindow
-
Field Details
-
m_invoice
Loaded Invoice -
m_rma
Loaded RMA
-
-
Constructor Details
-
CreateFromShipment
Constructor- Parameters:
mTab
- MTab
-
-
Method Details
-
dynInit
Description copied from class:CreateFrom
dynamic initialization, usually for loading of data- Specified by:
dynInit
in classCreateFrom
- Returns:
- true if initialization success
- Throws:
Exception
-
loadRMAData
Load BPartner related RMA records.- Parameters:
C_BPartner_ID
- BPartner- Returns:
- list of RMA records
-
loadInvoiceData
Load BPartner related Invoices- Parameters:
C_BPartner_ID
-- Returns:
- list of invoice records
-
getOrderData
Load Order Lines- Overrides:
getOrderData
in classCreateFrom
- Parameters:
C_Order_ID
- OrderforInvoice
- true if for invoice vs. delivery qty- Returns:
- Order lines (selection,qty,[c_uom_id,uomSymbol/name],[m_locator_id,value][m_product_id,name],vendorProductNo,[c_orderline_id,line],null,null)
-
getRMAData
Load RMA lines- Parameters:
M_RMA_ID
- RMA- Returns:
- RMA lines (selection,qty,[c_uom_id,uomSymbol/name],[m_locator_id,value],[m_product_id,name],null,null,[m_rmaline_id,line],null)
-
getInvoiceData
Load Invoice lines- Parameters:
C_Invoice_ID
- Invoice- Returns:
- Invoice lines (selection,qty,[c_uom_id,uomSymbol/name],[m_locator_id,value],[m_product_id,name],vendorProductNo,[c_orderline_id,.],null,[c_invoiceline_id,line])
-
getLocatorKeyNamePair
Get KeyNamePair for Locator. If no locator specified or the specified locator is not valid (e.g. warehouse not match), a default one will be used.- Parameters:
M_Locator_ID
-- Returns:
- KeyNamePair (m_locator_id,value)
-
info
Description copied from class:CreateFrom
update status bar with info from miniTable- Specified by:
info
in classCreateFrom
-
configureMiniTable
set class/type of columns- Parameters:
miniTable
-
-
save
Create M_InOutLine- Specified by:
save
in classCreateFrom
- Returns:
- true if saved
-
getOISColumnNames
- Returns:
- column header names (select,quantity,uom,locator,product,vendorProductNo,order,rma,invoice)
-
getOrderData
Load order lines- Parameters:
C_Order_ID
-forInvoice
-M_Locator_ID
-- Returns:
- order lines
-
getRMAData
- Parameters:
M_RMA_ID
-M_Locator_ID
-- Returns:
- RMA lines
-
getInvoiceData
- Parameters:
C_Invoice_ID
-M_Locator_ID
-- Returns:
- Invoice lines
-