Class 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
    • Field Detail

      • m_invoice

        protected MInvoice m_invoice
        Loaded Invoice
      • m_rma

        protected MRMA m_rma
        Loaded RMA
    • Constructor Detail

      • CreateFromShipment

        public CreateFromShipment​(GridTab mTab)
        Protected Constructor
        Parameters:
        mTab - MTab
    • Method Detail

      • 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 class CreateFrom
        Parameters:
        C_Order_ID - Order
        forInvoice - 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
      • configureMiniTable

        protected void configureMiniTable​(IMiniTable 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()
      • getOrderData

        protected Vector<Vector<Object>> getOrderData​(int C_Order_ID,
                                                      boolean forInvoice,
                                                      int M_Locator_ID)
      • getRMAData

        protected Vector<Vector<Object>> getRMAData​(int M_RMA_ID,
                                                    int M_Locator_ID)
      • getInvoiceData

        protected Vector<Vector<Object>> getInvoiceData​(int C_Invoice_ID,
                                                        int M_Locator_ID)