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

      • m_invoice

        protected MInvoice m_invoice
        Loaded Invoice
      • m_rma

        protected MRMA m_rma
        Loaded RMA
    • Constructor Details

      • CreateFromShipment

        public CreateFromShipment(GridTab mTab)
        Constructor
        Parameters:
        mTab - MTab
    • Method Details

      • dynInit

        protected boolean dynInit() throws Exception
        Description copied from class: CreateFrom
        dynamic initialization, usually for loading of data
        Specified by:
        dynInit in class CreateFrom
        Returns:
        true if initialization success
        Throws:
        Exception
      • loadRMAData

        protected ArrayList<KeyNamePair> loadRMAData(int C_BPartner_ID)
        Load BPartner related RMA records.
        Parameters:
        C_BPartner_ID - BPartner
        Returns:
        list of RMA records
      • loadInvoiceData

        protected ArrayList<KeyNamePair> loadInvoiceData(int C_BPartner_ID)
        Load BPartner related Invoices
        Parameters:
        C_BPartner_ID -
        Returns:
        list of invoice records
      • getOrderData

        protected Vector<Vector<Object>> getOrderData(int C_Order_ID, boolean forInvoice)
        Load Order Lines
        Overrides:
        getOrderData in class CreateFrom
        Parameters:
        C_Order_ID - Order
        forInvoice - 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

        protected Vector<Vector<Object>> getRMAData(int M_RMA_ID)
        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

        protected Vector<Vector<Object>> getInvoiceData(int C_Invoice_ID)
        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

        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 (m_locator_id,value)
      • info

        public void info(IMiniTable miniTable, IStatusBar statusBar)
        Description copied from class: CreateFrom
        update status bar with info from miniTable
        Specified by:
        info in class CreateFrom
      • configureMiniTable

        protected void configureMiniTable(IMiniTable miniTable)
        set class/type of columns
        Parameters:
        miniTable -
      • save

        public boolean save(IMiniTable miniTable, String trxName)
        Create M_InOutLine
        Specified by:
        save in class CreateFrom
        Returns:
        true if saved
      • getOISColumnNames

        protected Vector<String> getOISColumnNames()
        Returns:
        column header names (select,quantity,uom,locator,product,vendorProductNo,order,rma,invoice)
      • getOrderData

        protected Vector<Vector<Object>> getOrderData(int C_Order_ID, boolean forInvoice, int M_Locator_ID)
        Load order lines
        Parameters:
        C_Order_ID -
        forInvoice -
        M_Locator_ID -
        Returns:
        order lines
      • getRMAData

        protected Vector<Vector<Object>> getRMAData(int M_RMA_ID, int M_Locator_ID)
        Parameters:
        M_RMA_ID -
        M_Locator_ID -
        Returns:
        RMA lines
      • getInvoiceData

        protected Vector<Vector<Object>> getInvoiceData(int C_Invoice_ID, int M_Locator_ID)
        Parameters:
        C_Invoice_ID -
        M_Locator_ID -
        Returns:
        Invoice lines