Class MRequisitionLine

All Implemented Interfaces:
Serializable, Cloneable, Comparator<Object>, I_M_RequisitionLine, I_Persistent, Evaluatee

public class MRequisitionLine extends X_M_RequisitionLine
Requisition Line Model
Version:
$Id: MRequisitionLine.java,v 1.2 2006/07/30 00:51:03 jjanke Exp $
Author:
Jorg Janke, Teo Sarca, www.arhipac.ro
  • BF [ 2419978 ] Voiding PO, requisition don't set on NULL
  • BF [ 2608617 ] Error when I want to delete a PO document
  • BF [ 2609604 ] Add M_RequisitionLine.C_BPartner_ID
  • FR [ 2841841 ] Requisition Improvements https://sourceforge.net/p/adempiere/feature-requests/792/
  • See Also:
    • Constructor Details

      • MRequisitionLine

        public MRequisitionLine(Properties ctx, String M_RequisitionLine_UU, String trxName)
        UUID based Constructor
        Parameters:
        ctx - Context
        M_RequisitionLine_UU - UUID key
        trxName - Transaction
      • MRequisitionLine

        public MRequisitionLine(Properties ctx, int M_RequisitionLine_ID, String trxName)
        Standard Constructor
        Parameters:
        ctx - context
        M_RequisitionLine_ID - id
        trxName - transaction
      • MRequisitionLine

        public MRequisitionLine(Properties ctx, int M_RequisitionLine_ID, String trxName, String... virtualColumns)
        Parameters:
        ctx -
        M_RequisitionLine_ID -
        trxName -
        virtualColumns -
      • MRequisitionLine

        public MRequisitionLine(Properties ctx, ResultSet rs, String trxName)
        Load Constructor
        Parameters:
        ctx - context
        rs - result set
        trxName - transaction
      • MRequisitionLine

        public MRequisitionLine(MRequisition req)
        Parent Constructor
        Parameters:
        req - requisition
    • Method Details

      • forC_Order_ID

        public static MRequisitionLine[] forC_Order_ID(Properties ctx, int C_Order_ID, String trxName)
        Get corresponding Requisition Line for given Order
        Parameters:
        ctx -
        C_Order_ID - order
        trxName -
        Returns:
        Requisition Line array
      • unlinkC_Order_ID

        public static void unlinkC_Order_ID(Properties ctx, int C_Order_ID, String trxName)
        UnLink Requisition Lines from Order
        Parameters:
        ctx -
        C_Order_ID -
        trxName -
      • forC_OrderLine_ID

        public static MRequisitionLine[] forC_OrderLine_ID(Properties ctx, int C_OrderLine_ID, String trxName)
        Get corresponding Requisition Line(s) for given Order Line
        Parameters:
        ctx -
        C_OrderLine_ID - order line
        trxName -
        Returns:
        array of Requisition Line(s)
      • unlinkC_OrderLine_ID

        public static void unlinkC_OrderLine_ID(Properties ctx, int C_OrderLine_ID, String trxName)
        UnLink Requisition Lines from Order Line
        Parameters:
        ctx -
        C_OrderLine_ID -
        trxName -
      • getQtyOrdered

        public BigDecimal getQtyOrdered()
        Get Ordered Qty
        Returns:
        Ordered Qty
      • getParent

        public MRequisition getParent()
        Get Parent
        Returns:
        parent
      • getM_Requisition

        public I_M_Requisition getM_Requisition()
        Specified by:
        getM_Requisition in interface I_M_RequisitionLine
        Overrides:
        getM_Requisition in class X_M_RequisitionLine
      • getDateRequired

        public Timestamp getDateRequired()
        Returns:
        Date when this product is required by planner
        See Also:
      • setPrice

        public void setPrice()
        Set PriceActual to charge amount or standard product price
      • setPrice

        public void setPrice(int M_PriceList_ID)
        Set Price for Product and PriceList
        Parameters:
        M_PriceList_ID - price list
      • setLineNetAmt

        public void setLineNetAmt()
        Calculate Line Net Amt
      • beforeSave

        protected boolean beforeSave(boolean newRecord)
        Description copied from class: PO
        Called before Save for Pre-Save Operation.
        Default implementation is nop, to be implemented in sub-classes that needed it.
        Overrides:
        beforeSave in class PO
        Parameters:
        newRecord - true if it is a new record
        Returns:
        true if record can be saved
      • afterSave

        protected boolean afterSave(boolean newRecord, boolean success)
        Description copied from class: PO
        Called after Save for Post-Save Operation.
        Default implementation is nop, to be implemented in sub-classes that needed it.
        Overrides:
        afterSave in class PO
        Parameters:
        newRecord - true if it is a new record
        success - true if save operation was success
        Returns:
        if save was a success
      • afterDelete

        protected boolean afterDelete(boolean success)
        Description copied from class: PO
        Execute after Delete operations.
        Default implementation is nop, to be implemented in sub-classes that needed it.
        Overrides:
        afterDelete in class PO
        Parameters:
        success - true if record deleted
        Returns:
        true if delete is a success
      • getM_Product

        public I_M_Product getM_Product()
        Specified by:
        getM_Product in interface I_M_RequisitionLine
        Overrides:
        getM_Product in class X_M_RequisitionLine