psdi.app.po.virtual

Class ReceiptInputSet

    • Constructor Detail

      • ReceiptInputSet

        public ReceiptInputSet(MboServerInterface ms)
                        throws MXException,
                               java.rmi.RemoteException
        Construct the set
        Parameters:
        ms - The MboServerInterface
        Throws:
        MXException
        java.rmi.RemoteException
    • Method Detail

      • getMboInstance

        protected Mbo getMboInstance(MboSet ms)
                              throws MXException,
                                     java.rmi.RemoteException
        Factory method to create an ReceiptInputSet object. The ReceiptInputSet is a dummy set used only for viewing. This set is not associated with any table.
        Specified by:
        getMboInstance in class MboSet
        Parameters:
        ms - The ReceiptInputSet.
        Returns:
        an ReceiptInputSet object.
        Throws:
        MXException
        java.rmi.RemoteException
      • createReceiptsForReturnPrepSrv

        public void createReceiptsForReturnPrepSrv(MboRemote po)
                                            throws MXException,
                                                   java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • setRelationshipStringFromPO

        public void setRelationshipStringFromPO(java.lang.String relationship)
                                         throws MXException,
                                                java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • createReceiptsForReturnPrep

        public void createReceiptsForReturnPrep(MboRemote po)
                                         throws MXException,
                                                java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • createShipmentReceiptsForReturnPrep

        public void createShipmentReceiptsForReturnPrep(MboRemote shipment)
                                                 throws MXException,
                                                        java.rmi.RemoteException
        This method loops thru the ship receipt transactions to create receipts for return. It adds records to ReceiptInput non-persistent object, that gets displayed when user clicks on Select Items for Return/Void Ship receipts.
        Parameters:
        shipment -
        Throws:
        MXException
        java.rmi.RemoteException
      • setShipmentReturnVariablesPrep

        public void setShipmentReturnVariablesPrep(MboRemote matRecRemote,
                                                   MboRemote receiptInputRemote)
                                            throws MXException,
                                                   java.rmi.RemoteException
        Set the variables on the RETURN.
        Parameters:
        matRecRemote -
        receiptInputRemote -
        Throws:
        MXException
        java.rmi.RemoteException
      • diHasFinancialTransactions

        public boolean diHasFinancialTransactions(MatRecTrans mrt,
                                                  Asset asset)
                                           throws MXException,
                                                  java.rmi.RemoteException
        This method determines if the asset has any records related to it in the MATRECTRANS, MATUSETRANS and ASSETTRANS tables.
        Parameters:
        asset -
        Throws:
        MXException
        java.rmi.RemoteException
      • generateServiceReturnReceipts

        public void generateServiceReturnReceipts(MboSetRemote servRecTransSetRemote)
                                           throws MXException,
                                                  java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • generateReceipts

        public boolean generateReceipts(MboSetRemote targetMbos)
                                 throws MXException,
                                        java.rmi.RemoteException
        Based on the selected rows of the MboSet containing the information required to create receipts, service or material receipts are created and added to the target mbo set passed in as the parameter. If the targetMbos is a ServRecTrans set, only those selected which have service flag on will have receipts created for them. If targetMbos is a MatRecTransSet, only those selected which have service flag turned off will have receipts created for them.
        Parameters:
        ui - The user Info of who is calling this method.
        targetMbos, - ServRecTransSetRemote or MatRecTransSetRemote, where the newly created receipts will be added to.
        dataSheet - the non persistent mbo set remote of ReceiptInput Mbos which the selected ones will be based on to create the receipts.
        Returns:
        If any new receipts are created, returns true, otherwise, returns false.
        Throws:
        MXException
        java.rmi.RemoteException
      • generateReturnReceipts

        public void generateReturnReceipts(MboSetRemote targetMboSet)
                                    throws MXException,
                                           java.rmi.RemoteException
        This method calls create receipt method for all the selected records by the user.
        Parameters:
        targetMboSet -
        Throws:
        MXException
        java.rmi.RemoteException
      • getInvAdjLifoFifo

        public double getInvAdjLifoFifo(MboRemote inv,
                                        long receiptId)
                                 throws MXException,
                                        java.rmi.RemoteException
        IV99519:
        Parameters:
        inv -
        receiptId -
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException