Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: PRCFACS3

PRCFACS3.m

Go to the documentation of this file.
  1. PRCFACS3 ;WISC/SJG-BULLETIN FOR RETURNED PRUCHASE ORDER AMENDMENT ;7/24/00 23:20
  1. V ;;5.1;IFCAP;;Oct 20, 2000
  1. ;Per VHA Directive 10-93-142, this routine should not be modified.
  1. ;
  1. BULLET(POIEN,AMIEN,AUTODATE) ;
  1. K ^UTILITY($J),MSG S DIWL=0,DIWR=79,DIWF=""
  1. S MSG(1,0)="The following Purchase Order Amendment was not obligated"
  1. S MSG(2,0)="and has been 'RETURNED' by Fiscal Service !!"
  1. S MSG(3,0)=" ",MSG(4,0)="Purchase Order information is as follows:"
  1. S MSG(5,0)=" ",MSG(6,0)="Purchase Order Number: "_$P(^PRC(443.6,POIEN,0),"^",1)
  1. S MSG(7,0)=" ",MSG(8,0)="Amendment Number: "_AMIEN
  1. I AUTODATE]"" D
  1. .S MSG(9,0)=" ",MSG(10,0)="Automatic Deletion Date: "_AUTODATE
  1. .Q
  1. S XMSUB="RETURNED PURCHASE ORDER AMENDMENT NOTIFICATION"
  1. D MSG,MSG1
  1. EXIT ;
  1. K DIWF,DIWL,DIWR,X,X1,XMDUZ,XMSUB,XMTEXT,XMY
  1. Q
  1. ;
  1. MSG ; Set Variables and Call XMD
  1. S XMDUZ=DUZ,X=$S($D(^PRC(443.6,POIEN,1)):^(1),1:"") I $P(X,"^",10)]"" S X1=$P(X,"^",10) I X1]"" S XMY(+X1)="",XMTEXT="MSG(" W ! D WAIT^PRCFYN,^XMD
  1. Q
  1. MSG1 ; Message Processing
  1. W !!,"...Purchase Order Amendment was returned, bulletin has been transmitted..."
  1. W !!,"...Supply has been notified...",!!
  1. Q