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
public abstract class CreateFromShipment extends CreateFrom
Create Invoice Transactions from PO Orders or Receipt- 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
-
-
Constructor Summary
Constructors Constructor Description CreateFromShipment(GridTab mTab)
Protected Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
configureMiniTable(IMiniTable miniTable)
boolean
dynInit()
Dynamic Initprotected Vector<Vector<Object>>
getInvoiceData(int C_Invoice_ID)
Load Invoice detailsprotected Vector<Vector<Object>>
getInvoiceData(int C_Invoice_ID, int M_Locator_ID)
protected KeyNamePair
getLocatorKeyNamePair(int M_Locator_ID)
Get KeyNamePair for Locator.protected Vector<String>
getOISColumnNames()
protected Vector<Vector<Object>>
getOrderData(int C_Order_ID, boolean forInvoice)
Load Data - Orderprotected Vector<Vector<Object>>
getOrderData(int C_Order_ID, boolean forInvoice, int M_Locator_ID)
protected Vector<Vector<Object>>
getRMAData(int M_RMA_ID)
Load RMA detailsprotected Vector<Vector<Object>>
getRMAData(int M_RMA_ID, int M_Locator_ID)
void
info(IMiniTable miniTable, IStatusBar statusBar)
List number of rows selectedprotected ArrayList<KeyNamePair>
loadInvoiceData(int C_BPartner_ID)
Load PBartner dependent Order/Invoice/Shipment Field.protected ArrayList<KeyNamePair>
loadRMAData(int C_BPartner_ID)
Load PBartner dependent Order/Invoice/Shipment Field.boolean
save(IMiniTable miniTable, String trxName)
Save - Create Invoice Lines-
Methods inherited from class org.compiere.grid.CreateFrom
closeWindow, getGridTab, getM_Warehouse_ID, getOrderData, getTitle, isInitOK, loadOrderData, loadOrderData, setInitOK, setTitle, 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
-
-
-
-
Constructor Detail
-
CreateFromShipment
public CreateFromShipment(GridTab mTab)
Protected Constructor- Parameters:
mTab
- MTab
-
-
Method Detail
-
dynInit
public boolean dynInit() throws Exception
Dynamic Init- Specified by:
dynInit
in classCreateFrom
- Returns:
- true if initialized
- Throws:
Exception
-
loadRMAData
protected ArrayList<KeyNamePair> loadRMAData(int C_BPartner_ID)
Load PBartner dependent Order/Invoice/Shipment Field.- Parameters:
C_BPartner_ID
- BPartner
-
loadInvoiceData
protected ArrayList<KeyNamePair> loadInvoiceData(int C_BPartner_ID)
Load PBartner dependent Order/Invoice/Shipment Field.- Parameters:
C_BPartner_ID
-
-
getOrderData
protected Vector<Vector<Object>> getOrderData(int C_Order_ID, boolean forInvoice)
Load Data - Order- Overrides:
getOrderData
in classCreateFrom
- Parameters:
C_Order_ID
- OrderforInvoice
- true if for invoice vs. delivery qty
-
getRMAData
protected Vector<Vector<Object>> getRMAData(int M_RMA_ID)
Load RMA details- Parameters:
M_RMA_ID
- RMA
-
getInvoiceData
protected Vector<Vector<Object>> getInvoiceData(int C_Invoice_ID)
Load Invoice details- Parameters:
C_Invoice_ID
- Invoice
-
getLocatorKeyNamePair
protected KeyNamePair getLocatorKeyNamePair(int M_Locator_ID)
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
-
info
public void info(IMiniTable miniTable, IStatusBar statusBar)
List number of rows selected- Specified by:
info
in classCreateFrom
-
configureMiniTable
protected void configureMiniTable(IMiniTable miniTable)
-
save
public boolean save(IMiniTable miniTable, String trxName)
Save - Create Invoice Lines- Specified by:
save
in classCreateFrom
- Returns:
- true if saved
-
getOrderData
protected Vector<Vector<Object>> getOrderData(int C_Order_ID, boolean forInvoice, int M_Locator_ID)
-
-