FBAACCB2 ;AISC/CMR-CLERK CLOSE BATCH ;JUN 21, 1994
;;3.5;FEE BASIS;;JAN 30, 1995
;;Per VHA Directive 10-93-142, this routine should not be modified.
PMNT ;displays check and cancellation information if any exist
I $G(FBCK)]"" W !?4,">>>Check # ",FBCK I $G(FBCKDT) W " Date Paid: ",$$DATX^FBAAUTL(FBCKDT),$S(FBCKINT>0:" Interest: "_$FN(FBCKINT,",",2),1:""),"<<<" D
.I FBDIS-FBCKINT'=+A2 W !,*7,?4,">>>Amount paid altered to $ ",$FN((FBDIS-FBCKINT),",",2)," on the Fee Payment Voucher document.<<<"
I $G(FBCANDT)>0 W !?4,">>>Check cancelled on: ",$$DATX^FBAAUTL(FBCANDT) I +FBCANR W " Reason: ",$P($G(^FB(162.95,+FBCANR,0)),"^"),"<<<" D
.W !,?7,$S(FBCAN="R":"Check WILL be replaced.",FBCAN="C":"Check WILL be re-issued.",FBCAN="X":"Check WILL NOT be replaced.",1:"")
PMTCLN K FBCAN,FBCK,FBCKDT,FBCANDT,FBCANR,FBCKINT,FBDIS,FBCKIN
Q
FBCKO(J,K,L,M) ;set outpatient check variables
;J,K,L,M must be defined to DA(3),DA(2),DA(1) and DA respectively
I 'J!('K)!('L)!('M) S (FBCAN,FBCK,FBCANDT,FBCANR,FBDIS,FBCKINT,FBCKDT)="" Q
S FBCKIN=$G(^FBAAC(J,1,K,1,L,1,M,2))
S FBCAN=$P(FBCKIN,"^",6),FBCK=$P(FBCKIN,"^",3),FBCANDT=$P(FBCKIN,"^",4),FBCANR=$P(FBCKIN,"^",5),FBDIS=$P(FBCKIN,"^",8),FBCKINT=$P(FBCKIN,"^",9)
S FBCKDT=$P($G(^FBAAC(J,1,K,1,L,1,M,0)),"^",14)
K FBCKIN
Q
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HFBAACCB2 1297 printed Sep 15, 2024@21:19:17 Page 2
FBAACCB2 ;AISC/CMR-CLERK CLOSE BATCH ;JUN 21, 1994
+1 ;;3.5;FEE BASIS;;JAN 30, 1995
+2 ;;Per VHA Directive 10-93-142, this routine should not be modified.
PMNT ;displays check and cancellation information if any exist
+1 IF $GET(FBCK)]""
WRITE !?4,">>>Check # ",FBCK
IF $GET(FBCKDT)
WRITE " Date Paid: ",$$DATX^FBAAUTL(FBCKDT),$SELECT(FBCKINT>0:" Interest: "_$FNUMBER(FBCKINT,",",2),1:""),"<<<"
Begin DoDot:1
+2 IF FBDIS-FBCKINT'=+A2
WRITE !,*7,?4,">>>Amount paid altered to $ ",$FNUMBER((FBDIS-FBCKINT),",",2)," on the Fee Payment Voucher document.<<<"
End DoDot:1
+3 IF $GET(FBCANDT)>0
WRITE !?4,">>>Check cancelled on: ",$$DATX^FBAAUTL(FBCANDT)
IF +FBCANR
WRITE " Reason: ",$PIECE($GET(^FB(162.95,+FBCANR,0)),"^"),"<<<"
Begin DoDot:1
+4 WRITE !,?7,$SELECT(FBCAN="R":"Check WILL be replaced.",FBCAN="C":"Check WILL be re-issued.",FBCAN="X":"Check WILL NOT be replaced.",1:"")
End DoDot:1
PMTCLN KILL FBCAN,FBCK,FBCKDT,FBCANDT,FBCANR,FBCKINT,FBDIS,FBCKIN
+1 QUIT
FBCKO(J,K,L,M) ;set outpatient check variables
+1 ;J,K,L,M must be defined to DA(3),DA(2),DA(1) and DA respectively
+2 IF 'J!('K)!('L)!('M)
SET (FBCAN,FBCK,FBCANDT,FBCANR,FBDIS,FBCKINT,FBCKDT)=""
QUIT
+3 SET FBCKIN=$GET(^FBAAC(J,1,K,1,L,1,M,2))
+4 SET FBCAN=$PIECE(FBCKIN,"^",6)
SET FBCK=$PIECE(FBCKIN,"^",3)
SET FBCANDT=$PIECE(FBCKIN,"^",4)
SET FBCANR=$PIECE(FBCKIN,"^",5)
SET FBDIS=$PIECE(FBCKIN,"^",8)
SET FBCKINT=$PIECE(FBCKIN,"^",9)
+5 SET FBCKDT=$PIECE($GET(^FBAAC(J,1,K,1,L,1,M,0)),"^",14)
+6 KILL FBCKIN
+7 QUIT