Class MRfQ

    • Constructor Detail

      • MRfQ

        public MRfQ​(Properties ctx,
                    int C_RfQ_ID,
                    String trxName)
        Standard Constructor
        Parameters:
        ctx - context
        C_RfQ_ID - id
        trxName - transaction
      • MRfQ

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

        public MRfQ​(MRfQ copy)
        Parameters:
        copy -
      • MRfQ

        public MRfQ​(Properties ctx,
                    MRfQ copy)
        Parameters:
        ctx -
        copy -
      • MRfQ

        public MRfQ​(Properties ctx,
                    MRfQ copy,
                    String trxName)
        Parameters:
        ctx -
        copy -
        trxName -
    • Method Detail

      • get

        public static MRfQ get​(int C_RfQ_ID)
        Get MRfQ from Cache (immutable)
        Parameters:
        C_RfQ_ID - id
        Returns:
        MRfQ
      • get

        public static MRfQ get​(int C_RfQ_ID,
                               String trxName)
        Get MRfQ from db
        Parameters:
        C_RfQ_ID - id
        trxName - transaction
        Returns:
        MRfQ
      • get

        public static MRfQ get​(Properties ctx,
                               int C_RfQ_ID,
                               String trxName)
        Get MRfQ from db
        Parameters:
        ctx - context
        C_RfQ_ID - id
        trxName - transaction
        Returns:
        MRfQ
      • getLines

        public MRfQLine[] getLines()
        Get active Lines
        Returns:
        array of lines
      • getResponses

        public MRfQResponse[] getResponses​(boolean activeOnly,
                                           boolean completedOnly)
        Get RfQ Responses
        Parameters:
        activeOnly - active responses only
        completedOnly - complete responses only
        Returns:
        array of lines
      • toString

        public String toString()
        String Representation
        Overrides:
        toString in class X_C_RfQ
        Returns:
        info
      • isQuoteTotalAmtOnly

        public boolean isQuoteTotalAmtOnly()
        Is Quote Total Amt Only
        Returns:
        true if total amout only
      • isQuoteSelectedLines

        public boolean isQuoteSelectedLines()
        Is Quote Selected Lines
        Returns:
        true if quote selected lines
      • isQuoteAllLines

        public boolean isQuoteAllLines()
        Is Quote All Lines
        Returns:
        true if quote selected lines
      • checkQuoteTotalAmtOnly

        public String checkQuoteTotalAmtOnly()
        Is "Quote Total Amt Only" Valid
        Returns:
        null or error message
      • beforeSave

        protected boolean beforeSave​(boolean newRecord)
        Before Save
        Overrides:
        beforeSave in class PO
        Parameters:
        newRecord - new
        Returns:
        true