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

PRCF223P.m

Go to the documentation of this file.
  1. PRCF223P ;MNTVBB/RGB - Cleanse Receiving queue of partial sets and update Authority file (410.9) ; 01/10/21@12:05
  1. V ;;5.1;IFCAP;**223**;Jan 10, 2021;Build 16
  1. ;Per VA Directive 6402, this routine should not be modified.
  1. ;
  1. Q
  1. START ;PRC*5.1*223 Updating file 410.9 [Authority of Request File] with new
  1. ; sub authority 'Q', 'FRANCHISE FUND: VTP CLAIMS'
  1. D CLEAN1 ;Cleanse Receiving Report of incomplete filed transmission
  1. D SETAO ;Set missing 'AO' index in file 410, field 4
  1. D UPDATE ;Update AUTHORITY OF REQUEST file
  1. Q
  1. UPDATE ;Update Authority file 410.9
  1. N DIE,DA,DR,PRCI,PRCX,PRCIEN,PRCCD,PRCSUB,PRCDESC
  1. S U="^"
  1. S DIE="^PRCS(410.9,"
  1. F PRCI=1:1 S PRCX=$P($T(ADD+PRCI),";",3) Q:PRCX="QUIT" D
  1. . S X=$P(PRCX,U,2),DLAYGO=410.9,DIC="^PRCS(410.9,",DIC(0)="LXZ" D ^DIC K DLAYGO G:Y<0 ERR
  1. . S (DA,PRCIEN)=+Y,PRCCD=$P(Y,U,2),PRCSUB=$P(PRCX,"^"),PRCDESC=$P(PRCX,"^",3)
  1. . S DR=".02///^S X=PRCDESC;.03///^S X=PRCSUB;.05///^S X=1;.06///^S X=1;.07///^S X=PRCSUB_PRCCD"
  1. . D ^DIE
  1. . D MES^XPDUTL("Updating Authority of Request Code "_PRCCD_PRCSUB_" - "_PRCDESC)
  1. D MES^XPDUTL(""),BMES^XPDUTL("**Update of Authority of Request File completed**")
  1. K DIC,X,Y
  1. Q
  1. ADD ;;
  1. ;;3^Q^FRANCHISE FUND: VTP Claims
  1. ;;QUIT
  1. ERR ;File add messed up!!
  1. ;
  1. CLEAN1 ;Cleanse (FILE 442) fiscal signed receipts transmitted, but not filed correctly.
  1. N PRCIEN,PRCPART,PRCRECPT,PRCTOT
  1. K ^XTMP("PRCF223P")
  1. S ^XTMP("PRCF223P",0)=$$FMADD^XLFDT(DT,90)_"^"_DT
  1. S ^XTMP("PRCF223P",$J,0)="0"
  1. S (PRCIEN,PRCTOT)=0
  1. A S PRCIEN=$O(^PRC(442,PRCIEN)),PRCPART=0 I 'PRCIEN G ZZ
  1. A1 S PRCPART=$O(^PRC(442,PRCIEN,11,PRCPART)) I 'PRCPART G A
  1. S PRCRECPT=$G(^PRC(442,PRCIEN,11,PRCPART,0)) Q:PRCRECPT=""
  1. I $P(PRCRECPT,U,19)'["RR" G A1
  1. I $P(PRCRECPT,U,6)'="" G A1
  1. S ^XTMP("PRCF223P",$J,1,PRCIEN,11,PRCPART,0)=PRCRECPT,PRCTOT=PRCTOT+1
  1. S $P(^PRC(442,PRCIEN,11,PRCPART,0),U,6)="Y"
  1. ;W !!,PRCIEN,?12,$P(^PRC(442,PRCIEN,0),U),!,PRCRECPT
  1. G A1
  1. ZZ S ^XTMP("PRCF223P",$J,1,0)=PRCTOT
  1. D MES^XPDUTL(""),BMES^XPDUTL("**Cleansing of Receiving Report completed: "_PRCTOT_" RESETS **")
  1. Q
  1. SETAO ;Set 'AO' index for invalid sets in file 410, field 4 from routine PRCSEB
  1. N PRCSIEN,PRCTOT
  1. B S (PRCSIEN,PRCTOT)=0
  1. B1 S PRCSIEN=$O(^PRCS(410,PRCSIEN)) G BQ:'PRCSIEN
  1. S PRCSIP=$P($G(^PRCS(410,PRCSIEN,0)),U,6) G:'PRCSIP B1
  1. I $D(^PRCS(410,"AO",PRCSIP,PRCSIEN)) G B1
  1. S ^PRCS(410,"AO",PRCSIP,PRCSIEN)="",^XTMP("PRCF223P",$J,2,PRCSIEN,0)=PRCSIP
  1. ;W !,PRCSIEN,?15,PRCSIP
  1. S PRCTOT=PRCTOT+1
  1. G B1
  1. BQ S ^XTMP("PRCF223P",$J,2,0)=PRCTOT
  1. D MES^XPDUTL(""),BMES^XPDUTL("** File 410, 'AO' index reset completed: "_PRCTOT_" RESETS **")
  1. Q