Class MDiscountSchemaBreak

All Implemented Interfaces:
Serializable, Cloneable, Comparator<Object>, I_M_DiscountSchemaBreak, I_Persistent, Evaluatee, ImmutablePOSupport

public class MDiscountSchemaBreak extends X_M_DiscountSchemaBreak implements ImmutablePOSupport
Discount Schema Break Model
Version:
$Id: MDiscountSchemaBreak.java,v 1.3 2006/07/30 00:51:05 jjanke Exp $
Author:
Jorg Janke, Teo Sarca, SC ARHIPAC SERVICE SRL
  • BF [ 2012439 ] DiscountSchemaBreak: setting product and category is allowed
  • See Also:
    • Constructor Details

      • MDiscountSchemaBreak

        public MDiscountSchemaBreak(Properties ctx, String M_DiscountSchemaBreak_UU, String trxName)
        UUID based Constructor
        Parameters:
        ctx - Context
        M_DiscountSchemaBreak_UU - UUID key
        trxName - Transaction
      • 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)
        Copy constructor
        Parameters:
        copy -
      • MDiscountSchemaBreak

        public MDiscountSchemaBreak(Properties ctx, MDiscountSchemaBreak copy)
        Copy constructor
        Parameters:
        ctx -
        copy -
      • MDiscountSchemaBreak

        public MDiscountSchemaBreak(Properties ctx, MDiscountSchemaBreak copy, String trxName)
        Copy constructor
        Parameters:
        ctx -
        copy -
        trxName -
    • Method Details

      • applies

        public boolean applies(BigDecimal Value, int M_Product_ID, int M_Product_Category_ID)
        Check if criteria apply
        Parameters:
        Value - amt or qty
        M_Product_ID - product
        M_Product_Category_ID - category
        Returns:
        true if criteria is applicable for this break record
      • 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
      • toString

        public String toString()
        String Representation
        Overrides:
        toString in class X_M_DiscountSchemaBreak
        Returns:
        info
      • markImmutable

        public MDiscountSchemaBreak markImmutable()
        Description copied from interface: ImmutablePOSupport
        mark PO as immutable
        Specified by:
        markImmutable in interface ImmutablePOSupport
        Returns:
        PO