Print Page as PDF
INVENTORY: GET INVENTORY TRANSACTION # & CREATE TRANS ICR (6585)

INVENTORY: GET INVENTORY TRANSACTION # & CREATE TRANS    ICR (6585)

Name Value
NUMBER 6585
IA # 6585
DATE CREATED 2016/10/25
CUSTODIAL PACKAGE IFCAP
USAGE Private
TYPE Routine
DBIC APPROVAL STATUS APPROVED
ROUTINE PRCPUTRX
NAME INVENTORY: GET INVENTORY TRANSACTION # & CREATE TRANS
GENERAL DESCRIPTION
This integration agreement allows these calls:
ADDTRAN^PRCPUTRX to add a transaction entry to the Transaction Register
^PRCP(445.2) to record a received Purchase Order, Distribution Order, or
Issue Book

$$ORDERNO^PRCPUTRX() to receive a new transaction entry #
STATUS Active
KEYWORDS ABOVE PAR
DURATION Till Otherwise Agreed
ID PRCPUTRX
COMPONENT/ENTRY POINT
COMPONENT/ENTRY POINT COMPONENT DESCRIPTION VARIABLES
ADDTRAN
ADDTRAN^PRCPUTRX is called to add a transaction entry
to the Transaction Register (#445.2) when an inventory point (Supply Fund
Warehouse or Primary Inventory point) dispenses items to its distribution
inventory point (Primary Inventory point or Secondary Inventory Point,
respectively) a dispensing 'R' transaction is created for the source inventory
point and a receiving 'RC' transaction is created for the receiving inventory
point.

Above PAR calls ADDTRAN^PRCPUTRX to create an "RC" transaction when a PO item
is received into an inventory point.
VARIABLES TYPE VARIABLES DESCRIPTION
INVPT Input
IEN to the Distribution Point
ITEMDA Input
Item Master Number
TRANTYPE Input
Transaction Type
ORDERNO Input
Order Number
PRCPDATA an array Input
PRCPDATA("DATE")       Date of Transaction
PRCPDATA("QTY")        Quantity of Transaction PRCPDATA("INVVAL")
Inventory Value PRCPDATA("SELVAL")     Sales Value
PRCPDATA("AVGUNIT")    Average Unit Cost PRCPDATA("SELUNIT")    Selling Unit
Cost PRCPDATA("PKG")        Unit per Issue          PRCPDATA("REF")
Reference Number PRCPDATA("2237PO")     2237 or PO Number PRCPDATA("ISSUE")
Issue or NonIssue PRCPDATA("OTHERPT")    Other Distribution Point
PRCPDATA("REASON")     Reason                   PRCPDATA("REASONCODE") Reason
code for other
adjustment                 PRCPDATA("RECIPIENT")  Who
got the supply PRCPDATA("USER")       Person who took the supply
Y Output
IEN of Inventory Transaction file (#445.2) entry
added or '0' if creation failed
$$ORDERNO
$$ORDERNO^PRCPUTRX() is called to receive a new
transaction entry #.
VARIABLES TYPE VARIABLES DESCRIPTION
INVPT Input
IEN to Distribution Point
Return Output
Returns the next order # for the Distribution Point
SUBSCRIBING PACKAGE ABOVE PAR
DATE ACTIVATED 2019/06/07