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

PRCAI103.m

Go to the documentation of this file.
  1. PRCAI103 ;WISC/RFJ-post init patch 103 ;1 Mar 97
  1. ;;4.5;Accounts Receivable;**103**;Mar 20, 1995
  1. ;;Per VHA Directive 10-93-142, this routine should not be modified.
  1. Q
  1. ;
  1. ;
  1. START ; start post init
  1. N DATA3,DATE,TRANDA
  1. ; for exempt int/adm charge transactions (entry = 14)
  1. S DATE=0 F S DATE=$O(^PRCA(433,"AT",14,DATE)) Q:'DATE D
  1. . S TRANDA=0 F S TRANDA=$O(^PRCA(433,"AT",14,DATE,TRANDA)) Q:'TRANDA D
  1. . . L +^PRCA(433,TRANDA)
  1. . . ;
  1. . . S DATA3=$G(^PRCA(433,TRANDA,3))
  1. . . ; if there is interest collected (field 32),
  1. . . ; move to interest charge (field 27)
  1. . . I $P(DATA3,"^",2) D
  1. . . . S $P(^PRCA(433,TRANDA,2),"^",7)=$P(DATA3,"^",2)
  1. . . . S $P(^PRCA(433,TRANDA,3),"^",2)=""
  1. . . ; if there is admin collected (field 33),
  1. . . ; move to admin charge (field 28)
  1. . . I $P(DATA3,"^",3) D
  1. . . . S $P(^PRCA(433,TRANDA,2),"^",8)=$P(DATA3,"^",3)
  1. . . . S $P(^PRCA(433,TRANDA,3),"^",3)=""
  1. . . ;
  1. . . L -^PRCA(433,TRANDA)
  1. ;
  1. ; if the patch is installed after the 20th of the month
  1. ; send the responses to the messages which will be deleted
  1. ; on the first of the month (by routine RCRJR)
  1. I $E(DT,6,7)>20 D CLEANXMB^RCRJR
  1. Q