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

FBAAVD3.m

Go to the documentation of this file.
  1. FBAAVD3 ;WCIOFO/SAB-EDIT VENDOR FPDS DATA ;10/6/97
  1. ;;3.5;FEE BASIS;**9,10**;JAN 30, 1995
  1. ;;Per VHA Directive 10-93-142, this routine should not be modified.
  1. RDV ; ask vendor
  1. D GETVEN^FBAAUTL1 G:IFN="" EXIT S DA=IFN
  1. ; display vendor
  1. ;D EN1^FBAAVD
  1. ; check vendor
  1. I $D(^FBAA(161.25,"AF",DA)) D G RDV
  1. . ; linked vendor
  1. . W !,"Current vendor information is pending Austin processing."
  1. . W !,"Use the Display/Edit Vendor option if changes need to be made."
  1. I $D(^FBAA(161.25,DA,0)),$P(^(0),U,5)]"" D G RDV
  1. . ; awaiting reply from Austin
  1. . W !,"Current vendor information is pending Austin processing."
  1. . W !,"Use the Display/Edit Vendor option if changes need to be made."
  1. I $P($G(^FBAAV(DA,"ADEL")),U)="Y" D G RDV
  1. . W !,"Vendor has been deleted."
  1. . W !,"Use the Display/Edit Vendor option if changes need to be made."
  1. ; lock vendor
  1. L +^FBAAV(DA):5 I '$T D G RDV
  1. . W !,"Vendor is being accessed by another user."
  1. . W !,"Please try again later."
  1. ; save current FPDS data
  1. S FBBT("O")=$P($G(^FBAAV(DA,1)),U,10)
  1. D GETGRP^FBAAUTL6(DA)
  1. ; edit vendor FPDS data
  1. S DIE="^FBAAV(",DR="24;S FBBT=X;25;S:$$VGRP^FBAAUTL6(D0) Y=24"
  1. D ^DIE K DIE
  1. ; if data changed store in 161.25
  1. I $P($G(^FBAAV(DA,1)),U,10)'=FBBT("O")!$$GRPDIF^FBAAUTL6(DA) D
  1. . Q:$D(^FBAA(161.25,DA,0)) ; already queued, all actions inc. FPDS data
  1. . ; add to file 161.25 with action of F
  1. . S FBT="F",FBIEN1=DA,FEEO="" D SETGL^FBAAVD
  1. . K FBT,FBIEN1,FEEO
  1. ; unlock vendor
  1. L -^FBAAV(DA)
  1. ;
  1. G RDV
  1. EXIT ;
  1. K DA,DIE,DR,IFN,FBBT,FBSG
  1. Q