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

PRCAP381.m

Go to the documentation of this file.
  1. PRCAP381 ;EDE/SAB - PRCA*4.5*381 POST INSTALL; 12/04/20
  1. ;;4.5;Accounts Receivable;**381**;Mar 20, 1995;Build 28
  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*381")
  1. ;
  1. ; Update the ATCS? field in Repayment Plans
  1. D ATCS
  1. ;
  1. D BMES^XPDUTL(" >> End of the Post-Installation routine for PRCA*4.5*381")
  1. Q
  1. ;
  1. ATCS ; review plans and update the AT CS flag associated with the plans.
  1. ;
  1. D BMES^XPDUTL(" >> Reviewing the Repayment Plans Cross Servicing Flags")
  1. ;
  1. N RCATCS,RCCSDT,RCCSRCDT,RCDATA,RCDBTR,RCIEN
  1. ;
  1. S RCDBTR=0
  1. F S RCDBTR=$O(^RCRP(340.5,"E",RCDBTR)) Q:'RCDBTR D
  1. . S RCIEN=0
  1. . S RCATCS=0
  1. . F S RCIEN=$O(^RCRP(340.5,"E",RCDBTR,RCIEN)) Q:'RCIEN D Q:RCATCS
  1. . . S RCSTAT=$$GET1^DIQ(340.5,RCIEN_",",.07,"I")
  1. . . Q:RCSTAT>5
  1. . . S (RCBILLDA,RCATCS)=0
  1. . . ;Loop through all of the bills a Debtor has.
  1. . . F S RCBILLDA=$O(^PRCA(430,"C",RCDBTR,RCBILLDA)) Q:'RCBILLDA D Q:RCATCS
  1. . . . S RCCSDT=+$$GET1^DIQ(430,RCBILLDA_",",151,"I") ; get CS Date referral date
  1. . . . S RCCSRCDT=+$$GET1^DIQ(430,RCBILLDA_",",153,"I") ; get CS Recall date
  1. . . . Q:'RCCSDT ; Plan not at cross servicing
  1. . . . Q:RCCSRCDT ; Plan was at Cross Servicing but is now recalled.
  1. . . . S RCATCS=1
  1. . . ;W RCIEN," - ",RCATCS,!
  1. . . ;
  1. . . ;Update the field.
  1. . . D UPDATCS^RCRPU2(RCIEN,RCATCS)
  1. D BMES^XPDUTL(" >> Review and updates if necessary of the Repayment Plans Cross Servicing Flags is completed.")
  1. ;
  1. Q