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
|
|