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

PRCAI158.m

Go to the documentation of this file.
  1. PRCAI158 ;ALB/MFR-PATCH PRCA*4.5*158 POST INIT ; 06/27/00
  1. ;;4.5;Accounts Receivable;**158**;Mar 20, 1995
  1. ;;Per VHA Directive 10-93-142, this routine should not be modified.
  1. ;
  1. D DATADEL
  1. Q
  1. ;
  1. DATADEL ; Delete the "-1" Bills from the Accounts Receivable file (430)
  1. ;
  1. N DA,DIK,RCIDX,RCXRF,RCCNT
  1. ;
  1. D BMES^XPDUTL(" >> Removing inconsistent entries from file 430...")
  1. ;
  1. S (DA,RCCNT)="",DIK="^PRCA(430,"
  1. F RCIDX="B","D" D
  1. . S RCXRF=$S(RCIDX="B":"-1^",1:"1^")
  1. . F S RCXRF=$O(^PRCA(430,RCIDX,RCXRF)) Q:RCXRF=""!(RCXRF'["^") D
  1. . . F S DA=$O(^PRCA(430,RCIDX,RCXRF,DA)) Q:DA="" D
  1. . . . I $D(^PRCA(430,DA,0)) D ^DIK S RCCNT=RCCNT+1
  1. . . . K ^PRCA(430,RCIDX,RCXRF,DA)
  1. ;
  1. D BMES^XPDUTL(" >> Total of "_+RCCNT_" bills removed.")
  1. ;
  1. Q