source: FOIAVistA/trunk/r/IFCAP-PRC-PRX--PRCA--PRCN/PRCET.m@ 1328

Last change on this file since 1328 was 628, checked in by George Lilly, 15 years ago

initial load of FOIAVistA 6/30/08 version

File size: 2.3 KB
Line 
1PRCET ; GENERATED FROM 'PRCE DAILY RECORD EDIT' PRINT TEMPLATE (#344) ; 10/27/00 ; (FILE 424.1, MARGIN=80)
2 G BEGIN
3N W !
4T 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)
5 S DISTP=DISTP+1,DILCT=DILCT+1 D:'(DISTP#100) CSTP^DIO2
6 Q
7DT I $G(DUZ("LANG"))>1,Y W $$OUT^DIALOGU(Y,"DD") Q
8 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
9 W Y Q
10M D @DIXX
11 Q
12BEGIN ;
13 S:'$D(DN) DN=1 S DISTP=$G(DISTP),DILCT=$G(DILCT)
14 I $D(DXS)<9 M DXS=^DIPT(344,"DXS")
15 S I(0)="^PRC(424.1,",J(0)=424.1
16 D N:$X>21 Q:'DN W ?21 W "DAILY RECORD:"
17 S X=$G(^PRC(424.1,D0,0)) W ?36,$E($P(X,U,1),1,20)
18 D N:$X>13 Q:'DN W ?13 W "AUTHORIZATION NUMBER:"
19 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)
20 D N:$X>10 Q:'DN W ?10 W "AUTHORIZATION REFERENCE:"
21 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
22 D N:$X>12 Q:'DN W ?12 W "AUTHORIZATION BALANCE:"
23 W ?36 W "$"
24 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)
25 D N:$X>7 Q:'DN W ?7 W "OBLIGATION SERVICE BALANCE:"
26 W ?36 W "$"
27 W ?39 X DXS(3,9) K DIP K:DN Y W:X'?."*" $J(X,12,2)
28 D T Q:'DN D N W ?0 W "--------------------------------------------------------------------------------"
29 D N:$X>0 Q:'DN W ?0 W "1.)"
30 D N:$X>15 Q:'DN W ?15 W "AMOUNT:"
31 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
32 D N:$X>0 Q:'DN W ?0 W "2.)"
33 D N:$X>5 Q:'DN W ?5 W "VENDOR INVOICE #:"
34 S X=$G(^PRC(424.1,D0,0)) W ?24,$E($P(X,U,6),1,15)
35 D N:$X>0 Q:'DN W ?0 W "3.)"
36 D N:$X>12 Q:'DN W ?12 W "REFERENCE:"
37 W ?24,$E($P(X,U,8),1,15)
38 D N:$X>0 Q:'DN W ?0 W "4.)"
39 D N:$X>13 Q:'DN W ?13 W "COMMENTS:"
40 S X=$G(^PRC(424.1,D0,1)) D T Q:'DN W ?24,$E($P(X,U,1),1,245)
41 D T Q:'DN W ?0 W "--------------------------------------------------------------------------------"
42 D T Q:'DN D N D N:$X>6 Q:'DN W ?6 W "LAST EDITED BY :"
43 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)
44 D N:$X>10 Q:'DN W ?10 W "LAST EDITED: "
45 W ?25 S Y=$P(X,U,4) D DT
46 K Y
47 Q
48HEAD ;
49 W !,"--------------------------------------------------------------------------------",!!
Note: See TracBrowser for help on using the repository browser.