PRCET ; GENERATED FROM 'PRCE DAILY RECORD EDIT' PRINT TEMPLATE (#344) ; 10/27/00 ; (FILE 424.1, MARGIN=80)
G BEGIN
N W !
T W:$X ! I '$D(DIOT(2)),DN,$D(IOSL),$S('$D(DIWF):1,$P(DIWF,"B",2):$P(DIWF,"B",2),1:1)+$Y'<IOSL,$D(^UTILITY($J,1))#2,^(1)?1U1P1E.E X ^(1)
S DISTP=DISTP+1,DILCT=DILCT+1 D:'(DISTP#100) CSTP^DIO2
Q
DT I $G(DUZ("LANG"))>1,Y W $$OUT^DIALOGU(Y,"DD") Q
I Y W $P("JAN^FEB^MAR^APR^MAY^JUN^JUL^AUG^SEP^OCT^NOV^DEC",U,$E(Y,4,5))_" " W:Y#100 $J(Y#100\1,2)_"," W Y\10000+1700 W:Y#1 " "_$E(Y_0,9,10)_":"_$E(Y_"000",11,12) Q
W Y Q
M D @DIXX
Q
BEGIN ;
S:'$D(DN) DN=1 S DISTP=$G(DISTP),DILCT=$G(DILCT)
I $D(DXS)<9 M DXS=^DIPT(344,"DXS")
S I(0)="^PRC(424.1,",J(0)=424.1
D N:$X>21 Q:'DN W ?21 W "DAILY RECORD:"
S X=$G(^PRC(424.1,D0,0)) W ?36,$E($P(X,U,1),1,20)
D N:$X>13 Q:'DN W ?13 W "AUTHORIZATION NUMBER:"
W ?36 S Y=$P(X,U,2) S Y=$S(Y="":Y,$D(^PRC(424,Y,0))#2:$P(^(0),U,1),1:Y) W $E(Y,1,15)
D N:$X>10 Q:'DN W ?10 W "AUTHORIZATION REFERENCE:"
W ?36 X DXS(1,9.2) S X=$P(DIP(101),U,10) S D0=I(0,0) K DIP K:DN Y W X
D N:$X>12 Q:'DN W ?12 W "AUTHORIZATION BALANCE:"
W ?36 W "$"
W ?39 X DXS(2,9.2) S X=$P(DIP(101),U,5) S D0=I(0,0) K DIP K:DN Y W:X'?."*" $J(X,12,2)
D N:$X>7 Q:'DN W ?7 W "OBLIGATION SERVICE BALANCE:"
W ?36 W "$"
W ?39 X DXS(3,9) K DIP K:DN Y W:X'?."*" $J(X,12,2)
D T Q:'DN D N W ?0 W "--------------------------------------------------------------------------------"
D N:$X>0 Q:'DN W ?0 W "1.)"
D N:$X>15 Q:'DN W ?15 W "AMOUNT:"
W ?24 S DIP(1)=$S($D(^PRC(424.1,D0,0)):^(0),1:"") S X=$P(DIP(1),U,3)/-1 K DIP K:DN Y W X
D N:$X>0 Q:'DN W ?0 W "2.)"
D N:$X>5 Q:'DN W ?5 W "VENDOR INVOICE #:"
S X=$G(^PRC(424.1,D0,0)) W ?24,$E($P(X,U,6),1,15)
D N:$X>0 Q:'DN W ?0 W "3.)"
D N:$X>12 Q:'DN W ?12 W "REFERENCE:"
W ?24,$E($P(X,U,8),1,15)
D N:$X>0 Q:'DN W ?0 W "4.)"
D N:$X>13 Q:'DN W ?13 W "COMMENTS:"
S X=$G(^PRC(424.1,D0,1)) D T Q:'DN W ?24,$E($P(X,U,1),1,245)
D T Q:'DN W ?0 W "--------------------------------------------------------------------------------"
D T Q:'DN D N D N:$X>6 Q:'DN W ?6 W "LAST EDITED BY :"
S X=$G(^PRC(424.1,D0,0)) W ?24 S Y=$P(X,U,10) S Y=$S(Y="":Y,$D(^VA(200,Y,0))#2:$P(^(0),U,1),1:Y) W $E(Y,1,35)
D N:$X>10 Q:'DN W ?10 W "LAST EDITED: "
W ?25 S Y=$P(X,U,4) D DT
K Y
Q
HEAD ;
W !,"--------------------------------------------------------------------------------",!!
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HPRCET 2412 printed Oct 16, 2024@18:02:24 Page 2
PRCET ; GENERATED FROM 'PRCE DAILY RECORD EDIT' PRINT TEMPLATE (#344) ; 10/27/00 ; (FILE 424.1, MARGIN=80)
+1 GOTO BEGIN
N WRITE !
T if $X
WRITE !
IF '$DATA(DIOT(2))
IF DN
IF $DATA(IOSL)
IF $SELECT('$DATA(DIWF):1,$PIECE(DIWF,"B",2):$PIECE(DIWF,"B",2),1:1)+$Y'<IOSL
IF $DATA(^UTILITY($JOB,1))#2
IF ^(1)?1U1P1E.E
XECUTE ^(1)
+1 SET DISTP=DISTP+1
SET DILCT=DILCT+1
if '(DISTP#100)
DO CSTP^DIO2
+2 QUIT
DT IF $GET(DUZ("LANG"))>1
IF Y
WRITE $$OUT^DIALOGU(Y,"DD")
QUIT
+1 IF Y
WRITE $PIECE("JAN^FEB^MAR^APR^MAY^JUN^JUL^AUG^SEP^OCT^NOV^DEC",U,$EXTRACT(Y,4,5))_" "
if Y#100
WRITE $JUSTIFY(Y#100\1,2)_","
WRITE Y\10000+1700
if Y#1
WRITE " "_$EXTRACT(Y_0,9,10)_":"_$EXTRACT(Y_"000",11,12)
QUIT
+2 WRITE Y
QUIT
M DO @DIXX
+1 QUIT
BEGIN ;
+1 if '$DATA(DN)
SET DN=1
SET DISTP=$GET(DISTP)
SET DILCT=$GET(DILCT)
+2 IF $DATA(DXS)<9
MERGE DXS=^DIPT(344,"DXS")
+3 SET I(0)="^PRC(424.1,"
SET J(0)=424.1
+4 if $X>21
DO N
if 'DN
QUIT
WRITE ?21
WRITE "DAILY RECORD:"
+5 SET X=$GET(^PRC(424.1,D0,0))
WRITE ?36,$EXTRACT($PIECE(X,U,1),1,20)
+6 if $X>13
DO N
if 'DN
QUIT
WRITE ?13
WRITE "AUTHORIZATION NUMBER:"
+7 WRITE ?36
SET Y=$PIECE(X,U,2)
SET Y=$SELECT(Y="":Y,$DATA(^PRC(424,Y,0))#2:$PIECE(^(0),U,1),1:Y)
WRITE $EXTRACT(Y,1,15)
+8 if $X>10
DO N
if 'DN
QUIT
WRITE ?10
WRITE "AUTHORIZATION REFERENCE:"
+9 WRITE ?36
XECUTE DXS(1,9.2)
SET X=$PIECE(DIP(101),U,10)
SET D0=I(0,0)
KILL DIP
if DN
KILL Y
WRITE X
+10 if $X>12
DO N
if 'DN
QUIT
WRITE ?12
WRITE "AUTHORIZATION BALANCE:"
+11 WRITE ?36
WRITE "$"
+12 WRITE ?39
XECUTE DXS(2,9.2)
SET X=$PIECE(DIP(101),U,5)
SET D0=I(0,0)
KILL DIP
if DN
KILL Y
if X'?."*"
WRITE $JUSTIFY(X,12,2)
+13 if $X>7
DO N
if 'DN
QUIT
WRITE ?7
WRITE "OBLIGATION SERVICE BALANCE:"
+14 WRITE ?36
WRITE "$"
+15 WRITE ?39
XECUTE DXS(3,9)
KILL DIP
if DN
KILL Y
if X'?."*"
WRITE $JUSTIFY(X,12,2)
+16 DO T
if 'DN
QUIT
DO N
WRITE ?0
WRITE "--------------------------------------------------------------------------------"
+17 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "1.)"
+18 if $X>15
DO N
if 'DN
QUIT
WRITE ?15
WRITE "AMOUNT:"
+19 WRITE ?24
SET DIP(1)=$SELECT($DATA(^PRC(424.1,D0,0)):^(0),1:"")
SET X=$PIECE(DIP(1),U,3)/-1
KILL DIP
if DN
KILL Y
WRITE X
+20 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "2.)"
+21 if $X>5
DO N
if 'DN
QUIT
WRITE ?5
WRITE "VENDOR INVOICE #:"
+22 SET X=$GET(^PRC(424.1,D0,0))
WRITE ?24,$EXTRACT($PIECE(X,U,6),1,15)
+23 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "3.)"
+24 if $X>12
DO N
if 'DN
QUIT
WRITE ?12
WRITE "REFERENCE:"
+25 WRITE ?24,$EXTRACT($PIECE(X,U,8),1,15)
+26 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "4.)"
+27 if $X>13
DO N
if 'DN
QUIT
WRITE ?13
WRITE "COMMENTS:"
+28 SET X=$GET(^PRC(424.1,D0,1))
DO T
if 'DN
QUIT
WRITE ?24,$EXTRACT($PIECE(X,U,1),1,245)
+29 DO T
if 'DN
QUIT
WRITE ?0
WRITE "--------------------------------------------------------------------------------"
+30 DO T
if 'DN
QUIT
DO N
if $X>6
DO N
if 'DN
QUIT
WRITE ?6
WRITE "LAST EDITED BY :"
+31 SET X=$GET(^PRC(424.1,D0,0))
WRITE ?24
SET Y=$PIECE(X,U,10)
SET Y=$SELECT(Y="":Y,$DATA(^VA(200,Y,0))#2:$PIECE(^(0),U,1),1:Y)
WRITE $EXTRACT(Y,1,35)
+32 if $X>10
DO N
if 'DN
QUIT
WRITE ?10
WRITE "LAST EDITED: "
+33 WRITE ?25
SET Y=$PIECE(X,U,4)
DO DT
+34 KILL Y
+35 QUIT
HEAD ;
+1 WRITE !,"--------------------------------------------------------------------------------",!!