Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: FBAAPV

FBAAPV.m

Go to the documentation of this file.
FBAAPV ;AISC/CMR-Vendors Pending Austin Approval;9/17/93
 ;;3.5;FEE BASIS;;JAN 30, 1995
 ;;Per VHA Directive 10-93-142, this routine should not be modified.
 S (VAR,VAL)="",PGM="START^FBAAPV" D ZIS^FBAAUTL G EXIT:FBPOP
START S (FBAAOUT,FBI)=0 F  S FBI=$O(^FBAA(161.25,FBI)) Q:'FBI  D
 .S FBIN=$G(^FBAA(161.25,FBI,0)) I FBIN["N"!(FBIN["C") S FBDT=$P(FBIN,"^",5),FBNAME=$$VNAME^FBNHEXP(FBI),^TMP($J,"FBPV",FBNAME,FBI)=FBDT
 I '$D(^TMP($J,"FBPV")) G MSG
 U IO W:$E(IOST,1,2)["C-" @IOF D HED
 S FBNAME="",FBI=0 F  S FBNAME=$O(^TMP($J,"FBPV",FBNAME)) Q:FBNAME']""!FBAAOUT  F  S FBI=$O(^TMP($J,"FBPV",FBNAME,FBI)) Q:'FBI!FBAAOUT  S FBDT=+^(FBI) D
 .I $Y+3>IOSL,($E(IOST,1,2)["C-") S DIR(0)="E" D ^DIR K DIR I 'Y S FBAAOUT=1 Q
 .I $Y+3>IOSL W @IOF D HED
 .F FBT=2,3,4,5,6,14 S FBT(FBT)=$P(^FBAAV(FBI,0),"^",FBT)
 .W !!,FBNAME,?35,FBT(2),?60,$S(FBDT>0:$$DATX^FBAAUTL(FBDT),1:"Not Transmitted"),!?5,FBT(3) W:FBT(14)]"" !?5,FBT(14) W !?5,FBT(4),"  ",$P($G(^DIC(5,+FBT(5),0)),U,2),"   ",FBT(6)
EXIT K FBI,FBIN,FBDT,FBNAME,FBQ,FBAAOUT,^TMP($J,"FBPV")
 D CLOSE^FBAAUTL
 Q
HED W !?18,"FEE BASIS VENDORS AWAITING AUSTIN APPROVAL"
 W !?33,$$DATX^FBAAUTL(DT),!?18 F FBQ=1:1:42 W "-"
 W !!,"VENDOR",?38,"ID",?54,"DATE TRANSMITTED TO AUSTIN" F FBQ=1:1:80 W "="
 W ! Q
MSG W !!,"There are no venders awaiting Austin approval."
 G EXIT