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

PRCA320P.m

Go to the documentation of this file.
  1. PRCA320P ;LIB/RED-PRCA*4.5*320 POST INSTALL ;22 May 17
  1. ;;4.5;Accounts Receivable;**320**;Mar 20, 1995;Build 30
  1. ;;Per VA Directive 6402, this routine should not be modified.
  1. ;
  1. ; ICR - 1157 ADD^XPDMENU and $$LKOPT^XPDMENU
  1. ;
  1. POSTINIT ;
  1. D ADDARDC
  1. D XREF
  1. Q
  1. ADDARDC ; add menu option - ARDC DETAIL REPORT to existing option - PRCAD RECONCILE MENU
  1. N DA,DIK,MEN,OPT,RET
  1. ; RET - value returned from
  1. S MEN="PRCAD RECONCILE MENU"
  1. S DA(1)=+$$LKOPT^XPDMENU(MEN)
  1. S OPT="PRCA ARDC REPORT"
  1. S DA=+$$LKOPT^XPDMENU(OPT) ; get option IEN
  1. I $D(^DIC(19,DA(1),10,"B",DA)) Q ; Option already added
  1. D ADD^XPDMENU(MEN,OPT,"") ; Set ARDC DETAIL REPORT as an item in Reconciliation Reports menu
  1. Q
  1. XREF ; check "AC" xref
  1. N X,FLAG S FLAG=0
  1. F X=16,18,32,33,40,42 D
  1. . S I=0 F S I=$O(^PRCA(430,"AC",X,I)) Q:'I D
  1. .. I $P(^PRCA(430,I,0),U,8)'=X S FLAG=1 Q
  1. .. Q
  1. .Q
  1. I 'FLAG Q
  1. D MES^XPDUTL(" >> At least one bad cross-reference was found in")
  1. D MES^XPDUTL(" >> file #430! This needs to be fixed via FileMan.")
  1. D MES^XPDUTL(" >> To fix this issue use the FileMan utilities - Re-index a file")
  1. D MES^XPDUTL(" >> - Modify file #430, - use a Particular Index - Select field")
  1. D MES^XPDUTL(" >> and choose: 'Current Status', and select the regular 'AC' index.")
  1. D MES^XPDUTL(" >> ...")
  1. D MES^XPDUTL(" >> End of the Post-Initialization routine ...")
  1. Q