psdi.app.site

Class BilltoShipto

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


    public class BilltoShipto
    extends Mbo
    implements BilltoShiptoRemote
    MBO to represent BilltoShipto.

    See BILLTOSHIPTO Package description.

    The key attributes for this object are: OrgId, Siteid and AddressCode

    The attributes in this object are as follows:

    Attribute NameDescription
    ADDRESSCODEThe identifier of the address that is associated with the current record.
    BILLTOIndicates whether the specified address is to be used for billing.
    BILLTOCONTACTThe person identified as the contact for billing for the site.
    BILLTODEFAULTIndicates whether the specified address is the default billing address. If only one billing address is specified for a site, this address is the default bill-to address.
    SHIPTOIndicates whether the specified address is to be used for shipping.
    SHIPTOCONTACTThe person identified as the contact for shipping for the site.
    SHIPTODEFAULTIndicates whether the specified address is the default shipping address. If only one shipping address is specified for a site, this address is the default ship-to address.
    SITEIDDescription of the address. Long description is enabled.
    ORGIDDescription of the address. Long description is enabled.
    • Constructor Detail

      • BilltoShipto

        public BilltoShipto(MboSet ms)
                     throws MXException,
                            java.rmi.RemoteException
        Construct the BilltoShipto object. This method just includes a call to the super constructor.
        Parameters:
        ms -
        Throws:
        MXException
        java.rmi.RemoteException
    • Method Detail

      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        The siteid defaults to the selected site.
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • canDelete

        public void canDelete()
                       throws MXException,
                              java.rmi.RemoteException
        An address can be deleted only if it is not specified as a default in any of the sites, unless its the only record in the table.
        Overrides:
        canDelete in class Mbo
        Throws:
        MXApplicationException
        MXException
        java.rmi.RemoteException