PRCUFC2 ;WISC/SJG-CONVERSION ROUTINE TO PROCESS OBLIGATIONS ;4/27/94 11:30
V ;;5.1;IFCAP;;Oct 20, 2000
;Per VHA Directive 10-93-142, this routine should not be modified.
;
QUIT
; No top level entry
; Special Fund Control Point = 2
SUPPO ; Entry point for Original Entry Supply Fund Conversion Documents
S PRCFA("MOD")="E^0^Original Entry"
S PRCFA("IDES")="Supply Fund Conversion Original Entry"
D DET^PRCUFCU1,RECD^PRCUFCU1,CALC^PRCUFCU1,SUPP
Q
SUPPM ; Entry point for Modification Entry Supply Fund Conversion Documents
S PRCFA("MOD")="M^1^Modification Entry"
S PRCFA("IDES")="Supply Fund Conversion Modification Entry"
D DET^PRCUFCU1,RECD^PRCUFCU1,CALC^PRCUFCU1
I PRCFCHG("BOC","TOT")=0 S FATAL=1 Q
F PRCFA="VEND","FOB","DEL","DELSCH","PPT" S PRCFA(PRCFA)=1
D SUPP
Q
SUPP ; Processing common for all Supply Fund documents
F PRCFA="VEND","FOB","DEL","DELSCH","PPT" S PRCFA(PRCFA)=1
S PO(0)=ND(0),PO=LOOP,PRCFA("PODA")=+LOOP
S PRCFA("BBFY")=$$BBFY^PRCFFU5(PO)
S IDFLAG="I"
S PARAM1="^"_PRC("SITE")_"^"_PRC("CP")_"^"_PRC("FY")_"^"_PRCFA("BBFY")
SUPP1 D DOCREQ^PRC0C(PARAM1,"SPE","PRCFMO")
S PRCFMO("G/N")=$P(PRCFMO,U,12)
S PRCFA("REF")=$P(PO(0),U),PRCFA("SYS")="FMS"
S PRCFA("SFC")=$P(PO(0),U,19),PRCFA("MP")=$P(PO(0),U,2)
S PRCFA("TT")=$S(PRCFA("MP")=2:"SO",PRCFA("MP")=1:"MO",PRCFA("MP")=8:"MO",1:"MO")
SUPP2 D NOW^%DTC S PRCFA("OBLDATE")=X
S MOD=$P(PRCFA("MOD"),U,2) D STACK^PRCUFCE(MOD)
K ^TMP($J,"PRCMO")
N FMSINT S FMSINT=+PO,FMSMOD=$P(PRCFA("MOD"),U,1)
D NEW^PRCUFCA(FMSINT,PRCFA("TT"),FMSMOD)
N LOOP S LOOP=0 F S LOOP=$O(^TMP($J,"PRCMO",GECSFMS("DA"),LOOP)) Q:'LOOP D SETCS^GECSSTAA(GECSFMS("DA"),^(LOOP))
K ^TMP($J,"PRCMO")
SUPP3 D SETSTAT^GECSSTAA(GECSFMS("DA"),"Q")
;I '$D(POESIG) I $D(PRCFA("PODA")),+PRCFA("PODA")>0 S POESIG=1
D SETPARAM^GECSSDCT(GECSFMS("DA"),+PO)
N FMSDOCT S FMSDOCT=$P(PRCFA("REF"),"-",2) D EN7^PRCFFU41(PRCFA("TT"),FMSMOD,PRCFA("OBLDATE"),FMSDOCT)
QUIT
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HPRCUFC2 1967 printed Dec 13, 2024@02:19:39 Page 2
PRCUFC2 ;WISC/SJG-CONVERSION ROUTINE TO PROCESS OBLIGATIONS ;4/27/94 11:30
V ;;5.1;IFCAP;;Oct 20, 2000
+1 ;Per VHA Directive 10-93-142, this routine should not be modified.
+2 ;
+3 QUIT
+4 ; No top level entry
+5 ; Special Fund Control Point = 2
SUPPO ; Entry point for Original Entry Supply Fund Conversion Documents
+1 SET PRCFA("MOD")="E^0^Original Entry"
+2 SET PRCFA("IDES")="Supply Fund Conversion Original Entry"
+3 DO DET^PRCUFCU1
DO RECD^PRCUFCU1
DO CALC^PRCUFCU1
DO SUPP
+4 QUIT
SUPPM ; Entry point for Modification Entry Supply Fund Conversion Documents
+1 SET PRCFA("MOD")="M^1^Modification Entry"
+2 SET PRCFA("IDES")="Supply Fund Conversion Modification Entry"
+3 DO DET^PRCUFCU1
DO RECD^PRCUFCU1
DO CALC^PRCUFCU1
+4 IF PRCFCHG("BOC","TOT")=0
SET FATAL=1
QUIT
+5 FOR PRCFA="VEND","FOB","DEL","DELSCH","PPT"
SET PRCFA(PRCFA)=1
+6 DO SUPP
+7 QUIT
SUPP ; Processing common for all Supply Fund documents
+1 FOR PRCFA="VEND","FOB","DEL","DELSCH","PPT"
SET PRCFA(PRCFA)=1
+2 SET PO(0)=ND(0)
SET PO=LOOP
SET PRCFA("PODA")=+LOOP
+3 SET PRCFA("BBFY")=$$BBFY^PRCFFU5(PO)
+4 SET IDFLAG="I"
+5 SET PARAM1="^"_PRC("SITE")_"^"_PRC("CP")_"^"_PRC("FY")_"^"_PRCFA("BBFY")
SUPP1 DO DOCREQ^PRC0C(PARAM1,"SPE","PRCFMO")
+1 SET PRCFMO("G/N")=$PIECE(PRCFMO,U,12)
+2 SET PRCFA("REF")=$PIECE(PO(0),U)
SET PRCFA("SYS")="FMS"
+3 SET PRCFA("SFC")=$PIECE(PO(0),U,19)
SET PRCFA("MP")=$PIECE(PO(0),U,2)
+4 SET PRCFA("TT")=$SELECT(PRCFA("MP")=2:"SO",PRCFA("MP")=1:"MO",PRCFA("MP")=8:"MO",1:"MO")
SUPP2 DO NOW^%DTC
SET PRCFA("OBLDATE")=X
+1 SET MOD=$PIECE(PRCFA("MOD"),U,2)
DO STACK^PRCUFCE(MOD)
+2 KILL ^TMP($JOB,"PRCMO")
+3 NEW FMSINT
SET FMSINT=+PO
SET FMSMOD=$PIECE(PRCFA("MOD"),U,1)
+4 DO NEW^PRCUFCA(FMSINT,PRCFA("TT"),FMSMOD)
+5 NEW LOOP
SET LOOP=0
FOR
SET LOOP=$ORDER(^TMP($JOB,"PRCMO",GECSFMS("DA"),LOOP))
if 'LOOP
QUIT
DO SETCS^GECSSTAA(GECSFMS("DA"),^(LOOP))
+6 KILL ^TMP($JOB,"PRCMO")
SUPP3 DO SETSTAT^GECSSTAA(GECSFMS("DA"),"Q")
+1 ;I '$D(POESIG) I $D(PRCFA("PODA")),+PRCFA("PODA")>0 S POESIG=1
+2 DO SETPARAM^GECSSDCT(GECSFMS("DA"),+PO)
+3 NEW FMSDOCT
SET FMSDOCT=$PIECE(PRCFA("REF"),"-",2)
DO EN7^PRCFFU41(PRCFA("TT"),FMSMOD,PRCFA("OBLDATE"),FMSDOCT)
+4 QUIT