source: WorldVistAEHR/trunk/r/ACCOUNTS_RECEIVABLE-PRCA-PRY-RC/PRCATO3.m@ 1042

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

initial load of WorldVistAEHR

File size: 2.0 KB
Line 
1PRCATO3 ; GENERATED FROM 'PRCAP COST' PRINT TEMPLATE (#400) ; 06/27/96 ; (FILE 433, 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 D N:$X>0 Q:'DN W ?0 S X="=",DIP(1)=X S X=79,X1=DIP(1) S %=X1 X:%]"" "F X=X:0 S %=%_X1 Q:$L(%)>X" S X=$E(%,1,X) K DIP K:DN Y W X
15 D N:$X>0 Q:'DN W ?0 W "BILL N0.: "
16 S X=$G(^PRCA(433,D0,0)) D N:$X>12 Q:'DN W ?12 S Y=$P(X,U,2) S Y=$S(Y="":Y,$D(^PRCA(430,Y,0))#2:$P(^(0),U,1),1:Y) W $E(Y,1,12)
17 D N:$X>34 Q:'DN W ?34 W "TRANSACTION DATE: "
18 S X=$G(^PRCA(433,D0,1)) D N:$X>54 Q:'DN W ?54 S Y=$P(X,U,1) D DT
19 D N:$X>0 Q:'DN W ?0 W "TYPE: "
20 D N:$X>11 Q:'DN W ?11 S Y=$P(X,U,2) S Y=$S(Y="":Y,$D(^PRCA(430.3,Y,0))#2:$P(^(0),U,1),1:Y) W $E(Y,1,30)
21 D N:$X>34 Q:'DN W ?34 W "TOTAL TRANS. AMOUNT: "
22 D N:$X>59 Q:'DN W ?59 S Y=$P(X,U,5) W:Y]"" $J(Y,10,2)
23 D N:$X>0 Q:'DN W ?0 W "IRS LOC. COST: "
24 S X=$G(^PRCA(433,D0,2)) W ?17 S Y=$P(X,U,1) W:Y]"" $J(Y,8,2)
25 D N:$X>34 Q:'DN W ?34 W "CREDIT REP.COST: "
26 W ?53 S Y=$P(X,U,2) W:Y]"" $J(Y,8,2)
27 D N:$X>0 Q:'DN W ?0 W "DMV LOC.COST: "
28 W ?16 S Y=$P(X,U,3) W:Y]"" $J(Y,8,2)
29 D N:$X>34 Q:'DN W ?34 W "CONSUMER REP.AGENCY COST: "
30 W ?62 S Y=$P(X,U,4) W:Y]"" $J(Y,8,2)
31 D N:$X>0 Q:'DN W ?0 W "MARSHAL FEE: "
32 W ?15 S Y=$P(X,U,5) W:Y]"" $J(Y,9,2)
33 D N:$X>34 Q:'DN W ?34 W "COURT COST: "
34 W ?48 S Y=$P(X,U,6) W:Y]"" $J(Y,9,2)
35 W ?59 I $D(PRCASUP) D EN2^PRCAEXM K DIP K:DN Y
36 D N:$X>0 Q:'DN W ?0 S X="=",DIP(1)=X S X=79,X1=DIP(1) S %=X1 X:%]"" "F X=X:0 S %=%_X1 Q:$L(%)>X" S X=$E(%,1,X) K DIP K:DN Y W X
37 K Y
38 Q
39HEAD ;
40 W !,"--------------------------------------------------------------------------------",!!
Note: See TracBrowser for help on using the repository browser.