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

BARPT172.m

Go to the documentation of this file.
  1. BARPT172 ; IHS/SD/LSL - Post init for V1.7 Patch 2 ;
  1. ;;1.8;IHS ACCOUNTS RECEIVABLE;;OCT 26, 2005
  1. ;
  1. Q
  1. ; *********************************************************************
  1. ;
  1. EN ; EP - Driver
  1. D PRVPATCH ; Check to see if previous patches installed
  1. D PATCH2 ; Post init for V1.7 Patch 2
  1. D MAIL ; Send MailMan message
  1. Q
  1. ; *********************************************************************
  1. ;
  1. PRVPATCH ;
  1. ; Check previous patch post inits
  1. N BARP1
  1. S BARP1=$$INSTALLD^BAREV17("BAR*1.7*1")
  1. I BARP1 Q ; All previous patches installed
  1. D PATCH1 ; Perform Patch 1 post inits.
  1. Q
  1. ; ********************************************************************
  1. PATCH1 ;
  1. ; Patch 1 post init
  1. ; Delete A/R Period Summary Data File data
  1. W !!,"You are missing A/R V1.7 Patch 1...performing POST INITS of that patch"
  1. S DIK="^BARPSR("
  1. S DA=0
  1. F S DA=$O(^BARPSR(DA)) Q:'+DA D ^DIK
  1. K DA,DIK
  1. ;
  1. ; Delete the A/R Period Summary Data File Data Dictionary
  1. S DIU="^BARPSR("
  1. S DIU(0)="DT"
  1. D EN^DIU2
  1. K DIU
  1. W !!,"A/R V1.7 Patch 1 POST INIT complete"
  1. Q
  1. ; *********************************************************************
  1. ;
  1. PATCH2 ;
  1. ; Patch 2 post init
  1. W !!,"Now performing A/R V1.7 Patch 2 post inits..."
  1. S BARDUZ=DUZ(2)
  1. D CURBAL
  1. D PATACC
  1. D EISS
  1. S DUZ(2)=BARDUZ
  1. Q
  1. ; ********************************************************************
  1. ;
  1. CURBAL ;
  1. ; Rebuild ABAL and APBAL x-refs on field 15 of file 90050.01
  1. W !!,"Rebuilding ABAL and APBAL x-refs on Current Balance of A/R Bill File..."
  1. S DUZ(2)=0
  1. F S DUZ(2)=$O(^BARBL(DUZ(2))) Q:'+DUZ(2) D
  1. . F BARX="ABAL","APBAL" D
  1. . . K ^BARBL(DUZ(2),BARX)
  1. . . S DIK="^BARBL(DUZ(2),"
  1. . . S DIK(1)="15^"_BARX
  1. . D ENALL^DIK
  1. W "DONE."
  1. Q
  1. ; ********************************************************************
  1. ;
  1. PATACC ;
  1. ; Create PAS x-ref on field 101 of file 90050.02
  1. W !!,"Creating PAS x-ref on Pat Acct Stmt of A/R Account File..."
  1. S DUZ(2)=0
  1. F S DUZ(2)=$O(^BARAC(DUZ(2))) Q:'+DUZ(2) D
  1. . K ^BARAC(DUZ(2),"PAS")
  1. . S DIK="^BARAC(DUZ(2),"
  1. . S DIK(1)="101^PAS"
  1. . D ENALL^DIK
  1. W "DONE."
  1. Q
  1. ; ********************************************************************
  1. ;
  1. EISS ;
  1. ; Populate EISS fields in file 90052.06
  1. W !!,"Populating EISS System Address, Username, and Password fields"
  1. W !,"in A/R Site Parameter File..."
  1. S DUZ(2)=0
  1. F S DUZ(2)=$O(^BAR(90052.06,DUZ(2))) Q:'+DUZ(2) D
  1. . S DIE="^BAR(90052.06,DUZ(2),"
  1. . S DA=0
  1. . F S DA=$O(^BAR(90052.06,DUZ(2),DA)) Q:'+DA D
  1. . . K DR
  1. . . S DR="201///127.0.0.1"
  1. . . S DR=DR_";202///bardata"
  1. . . S DR=DR_";203///1bardat/"
  1. . . D ^DIE
  1. K DA,DIE,DR
  1. W "DONE."
  1. Q
  1. ; ********************************************************************
  1. ;
  1. MAIL ;
  1. ; Send a mail message to all holders of the BARZMENU key that a patch
  1. ; has been installed on the system.
  1. ;
  1. W !!,"Sending MailMan message to users..."
  1. D MAILSET
  1. D MAILTXT
  1. D MAILMSG
  1. W " DONE"
  1. Q
  1. ; *********************************************************************
  1. ;
  1. MAILSET ;
  1. ; Set Mailman Variables
  1. K XMY
  1. S XMSUB="Accounts Receivable V1.7 Patch 2"
  1. S XMDUZ="Accounts Receivable Software Engineer"
  1. D MAILIST ; Get list of recipients
  1. Q
  1. ; *********************************************************************
  1. ;
  1. MAILIST ;
  1. ; Find users who hold the BARZMENU key
  1. ;S XMY("STAR,GLEN R")=""
  1. S J=0
  1. F S J=$O(^XUSEC("BARZMENU",J)) Q:'J D
  1. . S BARNAME=$P($G(^VA(200,J,0)),U)
  1. . S XMY(BARNAME)=""
  1. Q
  1. ; *********************************************************************
  1. ;
  1. MAILTXT ;
  1. S K=0
  1. F D Q:BARTXT="END"
  1. . S K=K+1
  1. . S BARTXT=$P($T(@1+K),";;",2)
  1. . I BARTXT="END" Q
  1. . S BARMSG(K,0)=BARTXT
  1. S XMTEXT="BARMSG("
  1. S %H=$H
  1. D YX^%DTC
  1. Q
  1. ; *********************************************************************
  1. ;
  1. MAILMSG ;
  1. D ^XMD
  1. K BARMSG
  1. Q
  1. ; *********************************************************************
  1. ;
  1. 1 ;;
  1. ;;Accounts Receivable V1.7 Patch 2 has been installed on your
  1. ;;computer. You have received this message because you hold the BARZMENU
  1. ;;key that allows access to the Accounts Receivable Master Menu.
  1. ;;
  1. ;;Accounts Receivable V1.7 Patch 2 contains:
  1. ;;
  1. ;;1. Enhancements of two reports allowing EISS capability:
  1. ;; 1. Period Summary Report (PSR)
  1. ;; 2. Age Summary Report (ASM)
  1. ;; When selecting these reports by Allowance Category, all categories,
  1. ;; summary report; a file of the report data will automatically get
  1. ;; created on the EISS directory and sent to the ARMS Server where
  1. ;; the intranet can find it for WEB display.
  1. ;;
  1. ;;2. Resolution of four known errors:
  1. ;; 1. Period Summary Report
  1. ;; Resolved error caused by missing Billing Entities
  1. ;; 2. Transaction Report
  1. ;; Removed Collection Batch to Account Post transaction type (115) from
  1. ;; the payment column of the report.
  1. ;; 3. Post Unallocated Cash
  1. ;; Resolved error seen when user is editing a line item during the posting
  1. ;; process.
  1. ;; 4. FM Search and Print or Sort and Print from AR Manager
  1. ;; Improve screen allowing access to specific files.
  1. ;;END