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

PRCHE1A.m

Go to the documentation of this file.
  1. PRCHE1A ;WISC/DJM-IFCAP EDIT VENDOR FILE ;4/17/96 3:18 PM
  1. V ;;5.1;IFCAP;;Oct 20, 2000
  1. ;Per VHA Directive 10-93-142, this routine should not be modified.
  1. ; NEW ENTER/EDIT VENDOR FILE CALLED FROM FISCAL OPTION
  1. VEDIT(Y,SITE) ;
  1. N DA,PRCHV3,FLAG,FISCAL,DIE,DR
  1. S DA=+Y D Q:FLAG=0
  1. .S PRCHV3=$G(^PRC(440,DA,3)),FLAG=0
  1. .I $P(PRCHV3,U,4)="" S FLAG=1 Q ;NO FMS VENDOR CODE - DO 'ADD' VENDOR REQUEST
  1. .I $P(PRCHV3,U,4)]"" S FLAG=2 Q ;FMS VENDOR CODE - DO 'CHANGE' VENDOR REQUEST
  1. S FISCAL=$G(^PRC(411,SITE,9))
  1. I $P(FISCAL,U,3)="Y",'$D(^XUSEC("PRCFA VENDOR EDIT",DUZ)) D Q
  1. . Q:$$NEW^PRCOVTST(DA,SITE,FLAG)
  1. . S DIE="^PRC(440.3,"
  1. . S DR="47///^S X=FLAG;48///^S X=DA;49///^S X=SITE"
  1. . D ^DIE
  1. . Q
  1. I FLAG=1 D NEW^PRCOVRQ(DA,SITE) QUIT
  1. I FLAG=2 D UPDATE^PRCOVRQ1(DA,SITE) QUIT
  1. QUIT
  1. ;