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

PRCX1P.m

Go to the documentation of this file.
  1. PRCX1P ;WISC/PLT-IFCAP ROTUINE TO FIX COPY REQUESTS & P.O ; 10/17/95 3:26 PM
  1. V ;;5.1;IFCAP;;Oct 20, 2000
  1. ;Per VHA Directive 10-93-142, this routine should not be modified.
  1. ;QUIT ; invalid entry
  1. ;
  1. EN ;start FIXing
  1. N PRCIVER,PRCRI,PRCFIXV,PRCOPT,PRC5INST,PRCQ21,PRCDUZ
  1. Q1 D EN^DDIOL(" "),EN^DDIOL("The option will fix the copied requests with wrong BBFY, APPROPRIATION")
  1. D EN^DDIOL(" and FCP/PRC(ACC).")
  1. ;D EN^DDIOL("The option 2 will rebuild the rejected MO/SO FMS-documents with wrong")
  1. ;D EN^DDIOL(" BBFY and APPROPRIATION in purchase orders.")
  1. ;D SC^PRC0A(.X,.Y,"Select IFCAP V5 FIX option","OM^1:(2237,1358) Requests(1996-) BBFY, APPROPRIATION and FCP/PRJ(ACC) EDIT;2:Purchase Orders(1996-) BBFY and APPROPRIATION rebuild","")
  1. ;G:X["^"!(X="") EXIT
  1. S PRCOPT=1
  1. ;
  1. Q2 ;select auto/single
  1. G:PRCOPT=2 Q3
  1. D SC^PRC0A(.X,.Y,"Select "_$P("(2237,1358) REQUESTS","^",PRCOPT)_" Edit Option","OM^1:AUTO EDIT TRANSACTIONS in file 410;2:MANUAL SELECT TRANSACTION in file 410","")
  1. G:X["^"!(X="") EXIT
  1. S $P(PRCOPT,"^",2)=X
  1. Q3 D YN^PRC0A(.X,.Y,"Ready to run the selected option ","O","NO")
  1. G:X["^"!(X="")!(Y<1) Q1
  1. I +PRCOPT<2 D D EN^PRCX1P1:$P(PRCOPT,"^",2)=1,EN1^PRCX1P1:$P(PRCOPT,"^",2)=2 G Q1
  1. . S PRCDD=410
  1. . QUIT
  1. D:PRCOPT=2 GECS^PRCX1P1
  1. EXIT ;
  1. QUIT
  1. ;