PRCESOE1 ;WISC/SJG-1358 OBLIGATION UTILITIES ;
V ;;5.1;IFCAP;**176**;Oct 20, 2000;Build 11
;Per VHA Directive 2004-038, this routine should not be modified
;
QUIT
; No top level entry
;
LOOKUP ; Lookup 1358 transaction which is pending fiscal action.
N DIC,FSO,TN,PRCLOCK
F D Q:$G(PRCLOCK) W !!,"***The Transaction Number you are attempting to access is being accessed by another user***",!! ;Only allow one user to access 410 record at a time, PRC*5.1*176
.S:'$D(TT) TT="O"
.S DIC=410,DIC(0)="AEMNZ",FSO=$O(^PRCD(442.3,"AC",10,0)),DIC("S")="S TN=^(0) I $P($P(TN,U),""-"",1,2)=PRCF(""SIFY""),TT[$P(TN,U,2),$P(TN,""^"",4)=1,$D(^(10)),$P(^(10),U,4)=FSO"
.D ^PRCSDIC
.I Y>0 L +^PRCS(410,+Y):$G(DILOCKTM,3) S PRCLOCK=$T
.I Y<1 S PRCLOCK=$T
QUIT
POST ; Post data in file 424
N X,Z,DAR,DIC,Y,DA,DIE,DR,TIME
S (X,Z)=PATNUM,%=1 D EN1^PRCSUT3 I +$P(X,"-",3)>1 W $C(7),!,"This is not a new 1358. Adjustments may only be entered through the",!,"adjustment option." H 3 S %=0 Q
S DIC=424,DIC(0)="LX",DLAYGO=424 D ^DIC K DLAYGO I Y<0 W !,"ERROR IN CREATING 424 RECORD" S %=0 Q
S DAR=+Y
D NOW^%DTC S TIME=%,DIE=DIC,DA=DAR,X=PODA,DR=".02////^S X=PODA;.03////^S X=""O"";.06////^S X=$P(PO(0),U,11);.07////^S X=TIME;.08////^S X=DUZ;1.1///^S X=""INITIAL OBLIGATION"";.15////^S X=OB"
D ^DIE S %=1
QUIT
; Message Processing called from PRCESOE
MSG ;
W !! K MSG S MSG="No further processing is being taken on this obligation."
D EN^DDIOL(MSG) K MSG
Q
MSG1 ;
W !! K MSG S MSG(1)="No further processing is being taken on this 1358. It has NOT been obligated."
S MSG(2)="The entry in the Purchase Order file is being deleted."
D EN^DDIOL(.MSG) K MSG
Q
MSG2(MSG) ;
S:'$D(ROUTINE) ROUTINE="PRCUESIG"
W !!,$$ERROR^PRCFFU13(ROUTINE,MSG)
D MSG
Q
MSG3 ;
S MSG(1)="No Obligation Number or Common Number Series has been selected."
S MSG(2)="No further action taken on this obligation."
W !! D EN^DDIOL(.MSG) H 3 K MSG
Q
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HPRCESOE1 1976 printed Nov 22, 2024@17:11:41 Page 2
PRCESOE1 ;WISC/SJG-1358 OBLIGATION UTILITIES ;
V ;;5.1;IFCAP;**176**;Oct 20, 2000;Build 11
+1 ;Per VHA Directive 2004-038, this routine should not be modified
+2 ;
+3 QUIT
+4 ; No top level entry
+5 ;
LOOKUP ; Lookup 1358 transaction which is pending fiscal action.
+1 NEW DIC,FSO,TN,PRCLOCK
+2 ;Only allow one user to access 410 record at a time, PRC*5.1*176
FOR
Begin DoDot:1
+3 if '$DATA(TT)
SET TT="O"
+4 SET DIC=410
SET DIC(0)="AEMNZ"
SET FSO=$ORDER(^PRCD(442.3,"AC",10,0))
SET DIC("S")="S TN=^(0) I $P($P(TN,U),""-"",1,2)=PRCF(""SIFY""),TT[$P(TN,U,2),$P(TN,""^"",4)=1,$D(^(10)),$P(^(10),U,4)=FSO"
+5 DO ^PRCSDIC
+6 IF Y>0
LOCK +^PRCS(410,+Y):$GET(DILOCKTM,3)
SET PRCLOCK=$TEST
+7 IF Y<1
SET PRCLOCK=$TEST
End DoDot:1
if $GET(PRCLOCK)
QUIT
WRITE !!,"***The Transaction Number you are attempting to access is being accessed by another user***",!!
+8 QUIT
POST ; Post data in file 424
+1 NEW X,Z,DAR,DIC,Y,DA,DIE,DR,TIME
+2 SET (X,Z)=PATNUM
SET %=1
DO EN1^PRCSUT3
IF +$PIECE(X,"-",3)>1
WRITE $CHAR(7),!,"This is not a new 1358. Adjustments may only be entered through the",!,"adjustment option."
HANG 3
SET %=0
QUIT
+3 SET DIC=424
SET DIC(0)="LX"
SET DLAYGO=424
DO ^DIC
KILL DLAYGO
IF Y<0
WRITE !,"ERROR IN CREATING 424 RECORD"
SET %=0
QUIT
+4 SET DAR=+Y
+5 DO NOW^%DTC
SET TIME=%
SET DIE=DIC
SET DA=DAR
SET X=PODA
SET DR=".02////^S X=PODA;.03////^S X=""O"";.06////^S X=$P(PO(0),U,11);.07////^S X=TIME;.08////^S X=DUZ;1.1///^S X=""INITIAL OBLIGATION"";.15////^S X=OB"
+6 DO ^DIE
SET %=1
+7 QUIT
+8 ; Message Processing called from PRCESOE
MSG ;
+1 WRITE !!
KILL MSG
SET MSG="No further processing is being taken on this obligation."
+2 DO EN^DDIOL(MSG)
KILL MSG
+3 QUIT
MSG1 ;
+1 WRITE !!
KILL MSG
SET MSG(1)="No further processing is being taken on this 1358. It has NOT been obligated."
+2 SET MSG(2)="The entry in the Purchase Order file is being deleted."
+3 DO EN^DDIOL(.MSG)
KILL MSG
+4 QUIT
MSG2(MSG) ;
+1 if '$DATA(ROUTINE)
SET ROUTINE="PRCUESIG"
+2 WRITE !!,$$ERROR^PRCFFU13(ROUTINE,MSG)
+3 DO MSG
+4 QUIT
MSG3 ;
+1 SET MSG(1)="No Obligation Number or Common Number Series has been selected."
+2 SET MSG(2)="No further action taken on this obligation."
+3 WRITE !!
DO EN^DDIOL(.MSG)
HANG 3
KILL MSG
+4 QUIT