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

PRCAP389.m

Go to the documentation of this file.
  1. PRCAP389 ;EDE/YMG - PRCA*4.5*389 POST INSTALL; 07/28/21
  1. ;;4.5;Accounts Receivable;**389**;Mar 20, 1995;Build 36
  1. ;Per VA Directive 6402, this routine should not be modified.
  1. Q
  1. ;
  1. EN ; entry point
  1. D BMES^XPDUTL(" >> Start of the Post-Installation routine for PRCA*4.5*389")
  1. ; Update audit log comments in file 340.5
  1. D UPDCMNT
  1. ;
  1. D BMES^XPDUTL(" >> End of the Post-Installation routine for PRCA*4.5*389")
  1. Q
  1. ;
  1. UPDCMNT ; Update audit log comments and 36 months review flag (fields 340.54/4 and 340.5/1.06) in file 340.5
  1. N AIEN,APPR36,CMNT,CMNTPTR,FDA,IENS,RPIEN,RPPLEN
  1. D BMES^XPDUTL(" >> Updating audit log comments and 36 months review flag in file 340.5...")
  1. S RPIEN=0 F S RPIEN=$O(^RCRP(340.5,RPIEN)) Q:'RPIEN D
  1. .S APPR36=0
  1. .S RPPLEN=$P(^RCRP(340.5,RPIEN,0),U,5)
  1. .S AIEN=0 F S AIEN=$O(^RCRP(340.5,RPIEN,4,AIEN)) Q:'AIEN D
  1. ..S CMNT=$P(^RCRP(340.5,RPIEN,4,AIEN,0),U,4) I CMNT="" Q
  1. ..I CMNT="SM" S APPR36=1
  1. ..S CMNTPTR=+$O(^RCRP(340.501,"B",CMNT,"")) I CMNTPTR'>0 Q
  1. ..S IENS=AIEN_","_RPIEN_",",FDA(340.54,IENS,5)=CMNTPTR D FILE^DIE("","FDA")
  1. ..Q
  1. .; set field 340.5/1.06, if necessary
  1. .I RPPLEN>36 S IENS=RPIEN_"," I $$GET1^DIQ(340.5,IENS,1.06,"I")="" S FDA(340.5,IENS,1.06)=APPR36 D FILE^DIE("","FDA")
  1. .Q
  1. D MES^XPDUTL("Done.")
  1. Q