Class MPackage

    • Constructor Detail

      • MPackage

        public MPackage​(Properties ctx,
                        int M_Package_ID,
                        String trxName)
        MPackage
        Parameters:
        ctx - context
        M_Package_ID - id
        trxName - transaction
      • MPackage

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

        public MPackage​(MInOut shipment,
                        MShipper shipper)
        Shipment Constructor
        Parameters:
        shipment - shipment
        shipper - shipper
    • Method Detail

      • create

        public static MPackage create​(MInOut shipment,
                                      MShipper shipper,
                                      Timestamp shipDate)
        Create one Package for Shipment
        Parameters:
        shipment - shipment
        shipper - shipper
        shipDate - null for today
        Returns:
        package
      • 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
      • afterSave

        protected boolean afterSave​(boolean newRecord,
                                    boolean success)
        Description copied from class: PO
        Called after Save for Post-Save Operation
        Overrides:
        afterSave in class PO
        Parameters:
        newRecord - new record
        success - true if save operation was success
        Returns:
        if save was a success
      • beforeDelete

        protected boolean beforeDelete()
        Description copied from class: PO
        Executed before Delete operation.
        Overrides:
        beforeDelete in class PO
        Returns:
        true if record can be deleted
      • setErrorMessage

        public void setErrorMessage​(String errorMessage)
      • getErrorMessage

        public String getErrorMessage()
      • processOnline

        public boolean processOnline​(String action,
                                     boolean isPriviledgedRate)