psdi.app.po

Class POLineSet

    • Field Detail

      • dbPOLineSet

        public MboSetRemote dbPOLineSet
        08-22527: contains poline set in database
      • maxPOLineSeq

        public long maxPOLineSeq
    • Method Detail

      • defaultReceiptQty

        public void defaultReceiptQty()
                               throws MXException,
                                      java.rmi.RemoteException
        Calculate and set the default receipt quantity for each POLine in this set. The default receipt quantity is the order quantity minus the received qty. The default receipt quantity is set to the virtual field of qtytoreceive.
        Specified by:
        defaultReceiptQty in interface POLineSetRemote
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        POLineSet.defaultReceiptQty()
      • completeReceipts

        public void completeReceipts()
                              throws MXException,
                                     java.rmi.RemoteException
        Sets the receiptcomplete flag to true on the lines that have been selected. If all the POLines have their receiptcomplete flag set to true , the receipts flag on the PO is set to "COMPLETE" otherwise it is set to "PARTIAL". Also sets the complete flag on the MRLine from which the POLine was derived, if any. If all the lines in that MR have the complete flag set to true, the MR is closed. The status of the PO should be approved or inprg in order for the user to complete receipts.
        Specified by:
        completeReceipts in interface POLineSetRemote
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        POLineSet.completeReceipts()
      • canAdd

        public void canAdd()
                    throws MXException
        Can an object be added to the POLine? The owner of POLine must be PO and the status should be WAPPR.
        Overrides:
        canAdd in class MboSet
        Throws:
        MXApplicationException(po, - addpoline) is thrown when the owner is not PO
        MXApplicationException(po, - cannotAdd) is thrown when the PO status is not WAPPR
        MXException
      • setQbe

        public void setQbe(java.lang.String attribute,
                           java.lang.String expression)
                    throws MXException,
                           java.rmi.RemoteException
        Description copied from class: MboSet
        Add an expression to the existing Qbe. This will take effect the next time the MboSet is reset and a record is fetched. setQbe(String, String) can be called multiple times before initiating the fetch, in which case the expressions will be ANDed together.
        Specified by:
        setQbe in interface MboSetRemote
        Overrides:
        setQbe in class MboSet
        Parameters:
        attribute - The attribute name whose value is being restricted.
        expression - The restriction value for the attribute. The expression can be in either of two forms:
        • [operator] [operand] For example, >10. The supported operators are >, >=, <, <=, =, !=, and LIKE (default). For string datatypes, the operand can contain % characters for wildcards.
        • [operand] For example, "ABC" . In this form, the operator is assumed to be LIKE.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        MboSet.resetQbe(), MboSet.setQbe(String[], String), MboSet.reset(), MboSet.getMbo()
      • getUserWhere

        public java.lang.String getUserWhere(java.lang.String alias)
                                      throws MXException,
                                             java.rmi.RemoteException
        This method overridden to support QBE on nonpersistent attributes DisplayWonum and DisplayTaskID. Method getQbeWhere is not overrideable but this method is called to get the "User" clause or the QBE clause by the method that builds the complete where clause.
        Overrides:
        getUserWhere in class MboSet
        Throws:
        MXException
        java.rmi.RemoteException
      • populatePOLineNum

        public void populatePOLineNum(MboRemote poLine)
                               throws MXException,
                                      java.rmi.RemoteException
        08-22875: populate polinenum when a new POLine record is created
        Parameters:
        poLine -
        Throws:
        MXException
        java.rmi.RemoteException
      • setDBPOLineSet

        public MboSetRemote setDBPOLineSet(MboRemote thisPOLine)
                                    throws MXException,
                                           java.rmi.RemoteException
        08-22527: set the instance variable dbPOLineSet if it is null
        Parameters:
        thisPOLine -
        Throws:
        MXException
        java.rmi.RemoteException
      • getPOForQueryOnly

        public MboRemote getPOForQueryOnly(java.lang.String ponum,
                                           java.lang.String siteid,
                                           java.lang.String revisionnum)
                                    throws MXException,
                                           java.rmi.RemoteException
        IV35816/71201: multiple POLines query just one PO. For Performance, just use one PO, instead of POLINE.getMboSet("POREV"); *
        Parameters:
        invoicenum -
        siteid -
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • setPOforQueryOnly

        public void setPOforQueryOnly(MboRemote po)
                               throws MXException,
                                      java.rmi.RemoteException
        IV35816/71201: for performance
        Parameters:
        invoice -
        Throws:
        MXException
        java.rmi.RemoteException