[613] | 1 | PRC5B ;WISC/PLT-IFCAP post install routine defined in package file ; 03/14/95 11:45 AM
|
---|
| 2 | V ;;5.0;IFCAP;**27**;4/21/95
|
---|
| 3 | ;
|
---|
| 4 | ;invoke by the post initial installation field of package file.
|
---|
| 5 | EN ;called from routine prcinit
|
---|
| 6 | D EN^DDIOL("IFCAP POST-INITIALIZATION STARTS at "_$$NOW^PRC5A)
|
---|
| 7 | D:PRCIVER<5
|
---|
| 8 | . D ^PRCOSRV8 ;update 423.5, .01 field with 'FMS-'
|
---|
| 9 | . D ALD^PRC5B1 ;move name to ald field for file 420.3
|
---|
| 10 | . D CC^PRC5B3 ;deactivate subcost centers
|
---|
| 11 | D EN^DDIOL("IFCAP POST-INITIALIZATION ENDS at "_$$NOW^PRC5A)
|
---|
| 12 | QUIT
|
---|
| 13 | ;
|
---|
| 14 | EN2 ;called from ifcap v5 installation 'PRC5PKG' option '2'
|
---|
| 15 | D EN^DDIOL("IFCAP V5 INSTALLATION 'Option 2' STARTS at "_$$NOW^PRC5A)
|
---|
| 16 | D:PRCIVER<5
|
---|
| 17 | . D FND^PRC5B1 ;convert fms FND document (add fund code in file 420.3)
|
---|
| 18 | . D PCL^PRC5B1 ;convert fms PCL document (set-up program dic)
|
---|
| 19 | . D PAC^PRC5B1 ;convert fms ACC document (set-up fcp/prj dic)
|
---|
| 20 | D:PRCIVER<5&PRCIVER
|
---|
| 21 | . D CPF^PRC5B1 ;convert fms CPF document
|
---|
| 22 | . D EN2^PRC5B6 ;converting posted current qtr IB txn in file 410
|
---|
| 23 | . N L,DIC,FLDS,BY,FR,TO,DHD
|
---|
| 24 | . D EN^DDIOL("Print FCP ACCOUNTING ELEMENTS LIST")
|
---|
| 25 | . S L=0,DIC=420,FLDS="[PRCB CPF ACC ELEMENT]" D EN1^DIP
|
---|
| 26 | . D EN^DDIOL("Ask Fiscal Service to check the FCP ACCOUNTING ELEMENTS LIST for each Fund Control Point with the Cross-walk Table.")
|
---|
| 27 | .D EN^DDIOL("Your Accounting Elements should match your Cross-walk Table.")
|
---|
| 28 | . D EN^DDIOL("Note: You can not run Option 3 or 4 if your site has an active SUPPLY FUND Control Point but the FCP Accounting Elements are missing or incorrect.")
|
---|
| 29 | . D EN^DDIOL("You also can not run Option 3 or 4 if you have an active GPF Control Point and your FCP Accounting Elements List does not show a 'GPF FMS CONVERSION' Fund Control Point.")
|
---|
| 30 | . I $$SPFCP^PRC5B7]"" QUIT
|
---|
| 31 | . QUIT
|
---|
| 32 | S PRCRI(420.92)=$O(^PRCU(420.92,"B",PRCFIXV,"")) D:PRCRI(420.92)
|
---|
| 33 | . D EDIT^PRC0B(.X,"420.92;^PRCU(420.92,;"_PRCRI(420.92),"2.7///^S X=""N""","LS")
|
---|
| 34 | D EN^DDIOL("IFCAP V5 INSTALLATION 'Option 2' ENDS at "_$$NOW^PRC5A)
|
---|
| 35 | QUIT
|
---|
| 36 | ;
|
---|
| 37 | EN3 ;called from ifcap v5 installation 'PRC5PKG' option '3'
|
---|
| 38 | I $$SPFCP^PRC5B7]"" QUIT
|
---|
| 39 | D EN^DDIOL("IFCAP V5 INSTALLATION 'Option 3' STARTS at "_$$NOW^PRC5A)
|
---|
| 40 | S PRCRI(420.92)=$O(^PRCU(420.92,"B",PRCFIXV,"")) D:PRCRI(420.92)
|
---|
| 41 | . D EDIT^PRC0B(.X,"420.92;^PRCU(420.92,;"_PRCRI(420.92),"2///^S X=""N"";2.5///^S X=""@""","LS")
|
---|
| 42 | . QUIT
|
---|
| 43 | D ^PRCFOOR1 ;recalculate all FCP and snap shot fcp balance
|
---|
| 44 | D FCPFY^PRC5B7 ;delete all fcp fiscal yearly account elements
|
---|
| 45 | D CEIL96^PRC5B7 ;reset 1-4 qtr code sheet generated flags in file 421
|
---|
| 46 | S PRCRI(420.92)=$O(^PRCU(420.92,"B",PRCFIXV,"")) D:PRCRI(420.92)
|
---|
| 47 | . D EDIT^PRC0B(.X,"420.92;^PRCU(420.92,;"_PRCRI(420.92),"2.5///^S X=""N""","LS")
|
---|
| 48 | . QUIT
|
---|
| 49 | D
|
---|
| 50 | . N L,DIC,FLDS,BY,FR,TO,DHD
|
---|
| 51 | . D EN^DDIOL("Print SNAP SHOT FCP BALANCE")
|
---|
| 52 | . S L=0,DIC=420.99,FLDS=".01,1;""DATE"",2.5;""QTR"",2;""FCP BAL"",9" D EN1^DIP
|
---|
| 53 | . QUIT
|
---|
| 54 | D EN^DDIOL("IFCAP V5 INSTALLATION 'Option 3' ENDS at "_$$NOW^PRC5A)
|
---|
| 55 | QUIT
|
---|
| 56 | EN4 ;FILLE 442 conversion called from PRC5PKG option 4
|
---|
| 57 | I $$SPFCP^PRC5B7]"" QUIT
|
---|
| 58 | D EN^DDIOL("IFCAP V5 INSTALLATION 'Option 4' STARTS at "_$$NOW^PRC5A)
|
---|
| 59 | D START^PRC5B7("ALL")
|
---|
| 60 | D EN442
|
---|
| 61 | D EN^DDIOL("IFCAP V5 INSTALLATION 'Option 4' ENDS at "_$$NOW^PRC5A)
|
---|
| 62 | D EN^DDIOL("This is the last installation option you just finished.")
|
---|
| 63 | I PRCQ21=1 D EN^DDIOL("Check file 442 conversion task is running.")
|
---|
| 64 | QUIT
|
---|
| 65 | ;
|
---|
| 66 | I PRCQ21=1 D QUIT
|
---|
| 67 | EN442 N PRCDUZ
|
---|
| 68 | S PRCDUZ=DUZ
|
---|
| 69 | I PRCQ21=1 D QUIT
|
---|
| 70 | . D EN^DDIOL("IFCAP V5 FILE 442 CONVERSION SUBMITTED TO TASK MANAGER AT "_$$NOW^PRC5A)
|
---|
| 71 | . S A=$$TASK^PRC0B2("LOOP^PRCHPRCV~IFCAP V5 FILE 442 CONVERSION","PRCDUZ","")
|
---|
| 72 | . D EN^DDIOL("IFCAP V5 FILE 442 CONVERSION HAS TASK NUMBER "_$P(A,"^"))
|
---|
| 73 | . QUIT
|
---|
| 74 | D LOOP^PRCHPRCV
|
---|
| 75 | QUIT
|
---|
| 76 | ;
|
---|
| 77 | MM442 ;send conversion done message
|
---|
| 78 | N A,B,X,Y
|
---|
| 79 | S (A,B)=0 F S B=$O(^GECS(2100.1,B)) QUIT:'B S A=A+1
|
---|
| 80 | S X(1)="IFCAP V5 file 442 conversion done. Total FMS documents = "_A
|
---|
| 81 | S Y(.5)="",Y(PRCDUZ)="",Y("G.CSFISMGMT@FORUM.VA.GOV")=""
|
---|
| 82 | D MM^PRC0B2("IFCAP V5 FILE 442 CONVERSION DONE^IFCAP V5 Installer","X(",.Y)
|
---|
| 83 | K PRCDUZ
|
---|
| 84 | QUIT
|
---|