Class MDiscountSchemaBreak

    • Constructor Detail

      • MDiscountSchemaBreak

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

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

        public MDiscountSchemaBreak​(MDiscountSchemaBreak copy)
        Parameters:
        copy -
    • Method Detail

      • applies

        public boolean applies​(BigDecimal Value,
                               int M_Product_ID,
                               int M_Product_Category_ID)
        Criteria apply
        Parameters:
        Value - amt or qty
        M_Product_ID - product
        M_Product_Category_ID - category
        Returns:
        true if criteria met
      • beforeSave

        protected boolean beforeSave​(boolean newRecord)
        Description copied from class: PO
        Called before Save for Pre-Save Operation
        Overrides:
        beforeSave in class PO
        Parameters:
        newRecord - new record
        Returns:
        true if record can be saved