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 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)
        Before Save
        Overrides:
        beforeSave in class PO
        Parameters:
        newRecord - new
        Returns:
        true
      • afterSave

        protected boolean afterSave(boolean newRecord, boolean success)
        After Save. Update Total on Header
        Overrides:
        afterSave in class PO
        Parameters:
        newRecord - if new record
        success - save was success
        Returns:
        true if saved
      • afterDelete

        protected boolean afterDelete(boolean success)
        After Delete
        Overrides:
        afterDelete in class PO
        Parameters:
        success -
        Returns:
        true/false
      • 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