psdi.app.signature

Class LimitTolerance

  • java.lang.Object
  • All Implemented Interfaces:
    java.rmi.Remote, MboConstants, MboRemote, MaxRemoteProxy


    public class LimitTolerance
    extends Mbo
    implements MboRemote
    Mbo object to represent LimitTolerance, which defines which financial limits and tolerances for a group and organization.

    See Signature Package description.

    This is a system level object.

    The key attributes for this object are GroupName and OrgID.

    The attributes in this object are as follows. For the limits, amounts, and percentages, a value of null signifies high values (no limit).

    Attribute NameDescription
    AuthorizedNon-persistent attribute. If True, the logged-on user is allowed to delete this record.
    ContractLimitThe total cost limit for contract approval.
    GroupNameThe group authorized for this site. Foreign key to MaxGroup.
    InvoiceLimitThe total cost limit for Invoice approval.
    LowerInvoiceAmtLower amount of the tolerance for the purchase order lines.
    LowerInvoicePctLower percentage of the tolerance for the purchase order lines.
    LowerServiceAmtLower amount of the tolerance for the purchase order.
    LowerServicePctLower percentage of the tolerance for the purchase order.
    LowerTaxAmtLower amount of the tax for the purchase order.
    LowerTaxPctLower percentage of the tax for the purchase order.
    MRLimitThe total cost limit for MR approval.
    OrgIDThe organization that the limits for MR, PO, Service, Tax, etc. apply to. The implicit currencycode is the organization's base currency. Foreign key to Organization.
    POLimitThe total cost limit for PO approval.
    PRLimitThe total cost limit for PR approval.
    UpperInvoiceAmtUpper amount of the tolerance for the purchase order lines.
    UpperInvoicePctUpper percentage of the tolerance for the purchase order lines.
    UpperServiceAmtUpper amount of the tolerance for the purchase order.
    UpperServicePctUpper percentage of the tolerance for the purchase order.
    UpperTaxAmtUpper amount of the tax for the purchase order.
    UpperTaxPctUpper percentage of the tax for the purchase order.
    See Also:
    MaxGroup, Organization
    • Constructor Detail

      • LimitTolerance

        public LimitTolerance(MboSet ms)
                       throws java.rmi.RemoteException
        Construct the LimitTolerance object
        Throws:
        java.rmi.RemoteException
    • Method Detail

      • init

        public void init()
                  throws MXException
        Description copied from class: Mbo
        Called by the framework when the Mbo has been constructed and the MboValues have been initialized. This can be overridden by the programmer to provide any custom initialization they would like to do.
        Overrides:
        init in class Mbo
        Throws:
        MXException
      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        Add a mbo, defaulting the attributes shown below.
        Attribute NameAttribute Value
        GroupNameIf owner is MaxGroup, equals the owner's groupname.
        All limits, amounts, and percentsZero.
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • propagateKeyValue

        public void propagateKeyValue(java.lang.String keyName,
                                      java.lang.String keyValue)
                               throws MXException,
                                      java.rmi.RemoteException
        Set value for groupname.
        Specified by:
        propagateKeyValue in interface MboRemote
        Overrides:
        propagateKeyValue in class Mbo
        Parameters:
        keyName - Should equal "groupname" or else nothing will be propagated.
        keyValue - The new value of groupname.
        Throws:
        MXException
        java.rmi.RemoteException
      • skipCopyField

        protected boolean skipCopyField(MboValueInfo mvi)
                                 throws java.rmi.RemoteException,
                                        MXException
        Fields to skip when copying mbo.
        Overrides:
        skipCopyField in class Mbo
        Parameters:
        mvi - The MboValueInfo describing this attribute
        Returns:
        True to skip this attribute
        Throws:
        java.rmi.RemoteException
        MXException
      • canDelete

        public void canDelete()
                       throws MXException,
                              java.rmi.RemoteException
        Call super. Then, if logon user is a site administrator (site subselect is not null), determine whether this mbo satisfies the site restriction.
        Overrides:
        canDelete in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException