psdi.app.invoice

Class InvoiceStatus

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


    public class InvoiceStatus
    extends Mbo
    implements InvoiceStatusRemote
    Mbo object to represent InvoiceStatus. InvoiceStatus stores the current status of the invoice. It is updated whenever the invoice status changes.

    See Invoice Package description.

    The key attribute for this object is InvoiceNum.

    The attributes in this object are as follows:

    Attribute NameAttribute Description
    ChangeByThe name or user ID of the person who last changed the invoice status.
    ChangeDateThe date and time when the invoice status was changed.
    InvoiceNumIdentifier of the invoice.
    MemoNote entered by user regarding this status change.
    OrgIDOrganization Identifier.
    SiteIDSite Identifier.
    StatusThe current status of the invoice.
    VendorVendor of the invoice. Foreign key to Company.
    • Constructor Detail

      • InvoiceStatus

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

      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        This is called when a new invoice is added to the Invoice MboSet collection. The field defaults and field flags are set here. This object can only be called by the Invoice object. The table below shows the default values for each of the attributes listed.
        Attribute NameAttribute Value
        changebyOwner Invoice's username
        changedateOwner Invoice's status date
        invoicenumOwner Invoice's invoicenum
        statusOwner Invoice's status
        vendorOwner Invoice's vendor
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • skipCopyField

        protected boolean skipCopyField(MboValueInfo mvi)
                                 throws MXException,
                                        java.rmi.RemoteException
        Overrides the skipCopyField() in the Mbo. If this field does not need to be copied return true. The following are the InvoiceStatus fields will be skipped without being copied to the newly duplicated InvoiceStatus:
        1. invoicenum
        2. changeby
        3. changedate
        4. siteid
        5. orgid
        Overrides:
        skipCopyField in class Mbo
        Parameters:
        mvi - The MboValueInfo object of the MboValue that needs to be copied.
        Returns:
        true If the field does not need to be copied return true, in all other cases return false.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        Invoice.duplicate(), Invoice.loadSkipFieldCopyHashSet()