Class MRfQResponseLineQty

    • Constructor Detail

      • MRfQResponseLineQty

        public MRfQResponseLineQty​(Properties ctx,
                                   int C_RfQResponseLineQty_ID,
                                   String trxName)
        Persistency Constructor
        Parameters:
        ctx - context
        C_RfQResponseLineQty_ID - id
        trxName - transaction
      • MRfQResponseLineQty

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

        public MRfQResponseLineQty​(MRfQResponseLine line,
                                   MRfQLineQty qty)
        Parent Constructor
        Parameters:
        line - line
        qty - qty
    • Method Detail

      • getRfQLineQty

        public MRfQLineQty getRfQLineQty()
        Get RfQ Line Qty
        Returns:
        RfQ Line Qty
      • isValidAmt

        public boolean isValidAmt()
        Is the Amount (price - discount) Valid
        Returns:
        true if valid
      • getNetAmt

        public BigDecimal getNetAmt()
        Get Net Amt (price minus discount in %)
        Returns:
        net amount or null
      • compare

        public int compare​(Object o1,
                           Object o2)
        Compare based on net amount
        Specified by:
        compare in interface Comparator<Object>
        Overrides:
        compare in class PO
        Parameters:
        o1 - the first object to be compared.
        o2 - the second object to be compared.
        Returns:
        a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.
        Throws:
        ClassCastException - if the arguments' types prevent them from being compared by this Comparator.
      • equals

        public boolean equals​(Object obj)
        Is Net Amount equal ?
        Specified by:
        equals in interface Comparator<Object>
        Overrides:
        equals in class PO
        Parameters:
        obj - the reference object with which to compare.
        Returns:
        true if Net Amount equal
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class PO
      • beforeSave

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