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:
    Serialized Form
    • Constructor Detail

      • 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,
                                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 Detail

      • forC_Order_ID

        public static MRequisitionLine[] forC_Order_ID​(Properties ctx,
                                                       int C_Order_ID,
                                                       String trxName)
        Get corresponding Requisition Line for given Order Line
        Parameters:
        ctx -
        C_Order_ID - order line
        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 for given 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 for given 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
      • 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