psdi.app.inventory

Class MatRecTrans

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


    public class MatRecTrans
    extends ReceiptMbo
    implements MatRecTransRemote
    Mbo object to represent MatRecTrans.

    See Inventory Package description.

    This is a site-level object.

    The key attributes in this object are as follows: SiteId, MatRecTransId

    The attributes in this object are as follows:

    Attribute Name Description
    ActualCost The actual cost of the item to be considered for determining the trasaction value. ActualCost = CurrencyUnitCost * ExchangeRate. For receipts, the ActualCost is the same as the UnitCost.
    ActualDate Date and time when transaction occurred. This value can be overridden.
    ASN ASN (Advanced Shipping Notice) is a non-persistent boolean attribute that indicates if a MatRecTrans Record was created from a ShipmentLine or directly from the POLine. This attribute is set to false if the MatRecTrans was created from a POLine and is set to true if the MatRecTrans was created from a ShipmentLine. This attribute is not used in releases subsequent to Rel. 4.1.1.
    BelongsTo MatrRecTransId of the parent receipt transaction. This attribute pertains only to transactions of type INVOICE and POCOST.
    Category Non persistent attribute that holds the value of the corresponding PO line's category. Used only for display purposes.
    CurBal Balance for the item in a specific bin of a storeroom.
    Conversion Factor to convert from order units to issue units.
    CostInfo Flag to indicate if this line carries the cost information. If true, this receipt exists for cost distribution purposes and will contain account information only.
    CurBal Balance for the item in a specific bin of a storeroom.
    CurrencyCode Currency code for the transaction. Initially this value is defaulted from the BASECURRENCY1 value set in the MaxVars object. When a purchase order (PO) number is entered, the currencycode is copied from the PO object's CurrencyCode.
    CurrencyOrderUnitCost Non persistent attribute to hold the value of POLine's unitcost. Used for display purposes only.
    CurrencyLineCost Line cost of the line in the transaction currency. CurrencyLineCost = CurrencyUnitCost * Quantity.
    CurrencyLoadedCost Non-persistent attribute to hold the value of loadedcost * exchangerate. CurrencyLoadedCost will be in Vendors' currency.
    CurrencyTax1 thru CurrencyTax-n Non-persistent attribute to hold the value of tax1 thru tax-n * exchangerate. CurrencyTax1 thru CurrencyTax-n will be in Vendors' currency.
    CurrencyUnitCost The unit cost of the line in the transaction currency.
    Description Description of the transaction. This value is initially copied from the item's description in the Item object.
    EnterBy Person entering the transaction.
    EnteredAsTask Flag to indicate whether this receipt's RefWo attribute is a child task. If true, RefWO identifies a child task for the parent WoNum. If false, RefWO and WoNum identify the same non-suboridnate work order.
    AssetNum Asset to which the item is being received when the originating purchase order line is flagged to be issued on receipt.
    ExchangeRate Defined in the MaxVars object, this is the rate of exchange from transaction currency to base currency 1.
    ExchangeRate2 If defined in the MaxVars object, this is the rate of exchange from transaction currency to base currency 2.
    FinancialPeriod Financial period during which the transaction occurred.
    FinCtrlId Financial control Id.
    FromBin The bin from which the transfer is being made. This attribute pertains to transactions of IssueType TRANSFER only.
    FromLot The lot from which the trasfer is being made. This attribute pertains to transactions of IssueType TRANSFER only.
    FromStoreLoc The storeroom from which the item is being transferred. This attribute pertains to transactions of IssueType TRANSFER only.
    FromSiteId The storeroom's site from which the item is being transferred. This attribute pertains to transactions of IssueType TRANSFER only.
    GlCreditAcct GL credit account for the transaction.
    GlDebitAcct GL debit account for the transaction.
    InvoiceNum Invoice number for the invoice created when the purchase order mandates payment on receipt.
    IsDistributed Flag to indicate if the cost on the receipt has been distributed across multiple GL accounts.
    Issue Flag to indicate if the item on this transaction line is to be directly issued on receipt. When a purchase order (PO) number exists, this flag is copied from the originating PO line.
    IssueTo Labor code of the person to get an item that is issued on receipt. A GL account is not associated with this person, so a work order number, asset number, location or gl account must still be provided for items to be issued on receipt.
    IssueType One of five different MatRecTrans transaction types from the ISSUETYP value list. Valid values are illustrated in the following table:

              
    Transaction Type Description
    RECEIPT when an inventory item is received
    TRANSFER when an inventory item is transferred between storerooms
    INVOICE when a variance to a receipt line is recorded during invoicing
    MISCLREC when the receipt of an inventory item is recorded in an external system, and this receipt is subsequently recorded in MAXIMO.
    POCOST when a receipt's cost is distributed to multiple GL accounts. This type of MatRecTrans transaction contains account information only.

    IT1 - IT10 Extra Fields IT1 - IT10
    Itemnum Item number of the inventory item being received. Foreign key to Item.
    ITIN1 - ITIN7 Extra Fields ITIN1 - ITIN7
    LdKey Key to Longdescription for this receipt transaction.
    LineCost Line cost for this receipt transaction. LineCost = ActualCost(using the exchange rate for BASECURRENCY1) * Quantity.
    LineCost2 Line cost for this receipt transaction. LineCost2 = ActualCost(using the exchange rate for BASECURRENCY2) * Quantity.
    LoadedCost LineCost + ProrateCost + Tax1 thru Tax-n depending on each tax's taxtype.
    Location Non-storeroom location to which the item is being received. This attribute pertains only to those receipt transaction originating from purchase order lines that are flagged for issue on receipt.
    Manufacturer Manufacturer for the line item. Manufacturer can be chosen from but need not exist in the Companies table.
    MatRecTransId Unique key for this transaction.
    MatUseTransId used only when breaking an inventory kit. This is the identifier of the MatUseTrans record that records the "use" of the kit that is being disassembled.
    MfgLotNum Non-persistent attribute to hold the value of InvLot's Manufacturer lot number.
    ModelNum The model number for the item on this receipt transaction.
    MRLineNum MR line number that originated the need for the item that is being received.
    MRNum The MR that originated the need for material.
    NewPhysCnt Non-persistent attribute to adjust the physical count on a receipt transaction of type RECEIPT.
    NewPhysCntDate Non-persistent attribute to record the date and time of a physical count adjustment performed during a receipt transaction of type RECEIPT.
    OldAvgCost Average cost for the item in the receiving storeroom before this receipt transaction.
    OrderQty Non-persistent attribute that holds the value of OrderQty attribute in the originating POLine object. This is for display purposes only. This attribute is not used in releases subsequent to Rel. 4.1.1.
    OrgId Identifier of the organization for this receipt transaction. Foreign key to Organization.
    Outside Flag indicating whether or not this transaction is for consignment goods.
    PackingSlipNum Identifier assigned to order upon fulfillment.
    PoLineNum Purchase order line number from which this receipt transaction originated.
    PoNum Identifier of the purchase order from which this receipt transaction originated.
    PoLineCost Non-persistent attribute representing the line cost from the corresponding PO line.
    PoUnitCost Non-persistent attribute representing the unit cost from the corresponding PO line.
    ProrateCost The sum of all service-related costs that are prorated to this line. ProrateCost is part of the loaded cost calculation.
    Prorated Flag indicating if the line cost is prorated.
    QtyHeld Quantity of this item being received if receipt location is a labor or courier location.
    QtyRequested Quantity ordered less the quantity already received. This value is calculated from the quantity ordered and the quantity already received on the originating purchase order line. QtyRequested is useful to know how many more items are left to be received if receipt of a particular purchase order line takes place across multiple receipt transactions.
    Quantity Number of items involved in the transaction. This value is in issue units, and is calculated from the ReceiptQuantity value.
    QtyAlreadyRecvd QtyAlreadyRecvd holds the value of the ReceivedQty attribute from the originating purchase order line. QtyAlreadyRecvd is a non-persistent attribute, and is not used in releases subsequent to Rel. 4.1.1.
    ReceiptQuantity Number of items in order units that are being received. This value is then multiplied by the Conversion factor to yield the Quantity in issue units. ReceiptQuantity is a non-persistent attribute.
    ReceivedUnit Unit in which the item is received. For example, a 25-yard roll of copper tubing can be expressed as one roll or 25 yards. In this case, ReceivedUnit could be either 'ROLL' or 'YARDS'.
    RefWO This persistent attribute is the actual work order number associated with this receipt transaction. This value is obtained from the Work Order using this transaction's non-persisten WoNum and TaskId attributes.

    If this receipt's TaskId is non-null, RefWO is a child of WoNum. RefWO is set to the WoNum from the work order object whose WoNum and TaskId match this receipt's WoNum and TaskId.

    If this receipt's TaskId is null, then RefWO is set to this receipt's WoNum value.

    RejectCode Explanation for rejecting any of the receipt quantity.
    RejectQty Quantity of receipt not accepted.
    Remark Remark for this transaction.
    RequestedBy Person who requested the purchase order line item that is the origin of this receipt transaction.
    RotatingAssetDesc Non-persistent attribute holding the description for the new asset generated when a rotating item is received.
    SiteId Identifier of the site for this MatRecTrans. Foreign key to Site.
    ShelfLife Non-persistent attribute to hold the value of InvLot's shelflife.
    Status Status of the receipt. When the originating purchase order line item's InspectionRequired attribute is true, this status is initially 'waiting for approval', that is, 'WAPPR'. After approval, Status is complete, that is, 'COMP'. When the originating purchase order line item's InspectionRequired attribute is false, Status is null and the receipt is implicitly assumed to be approved.
    StatusChangeBy Person who carried out the last status change.
    StatusDate Date on which the status of the receipt was changed.
    TaskId Work order task identifier. This and the WoNum attribute are used to determine the actual work order (that is, RefWO) to which an 'Issue On Receipt' item is being issued.
    Tax1 - Tax-n Amount of tax due on the line item for the corresponding tax code. For example, Tax1 corresponds to Tax1Code.
    Tax1Code - Tax-n-Code Tax1 code through Tax-n code. Each tax code corresponds to a tax column. For example, Tax1Code corresponds to Tax1. Tax codes identify the different taxes that apply to this receipt transaction. For example, state, VAT and other taxes may apply to receipt transactions.
    ToBin Bin into which the receipt is being made in the destination location.
    ToLot Lot into which the receipt is being made in the destination location.
    ToStoreLoc Inventory-type destination location into which the item is being received. Foreign key to Location. object for locations of type "STOREROOM", "COURIER" or "LABOR".
    TotalCurBal Total current balance in the destination location for this receipt before the transaction.
    TransDate System date & time. This attribute cannot be modified.
    UnitCost Cost of item on this transaction. It is calculated as currencyunitcost * exchangerage.If item is capitalized, unitcost = 0. If this is a transfer without a po, unitcost= the default issue cost of ITEM/TOstoreloc.
    UseBy Non-persistent attribute that hold the value of the InvLot's useby.
    WoNum Non-persistent attribute used to maintain the identifier of the parent work order associated with this receipt transaction. This and the TaskId attribute determine the RefWO attribute. If the TaskId is null, then RefWO will be equal to this attribute.
    ExternalRefId, OwnerSysId, SourceSysId,SenderSysId Columns used by the MAXIMO E-commerce Adaptor (MEA).
    See Also:
    MatRecTrans, MatUseTrans, Inventory
    • Field Detail

      • useInitialCurBal

        protected boolean useInitialCurBal
        set to true if the current balance (InvBalances.CurBal) for the 'From' storeroom location is inadequate to meet the quantity requested for transfer, AND negative balances are disallowed via Inventory setup. This value is should be set to 'true' only after call to InventoryServiceRemote.canGoNegative() results in an MXException. This is for the TransferCurItem functionality.
      • requestFulfilled

        protected boolean requestFulfilled
      • binNumSet

        public boolean binNumSet
        Flag to indicate if the binnum is set from the binnum field validation. The tolot is set according to the value in this flag.
      • needToExecuteAppValidate

        public boolean needToExecuteAppValidate
        08-15967: the MatRecTrans recrods created for each Rotating Asset does not need to execute appValidate all the time, especially when there are large number of quantitys being received
      • originalCostDate

        public java.util.Date originalCostDate
        IV85176: save the original cost date of the invlifofifo records that may be deleted due to complete transfer-out.
    • Constructor Detail

      • MatRecTrans

        public MatRecTrans(MboSet ms)
                    throws MXException,
                           java.rmi.RemoteException
        Construct the MatRecTrans object
        Parameters:
        ms - a MboSet
        Throws:
        MXException
        java.rmi.RemoteException
    • Method Detail

      • init

        public void init()
                  throws MXException
        Initialize the MatRecTrans object.
        Overrides:
        init in class Mbo
        Parameters:
        none -
        Throws:
        none
        MXException
      • getBinNumFlag

        public boolean getBinNumFlag()
        Utility method to return the value of binNumSet
      • setBinNumFlag

        public void setBinNumFlag(boolean binNumFlag)
        Sets the value of bollean flag binNumSet
      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        Sets default values and field flags.
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Parameters:
        none -
        Throws:
        MXApplicationException -
        GROUP KEY REASON
        inventory matRecTransNoAdd if the owner != null and the owner is not "PO", "POLINE", "ITEM", "INVENTORY", or "INVOICE"
        MXException
        java.rmi.RemoteException
      • canDelete

        public void canDelete()
                       throws MXException,
                              java.rmi.RemoteException
        Checks to see if this object can be deleted.
        throws MXApplicationException if it cannot be deleted
        Overrides:
        canDelete in class Mbo
        Parameters:
        none -
        Throws:
        MXApplicationException -
        GROUP KEY REASON
        inventory matrectrans_cannotdelete if it cannot be deleted
        MXException
        java.rmi.RemoteException
      • isTransfer

        public boolean isTransfer()
                           throws MXException,
                                  java.rmi.RemoteException
        Returns true if the MAXVALUE of the issuetype is 'TRANSFER' else returns false.
        Specified by:
        isTransfer in interface MatRecTransRemote
        Parameters:
        none -
        Returns:
        boolean true if the issue type is 'TRANSFER'
        Throws:
        none
        MXException
        java.rmi.RemoteException
      • isPicksTransfer

        public boolean isPicksTransfer()
                                throws MXException,
                                       java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • isPickRestock

        public boolean isPickRestock()
                              throws MXException,
                                     java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • isShipReceipt

        public boolean isShipReceipt()
                              throws MXException,
                                     java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • isKitMake

        protected boolean isKitMake()
                             throws MXException,
                                    java.rmi.RemoteException
        returns true if the MAXVALUE of the issuetype is 'KITMAKE'
        Throws:
        MXException
        java.rmi.RemoteException
      • isKitBreak

        protected boolean isKitBreak()
                              throws MXException,
                                     java.rmi.RemoteException
        returns true if the MAXVALUE of the issuetype is 'KITBREAK'.
        Throws:
        MXException
        java.rmi.RemoteException
      • isTransferNoPO

        public boolean isTransferNoPO()
                               throws MXException,
                                      java.rmi.RemoteException
        returns true if the MAXVALUE of the issuetype is 'TRANSFER' and po is not entered. Return false otherwise. This can only happen in inventory transfer.
        Returns:
        return true if the issue type is 'TRANSFER' and no po is entered
        Throws:
        MXException
        java.rmi.RemoteException
      • isReceipt

        public boolean isReceipt()
                          throws MXException,
                                 java.rmi.RemoteException
        returns true if the MAXVALUE of the issuetype is 'RECEIPT' else returns false
        Returns:
        returns true if issue type is 'RECEIPT'
        Throws:
        MXException
        java.rmi.RemoteException
      • isInvoice

        public boolean isInvoice()
                          throws MXException,
                                 java.rmi.RemoteException
        returns true if the MAXVALUE of the issuetype is 'INVOICE' else returns false
        Throws:
        MXException
        java.rmi.RemoteException
      • isMisclReceipt

        public boolean isMisclReceipt()
                               throws MXException,
                                      java.rmi.RemoteException
        returns true if the MAXVALUE of the issuetype is 'MISCLRECEIPT' else returns false
        Throws:
        MXException
        java.rmi.RemoteException
      • isVoidReceipt

        public boolean isVoidReceipt()
                              throws MXException,
                                     java.rmi.RemoteException
        returns true if the MAXVALUE of the issuetype is 'VOIDRECEIPT' else returns false
        Specified by:
        isVoidReceipt in interface MatRecTransRemote
        Returns:
        returns true if issue type is 'VOIDRECEIPT'
        Throws:
        MXException
        java.rmi.RemoteException
      • isHolding

        public boolean isHolding()
                          throws MXException,
                                 java.rmi.RemoteException
        returns true if the tostoreloc is a location of type HOLDING
        Specified by:
        isHolding in interface MatRecTransRemote
        Throws:
        MXException
        java.rmi.RemoteException
      • isShipReject

        public boolean isShipReject()
                             throws MXException,
                                    java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • getReceiptStatus

        public java.lang.String getReceiptStatus()
                                          throws MXException,
                                                 java.rmi.RemoteException
        returns the internal value "MAXVALUE" of valuelist "RECEIPTSTATUS" A MatRecTrans that requires inspection will have a status of "WINSP". Only those MatRecTrans of "WINSP" status are elligible for approving receipts. A MatRecTrans that has a "status" of null value indicates the receipt is an approved one implicitly.
        Throws:
        MXException
        java.rmi.RemoteException
      • approve

        public void approve(java.util.Date statusDate)
                     throws MXException,
                            java.rmi.RemoteException
        This method performs the approval of the receipt. Updates include: 1. MatRecTrans.status to 'APPR' 2. MatRecTrans.statuschangeby to the login user name 3. MatRecTrans.statusdate to the passed date. If the passed is null, use system date. 4. Update poline, inventory or direct issues. This method can only be called on the top level matrectrans.
        Specified by:
        approve in interface ReceiptMboRemote
        Specified by:
        approve in interface MatRecTransRemote
        Overrides:
        approve in class ReceiptMbo
        Parameters:
        statusDate - status date, null for system date
        Throws:
        none
        MXException
        java.rmi.RemoteException
        See Also:
        ReceiptMbo.approve(Date)
      • updateInventory

        public void updateInventory(InventoryRemote invmbo,
                                    PORemote poMbo,
                                    InvCost invcost)
                             throws MXException,
                                    java.rmi.RemoteException
        This method performs the update to the InvCost record passed in. It updates its average cost & last cost. If there is an entry in LOCLEADTIME for the location, it also updates the deliverytime. The INVCOST record may not be updated if the MAXCOLLAB integration rule indicates No.
        Parameters:
        invmbo - an InventoryRemote
        poMbo - a PORemote
        invBalance - the inventory balance being updated
        invCost - the inventory cost being updated
        Throws:
        none
        MXException
        java.rmi.RemoteException
      • addRotatingAsset

        public void addRotatingAsset(java.lang.String assetnum)
                              throws MXException,
                                     java.rmi.RemoteException
        This method adds the passed assetnum to the instance variable rotAssetsVector; For receiving a rotating item for multiple quantities, multiple pieces of asset will need to be created; this will store the user entered assetnums to the vector.
        Specified by:
        addRotatingAsset in interface MatRecTransRemote
        Parameters:
        assetnum - the new assetnum number
        Throws:
        none
        MXException
        java.rmi.RemoteException
        See Also:
        MatRecTrans.addRotatingAsset(java.lang.String)
      • setRotAssetNum

        protected void setRotAssetNum(java.lang.String assetnum)
                               throws MXException,
                                      java.rmi.RemoteException
        Protected method sets rotAssetNum instance variable.
        Note: Before we add db column ROTASSETNUM, we keep the last assetnum generated by rotatingAsset in this variable.
        Parameters:
        assetnum - asset number
        Throws:
        none
        MXException
        java.rmi.RemoteException
      • getRotAssetNum

        protected java.lang.String getRotAssetNum()
                                           throws MXException,
                                                  java.rmi.RemoteException
        Protected method returns the instance variable rotAssetNum.
        Parameters:
        none -
        Returns:
        the rotating asset number
        Throws:
        none
        MXException
        java.rmi.RemoteException
      • getAvailableQty

        protected double getAvailableQty(Inventory inv,
                                         InvBalancesRemote invBal)
                                  throws MXException,
                                         java.rmi.RemoteException
        gets the available quantity. This method is for transfers and internal PO receipts only, that is, the source and destination of the receipt must both be storerooms.
        Throws:
        MXException
        java.rmi.RemoteException
      • getSumQtyInTheSet

        protected double getSumQtyInTheSet()
                                    throws MXException,
                                           java.rmi.RemoteException
        07-11273:get the accumulating quantity
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • appValidate

        public void appValidate()
                         throws MXException,
                                java.rmi.RemoteException
        Application validation routine called before the MatRecTrans object is saved.
        Method validates the following:
        1) - if this is a miscellaneous receipt, at least one among "wonum","assetnum","location","glacct" should be present
        2) - if this is an internal transfer, fromstoreloc & tostoreloc can not be null.
        3) - Based on a maxvar value check if the GL debit and credit accounts are required for this transaction.
        Overrides:
        appValidate in class ReceiptMbo
        Parameters:
        none -
        Throws:
        MXApplicationException -
        GROUP KEY REASON
        inventory miscReceiptIssue if this is a misc. receipt and asset number, location, and wonum are all null.
        inventory miscReceiptStoreLoc if this is a misc. receipt and asset number, location, and wonum are not all null, but the 'TO' storage location is null.
        inventory transferNoStoreRoom if this is a transfer and either the 'TO' or the 'FROM' staorage location is null.
        financial GLRequiredForTrans The debit and credit GL accounts require a value.
        MXException
        java.rmi.RemoteException
      • save

        public void save()
                  throws MXException,
                         java.rmi.RemoteException
        Saves the MatRecTrans object and all other linked objects
        Might update inventory balance/cost, MR, or work order Calls super.save() after work on the other objects
        Overrides:
        save in class Mbo
        Parameters:
        none -
        Throws:
        MXApplicationException -
        GROUP KEY REASON
        inventory mxcollabRC if the poMbo is not null and the invoice number is null and the the adding of receipt is not allowed
        MXException
        java.rmi.RemoteException
      • createInvoiceOnConsumption

        public void createInvoiceOnConsumption()
                                        throws MXException,
                                               java.rmi.RemoteException
        This method will call the invoice service method to generate the invoice on SHIPTRANFER and TRANFER transactions for consinment items.
        Throws:
        MXException
        java.rmi.RemoteException
      • updateInvReserveActualQty

        public void updateInvReserveActualQty(MboRemote invUseLine)
                                       throws MXException,
                                              java.rmi.RemoteException
        This method updates the invreserve actual quantity for SHIPRETURN transaction.
        Parameters:
        invUseLine -
        Throws:
        MXException
        java.rmi.RemoteException
      • getshipTransferForThisShipReceipt

        public MboRemote getshipTransferForThisShipReceipt()
                                                    throws MXException,
                                                           java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • skipCopyField

        protected boolean skipCopyField(MboValueInfo mvi)
                                 throws java.rmi.RemoteException,
                                        MXException
        Over-rides the method in the super class. If the field need not be copied during copy() return true else return false. The following fields are not copied from the source Mbo to the target Mbo.
        • MATRECTRANSID
        • ACTUALDATE
        • ENTERBY
        • ORGID
        • SITEID
        Overrides:
        skipCopyField in class Mbo
        Throws:
        java.rmi.RemoteException
        MXException
      • rejectsForRotatingShipments

        public void rejectsForRotatingShipments()
                                         throws MXException,
                                                java.rmi.RemoteException
        Method to update the status of the SHIPRECEIPT (this) to COMP, and to create the SHIPRETURN (reject) for this rejection
        Specified by:
        rejectsForRotatingShipments in interface MatRecTransRemote
        Throws:
        MXException
        java.rmi.RemoteException
      • transferForRotatingShipments

        public void transferForRotatingShipments()
                                          throws MXException,
                                                 java.rmi.RemoteException
        Method to update the status of the SHIPRECEIPT (this) to COMP, and to create the TRANSFER (reject) for this rejection
        Specified by:
        transferForRotatingShipments in interface MatRecTransRemote
        Throws:
        MXException
        java.rmi.RemoteException
      • setLottedEditibilityFlags

        protected void setLottedEditibilityFlags(boolean flag)
                                          throws MXException,
                                                 java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • setEditibilityFlags

        protected void setEditibilityFlags(boolean flag)
                                    throws MXException,
                                           java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • setInspectionRequiredEditibilityFlags

        public void setInspectionRequiredEditibilityFlags(boolean flag)
                                                   throws MXException,
                                                          java.rmi.RemoteException
        Sets the editibility on the MatRecTrans Mbo if the parent POLine Mbo is inspection required. The reject code and reject qty fields on the MatRecTrans Mbo must be editable still the inspection is completed on this MatRecTrans. After the inspection is completed, all the fields including rejectcode and rejectqty become readonly.
        Throws:
        MXException
        java.rmi.RemoteException
      • canApprove

        public void canApprove()
                        throws MXException,
                               java.rmi.RemoteException
        Determines if the receipt can be approved or not. If the current status of the receipt is approved, an exception is thrown to indicate that an already approved receipt cannot be approved again. A receipt must have a status of waiting for approval for it to be approved.
        Throws:
        MXApplicationException("inventory", - "cannotApprove") is thrown if the status of the receipt is already approved.
        MXException
        java.rmi.RemoteException
      • setToInvBalUpdated

        public void setToInvBalUpdated()
                                throws MXException,
                                       java.rmi.RemoteException
        Set the private boolean toInvBalUpdated to true
        Throws:
        MXException
        java.rmi.RemoteException
      • setFromInvBalUpdated

        public void setFromInvBalUpdated()
                                  throws MXException,
                                         java.rmi.RemoteException
        Set the private boolean fromInvBalUpdated to true
        Throws:
        MXException
        java.rmi.RemoteException
      • getCourierLaborTransientMatRec

        public MboRemote getCourierLaborTransientMatRec()
                                                 throws MXException,
                                                        java.rmi.RemoteException
        returns the courier/labor MatRecTrans which contains the qty held before the final destination this current MatRecTrans is trying to transfer from the courier/labor to the destination storeroom
        Throws:
        MXException
        java.rmi.RemoteException
      • getSharedInventory

        public MboRemote getSharedInventory(java.lang.String storeLoc,
                                            java.lang.String siteid)
                                     throws MXException,
                                            java.rmi.RemoteException
        get related inventory: use getSharedMboSet to update the correct inventory records when multiple matrectrans update the same inventory record
        Specified by:
        getSharedInventory in interface MatRecTransRemote
        Parameters:
        storeLoc - the storeroom location for the item In the cases for internal po's and transfers, MatRecTrans handles fromstoreroom and tostoreroom
        siteid - Site where the location exists
        Returns:
        MboRemote (an InventoryRemote)
        Throws:
        none
        MXException
        java.rmi.RemoteException
      • calculateUnInvoicedQtyCost

        public double[] calculateUnInvoicedQtyCost()
                                            throws MXException,
                                                   java.rmi.RemoteException
        This method is use by the Invoice's Copy PO Line page to calculate the uninvoiced quantity and cost. The uninvoiced quantity is calculated by subtracting the sum of all the existence of this matrectrans in invoicematch from the receipts's quantity.
        Returns:
        double[] Returns an array which has the calculted quantity in order unit as the first element and the calculated cost in PO's currency as the second element.
        Throws:
        MXException
        java.rmi.RemoteException
      • updateKitComponentNewInventoryBinnum

        protected void updateKitComponentNewInventoryBinnum(java.lang.String binnum)
                                                     throws MXException,
                                                            java.rmi.RemoteException
        updates default Inventory.Binnum for kit components' with binnum provided for the kit's MatRecTrans.ToStoreLoc
        Parameters:
        binnum - bin for kit's MatRecTrans.ToStoreLoc attribute
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        FldMatRecTransToBin.action()
      • copyMatRecTransToMatRecTrans

        protected void copyMatRecTransToMatRecTrans(MatRecTransRemote matrec,
                                                    java.lang.String issueType)
                                             throws MXException,
                                                    java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • getInvCostRecord

        public MboRemote getInvCostRecord(MboRemote toInventory)
                                   throws MXException,
                                          java.rmi.RemoteException
        Gets a reference of invcost stored in the mboset INVCOST, compared current item,location,itemsetid, and conditioncode and siteid
        Specified by:
        getInvCostRecord in interface MatRecTransRemote
        Parameters:
        toInventory - InventoryRemote
        matMbo - MatRecTransRemote
        Returns:
        InvCostRemote
        Throws:
        none
        MXException
        java.rmi.RemoteException
      • updateInventoryCostAndBalances

        public void updateInventoryCostAndBalances()
                                            throws MXException,
                                                   java.rmi.RemoteException
        This routine does inventory updates in costs and balances
        Throws:
        MXException
        java.rmi.RemoteException
      • isSwitchoffWOUpdate

        public boolean isSwitchoffWOUpdate()
      • setInvReserveUpdatedFlag

        public void setInvReserveUpdatedFlag(boolean updated)
        Set the sharedInvBalancesHasBeenUpdated flag.
        Parameters:
        updated - true, if already updated.
      • setCheckNegBalance

        public void setCheckNegBalance(boolean updated)
                                throws MXException,
                                       java.rmi.RemoteException
        Set the private boolean CheckNegBalance to true
        Throws:
        MXException
        java.rmi.RemoteException
      • getPOLineUpdated

        public boolean getPOLineUpdated()
                                 throws MXException,
                                        java.rmi.RemoteException
        09-22514 return the private boolean poLineUpdated
        Throws:
        MXException
        java.rmi.RemoteException
      • setPOLineUpdated

        public void setPOLineUpdated()
                              throws MXException,
                                     java.rmi.RemoteException
        09-22514 Set the private boolean poLineUpdated to true
        Throws:
        MXException
        java.rmi.RemoteException
      • isStageTransfer

        public boolean isStageTransfer()
                                throws MXException,
                                       java.rmi.RemoteException
        This method checks if the issue type is Staged Transfer.
        Throws:
        MXException
        java.rmi.RemoteException
      • isShipTransfer

        public boolean isShipTransfer()
                               throws MXException,
                                      java.rmi.RemoteException
        This method checks if the issue type is Ship Transfer.
        Throws:
        MXException
        java.rmi.RemoteException
      • isShipCancel

        public boolean isShipCancel()
                             throws MXException,
                                    java.rmi.RemoteException
        This method checks if the issue type is Ship Cancel.
        Throws:
        MXException
        java.rmi.RemoteException
      • isShipReturn

        public boolean isShipReturn()
                             throws MXException,
                                    java.rmi.RemoteException
        This method checks if the issue type is Ship Return.
        Throws:
        MXException
        java.rmi.RemoteException
      • isVoidShipReceipt

        public boolean isVoidShipReceipt()
                                  throws MXException,
                                         java.rmi.RemoteException
        This method checks if the issue type is Ship Return.
        Throws:
        MXException
        java.rmi.RemoteException
      • createMatRecTransRecordforLifoFifo

        public void createMatRecTransRecordforLifoFifo(MboRemote inv)
                                                throws MXException,
                                                       java.rmi.RemoteException
        This method creates the matusetrans based on invlifofifocost records. It sets the unitcost and quantity based on invlifofifocost record.
        Parameters:
        inv -
        Throws:
        MXException
        java.rmi.RemoteException
      • setShipmentMap

        public void setShipmentMap()
                            throws MXException,
                                   java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • isDirectIssueConversion

        public boolean isDirectIssueConversion()
                                        throws MXException,
                                               java.rmi.RemoteException
        Check if Received Unit is modified and different than previous unit and issue type is RECEIPT.
        Returns:
        true if above condition met.
        Throws:
        MXException
        java.rmi.RemoteException
      • isDirectIssueConversion

        public boolean isDirectIssueConversion(boolean includeStoreroom)
                                        throws MXException,
                                               java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • getDirectIssueConversion

        public double getDirectIssueConversion()
                                        throws MXException,
                                               java.rmi.RemoteException
        Get direct issue conversion between Received Unit and POLine Order Unit.
        Returns:
        conversion
        Throws:
        MXException
        java.rmi.RemoteException
      • createStdRecAdjOnRotAssetTransferIn

        public void createStdRecAdjOnRotAssetTransferIn()
                                                 throws MXException,
                                                        java.rmi.RemoteException
        IV47599: if the cost type for this inventory is Standard cost, need to adjust standard cost if necessary this is only for rotating asset being returned to a storeroom from an operating location
        Throws:
        MXException
        java.rmi.RemoteException
      • isSameStoreTransfer

        public boolean isSameStoreTransfer()
                                    throws MXException,
                                           java.rmi.RemoteException
        IV85176: Returns true if this is a bin-to-bin transfers in the same storeroom.
        Parameters:
        none -
        Returns:
        boolean true if the issue type is 'TRANSFER'
        Throws:
        none
        MXException
        java.rmi.RemoteException
      • setOriginalCostDate

        public void setOriginalCostDate(java.util.Date costDate)
                                 throws MXException,
                                        java.rmi.RemoteException
        IV85176: in store-to-store transfers, the costdate of new invlifofifocost record is the system date. This is not correct. Need to retain the costdate of the original invlifofifo records of the from storeroom
        Throws:
        MXException
        java.rmi.RemoteException
      • getOriginalCostDate

        public java.util.Date getOriginalCostDate()
                                           throws MXException,
                                                  java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • setWorkOrderUpdatedFlag

        public void setWorkOrderUpdatedFlag(boolean updated)
        IV81062
        Parameters:
        updated - true, if already updated.
      • getWorkOrderUpdatedFlag

        public boolean getWorkOrderUpdatedFlag()
        IV81062
        Parameters:
        updated - true, if already updated.
      • isRejectedReturn

        public boolean isRejectedReturn()
                                 throws MXException,
                                        java.rmi.RemoteException
        IV90667: indicates this MaTrecTrans is a RETURN in Change Inspection Status with rejected quantity.
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • createShipReceiptRecordsforLifoFifo

        public void createShipReceiptRecordsforLifoFifo()
                                                 throws MXException,
                                                        java.rmi.RemoteException
        IV92645: In Shipment Receiving, if ShipTransfer contains multiple records for LIFO/FIFO, needs to create additional shipreceipt records to match SHIPTRANSFER. Currently, there is only one shiprecipt for the complete quantity but the cost is only referencing the first LIFO/FIFO shiptransfer record
        Throws:
        MXException
        java.rmi.RemoteException