IBINI0A5 ; ; 21-MAR-1994
;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
Q:'DIFQ(399) F I=1:2 S X=$T(Q+I) Q:X="" S Y=$E($T(Q+I+1),4,999),X=$E(X,4,999) S:$A(Y)=126 I=I+1,Y=$E(Y,2,999)_$E($T(Q+I+1),5,99) S:$A(Y)=61 Y=$E(Y,2,999) X NO E S @X=Y
Q Q
;;^DD(399,12,1,2,"DELETE VALUE")
;;=NO EFFECT
;;^DD(399,12,1,2,"FIELD")
;;=#15
;;^DD(399,12,1,3,0)
;;=^^TRIGGER^399^13
;;^DD(399,12,1,3,1)
;;=X ^DD(399,12,1,3,1.3) I X S X=DIV S Y(1)=$S($D(^DGCR(399,D0,"S")):^("S"),1:"") S X=$P(Y(1),U,13),X=X S DIU=X K Y S X=DIV S X=DUZ X ^DD(399,12,1,3,1.4)
;;^DD(399,12,1,3,1.3)
;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(0)=X S Y(1)=$S($D(^DGCR(399,D0,"S")):^("S"),1:"") S X=$S('$D(^VA(200,+$P(Y(1),U,13),0)):"",1:$P(^(0),U,1))=""
;;^DD(399,12,1,3,1.4)
;;=S DIH=$S($D(^DGCR(399,DIV(0),"S")):^("S"),1:""),DIV=X S $P(^("S"),U,13)=DIV,DIH=399,DIG=13 D ^DICR:$O(^DD(DIH,DIG,1,0))>0
;;^DD(399,12,1,3,2)
;;=Q
;;^DD(399,12,1,3,"CREATE CONDITION")
;;=FIRST PRINTED BY=""
;;^DD(399,12,1,3,"CREATE VALUE")
;;=S X=DUZ
;;^DD(399,12,1,3,"DELETE VALUE")
;;=NO EFFECT
;;^DD(399,12,1,3,"DT")
;;=2940310
;;^DD(399,12,1,3,"FIELD")
;;=FIRST PRINTED BY
;;^DD(399,12,1,4,0)
;;=399^AP
;;^DD(399,12,1,4,1)
;;=S ^DGCR(399,"AP",$E(X,1,30),DA)=""
;;^DD(399,12,1,4,2)
;;=K ^DGCR(399,"AP",$E(X,1,30),DA)
;;^DD(399,12,1,4,"%D",0)
;;=^^1^1^2910916^
;;^DD(399,12,1,4,"%D",1,0)
;;=Regular cross-reference to be used to speed up reports.
;;^DD(399,12,1,4,"DT")
;;=2910916
;;^DD(399,12,3)
;;=Enter date on which this bill was first generated.
;;^DD(399,12,21,0)
;;=^^1^1^2880831^
;;^DD(399,12,21,1,0)
;;=This is the date on which the bill was first printed.
;;^DD(399,12,"DT")
;;=2940310
;;^DD(399,13,0)
;;=FIRST PRINTED BY^P200'^VA(200,^S;13^Q
;;^DD(399,13,1,0)
;;=^.1^^0
;;^DD(399,13,3)
;;=Enter user who first generated this bill.
;;^DD(399,13,5,1,0)
;;=399^12^3
;;^DD(399,13,21,0)
;;=^^1^1^2880831^
;;^DD(399,13,21,1,0)
;;=This is the user who first generated this bill.
;;^DD(399,13,"DT")
;;=2900921
;;^DD(399,14,0)
;;=DATE LAST PRINTED^D^^S;14^S %DT="ETX" D ^%DT S X=Y K:Y<1 X
;;^DD(399,14,1,0)
;;=^.1^^-1
;;^DD(399,14,1,1,0)
;;=^^TRIGGER^399^.13
;;^DD(399,14,1,1,1)
;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^DGCR(399,D0,0)):^(0),1:"") S X=$P(Y(1),U,13),X=X S DIU=X K Y S X=DIV S X=4 X ^DD(399,14,1,1,1.4)
;;^DD(399,14,1,1,1.4)
;;=S DIH=$S($D(^DGCR(399,DIV(0),0)):^(0),1:""),DIV=X S $P(^(0),U,13)=DIV,DIH=399,DIG=.13 D ^DICR:$N(^DD(DIH,DIG,1,0))>0
;;^DD(399,14,1,1,2)
;;=Q
;;^DD(399,14,1,1,"CREATE VALUE")
;;=S X=4
;;^DD(399,14,1,1,"DELETE VALUE")
;;=NO EFFECT
;;^DD(399,14,1,1,"FIELD")
;;=STATUS
;;^DD(399,14,1,3,0)
;;=^^TRIGGER^399^15
;;^DD(399,14,1,3,1)
;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^DGCR(399,D0,"S")):^("S"),1:"") S X=$P(Y(1),U,15),X=X S DIU=X K Y S X=DIV S X=DUZ X ^DD(399,14,1,3,1.4)
;;^DD(399,14,1,3,1.4)
;;=S DIH=$S($D(^DGCR(399,DIV(0),"S")):^("S"),1:""),DIV=X S $P(^("S"),U,15)=DIV,DIH=399,DIG=15 D ^DICR:$N(^DD(DIH,DIG,1,0))>0
;;^DD(399,14,1,3,2)
;;=Q
;;^DD(399,14,1,3,"CREATE VALUE")
;;=S X=DUZ
;;^DD(399,14,1,3,"DELETE VALUE")
;;=NO EFFECT
;;^DD(399,14,1,3,"FIELD")
;;=LAST GENERATED BY
;;^DD(399,14,3)
;;=Enter date on which this bill was last generated.
;;^DD(399,14,5,1,0)
;;=399^12^1
;;^DD(399,14,21,0)
;;=^^1^1^2880831^
;;^DD(399,14,21,1,0)
;;=This is the date on which this bill was last printed.
;;^DD(399,14,"DT")
;;=2900116
;;^DD(399,15,0)
;;=LAST PRINTED BY^P200'I^VA(200,^S;15^Q
;;^DD(399,15,1,0)
;;=^.1^^0
;;^DD(399,15,3)
;;=Enter user who generated this bill last.
;;^DD(399,15,5,1,0)
;;=399^12^2
;;^DD(399,15,5,2,0)
;;=399^14^3
;;^DD(399,15,21,0)
;;=^^1^1^2880831^
;;^DD(399,15,21,1,0)
;;=This is the user who last printed this bill.
;;^DD(399,15,"DT")
;;=2900921
;;^DD(399,16,0)
;;=CANCEL BILL?^FOX^^S;16^I $D(X) D YN^IBCU
IBINI0A5 ; ; 21-MAR-1994
+1 ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
+2 IF 'DIFQ(399)
QUIT
FOR I=1:2
SET X=$TEXT(Q+I)
IF X=""
QUIT
SET Y=$EXTRACT($TEXT(Q+I+1),4,999)
SET X=$EXTRACT(X,4,999)
IF $ASCII(Y)=126
SET I=I+1
SET Y=$EXTRACT(Y,2,999)_$EXTRACT($TEXT(Q+I+1),5,99)
IF $ASCII(Y)=61
SET Y=$EXTRACT(Y,2,999)
XECUTE NO
IF '$TEST
SET @X=Y
Q QUIT
+1 ;;^DD(399,12,1,2,"DELETE VALUE")
+2 ;;=NO EFFECT
+3 ;;^DD(399,12,1,2,"FIELD")
+4 ;;=#15
+5 ;;^DD(399,12,1,3,0)
+6 ;;=^^TRIGGER^399^13
+7 ;;^DD(399,12,1,3,1)
+8 ;;=X ^DD(399,12,1,3,1.3) I X S X=DIV S Y(1)=$S($D(^DGCR(399,D0,"S")):^("S"),1:"") S X=$P(Y(1),U,13),X=X S DIU=X K Y S X=DIV S X=DUZ X ^DD(399,12,1,3,1.4)
+9 ;;^DD(399,12,1,3,1.3)
+10 ;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(0)=X S Y(1)=$S($D(^DGCR(399,D0,"S")):^("S"),1:"") S X=$S('$D(^VA(200,+$P(Y(1),U,13),0)):"",1:$P(^(0),U,1))=""
+11 ;;^DD(399,12,1,3,1.4)
+12 ;;=S DIH=$S($D(^DGCR(399,DIV(0),"S")):^("S"),1:""),DIV=X S $P(^("S"),U,13)=DIV,DIH=399,DIG=13 D ^DICR:$O(^DD(DIH,DIG,1,0))>0
+13 ;;^DD(399,12,1,3,2)
+14 ;;=Q
+15 ;;^DD(399,12,1,3,"CREATE CONDITION")
+16 ;;=FIRST PRINTED BY=""
+17 ;;^DD(399,12,1,3,"CREATE VALUE")
+18 ;;=S X=DUZ
+19 ;;^DD(399,12,1,3,"DELETE VALUE")
+20 ;;=NO EFFECT
+21 ;;^DD(399,12,1,3,"DT")
+22 ;;=2940310
+23 ;;^DD(399,12,1,3,"FIELD")
+24 ;;=FIRST PRINTED BY
+25 ;;^DD(399,12,1,4,0)
+26 ;;=399^AP
+27 ;;^DD(399,12,1,4,1)
+28 ;;=S ^DGCR(399,"AP",$E(X,1,30),DA)=""
+29 ;;^DD(399,12,1,4,2)
+30 ;;=K ^DGCR(399,"AP",$E(X,1,30),DA)
+31 ;;^DD(399,12,1,4,"%D",0)
+32 ;;=^^1^1^2910916^
+33 ;;^DD(399,12,1,4,"%D",1,0)
+34 ;;=Regular cross-reference to be used to speed up reports.
+35 ;;^DD(399,12,1,4,"DT")
+36 ;;=2910916
+37 ;;^DD(399,12,3)
+38 ;;=Enter date on which this bill was first generated.
+39 ;;^DD(399,12,21,0)
+40 ;;=^^1^1^2880831^
+41 ;;^DD(399,12,21,1,0)
+42 ;;=This is the date on which the bill was first printed.
+43 ;;^DD(399,12,"DT")
+44 ;;=2940310
+45 ;;^DD(399,13,0)
+46 ;;=FIRST PRINTED BY^P200'^VA(200,^S;13^Q
+47 ;;^DD(399,13,1,0)
+48 ;;=^.1^^0
+49 ;;^DD(399,13,3)
+50 ;;=Enter user who first generated this bill.
+51 ;;^DD(399,13,5,1,0)
+52 ;;=399^12^3
+53 ;;^DD(399,13,21,0)
+54 ;;=^^1^1^2880831^
+55 ;;^DD(399,13,21,1,0)
+56 ;;=This is the user who first generated this bill.
+57 ;;^DD(399,13,"DT")
+58 ;;=2900921
+59 ;;^DD(399,14,0)
+60 ;;=DATE LAST PRINTED^D^^S;14^S %DT="ETX" D ^%DT S X=Y K:Y<1 X
+61 ;;^DD(399,14,1,0)
+62 ;;=^.1^^-1
+63 ;;^DD(399,14,1,1,0)
+64 ;;=^^TRIGGER^399^.13
+65 ;;^DD(399,14,1,1,1)
+66 ;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^DGCR(399,D0,0)):^(0),1:"") S X=$P(Y(1),U,13),X=X S DIU=X K Y S X=DIV S X=4 X ^DD(399,14,1,1,1.4)
+67 ;;^DD(399,14,1,1,1.4)
+68 ;;=S DIH=$S($D(^DGCR(399,DIV(0),0)):^(0),1:""),DIV=X S $P(^(0),U,13)=DIV,DIH=399,DIG=.13 D ^DICR:$N(^DD(DIH,DIG,1,0))>0
+69 ;;^DD(399,14,1,1,2)
+70 ;;=Q
+71 ;;^DD(399,14,1,1,"CREATE VALUE")
+72 ;;=S X=4
+73 ;;^DD(399,14,1,1,"DELETE VALUE")
+74 ;;=NO EFFECT
+75 ;;^DD(399,14,1,1,"FIELD")
+76 ;;=STATUS
+77 ;;^DD(399,14,1,3,0)
+78 ;;=^^TRIGGER^399^15
+79 ;;^DD(399,14,1,3,1)
+80 ;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^DGCR(399,D0,"S")):^("S"),1:"") S X=$P(Y(1),U,15),X=X S DIU=X K Y S X=DIV S X=DUZ X ^DD(399,14,1,3,1.4)
+81 ;;^DD(399,14,1,3,1.4)
+82 ;;=S DIH=$S($D(^DGCR(399,DIV(0),"S")):^("S"),1:""),DIV=X S $P(^("S"),U,15)=DIV,DIH=399,DIG=15 D ^DICR:$N(^DD(DIH,DIG,1,0))>0
+83 ;;^DD(399,14,1,3,2)
+84 ;;=Q
+85 ;;^DD(399,14,1,3,"CREATE VALUE")
+86 ;;=S X=DUZ
+87 ;;^DD(399,14,1,3,"DELETE VALUE")
+88 ;;=NO EFFECT
+89 ;;^DD(399,14,1,3,"FIELD")
+90 ;;=LAST GENERATED BY
+91 ;;^DD(399,14,3)
+92 ;;=Enter date on which this bill was last generated.
+93 ;;^DD(399,14,5,1,0)
+94 ;;=399^12^1
+95 ;;^DD(399,14,21,0)
+96 ;;=^^1^1^2880831^
+97 ;;^DD(399,14,21,1,0)
+98 ;;=This is the date on which this bill was last printed.
+99 ;;^DD(399,14,"DT")
+100 ;;=2900116
+101 ;;^DD(399,15,0)
+102 ;;=LAST PRINTED BY^P200'I^VA(200,^S;15^Q
+103 ;;^DD(399,15,1,0)
+104 ;;=^.1^^0
+105 ;;^DD(399,15,3)
+106 ;;=Enter user who generated this bill last.
+107 ;;^DD(399,15,5,1,0)
+108 ;;=399^12^2
+109 ;;^DD(399,15,5,2,0)
+110 ;;=399^14^3
+111 ;;^DD(399,15,21,0)
+112 ;;=^^1^1^2880831^
+113 ;;^DD(399,15,21,1,0)
+114 ;;=This is the user who last printed this bill.
+115 ;;^DD(399,15,"DT")
+116 ;;=2900921
+117 ;;^DD(399,16,0)
+118 ;;=CANCEL BILL?^FOX^^S;16^I $D(X) D YN^IBCU