Class CreateFromInvoice

java.lang.Object
org.compiere.grid.CreateFrom
org.compiere.grid.CreateFromInvoice
All Implemented Interfaces:
ICreateFrom
Direct Known Subclasses:
WCreateFromInvoiceUI

public abstract class CreateFromInvoice extends CreateFrom
Create Invoice Lines from Purchase Order, Material Receipt or Vendor RMA
Version:
$Id: VCreateFromInvoice.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 Details

      • CreateFromInvoice

        public CreateFromInvoice(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
      • loadShipmentData

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

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

        protected Vector<Vector<Object>> getShipmentData(int M_InOut_ID)
        Load Shipment Lines not invoiced
        Parameters:
        M_InOut_ID - InOut
        Returns:
        shipment lines (selection,qty,[c_uom_id,uomSymbol/name],[m_product_id,name],vendorProductNo,[c_orderline_id,.],[m_inoutline_id,line],null)
      • getRMAData

        protected Vector<Vector<Object>> getRMAData(int M_RMA_ID)
        Load RMA line records
        Parameters:
        M_RMA_ID - RMA
        Returns:
        RMA lines (selection,qty,[c_uom_id,uomSymbol/name],[m_product_id,name],null,null,null,[m_rmaline_id,line])
      • 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)
        Save - Create Invoice Lines
        Specified by:
        save in class CreateFrom
        Returns:
        true if saved
      • getOISColumnNames

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