Skip to content

Commit 9152dda

Browse files
authored
Cleanup for Indirect for Finacne Fee Calculation (#1364)
Finish and ready for deployment to production
1 parent 8e4bd7c commit 9152dda

3 files changed

Lines changed: 39 additions & 46 deletions

File tree

onprc_billing/resources/etls/OGASycn2020Admin.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<transform id="OGASync">
1010
<description>Import to OGA Sync in Prime</description>
1111
<source queryName="ogaSourceOutPut" schemaName="OGA"/>
12-
<destination queryName="ogasynch" schemaName="ONPRC_billing" targetOption="truncate"/>
12+
<destination queryName="ogasynchNew" schemaName="ONPRC_billing" targetOption="truncate"/>
1313
</transform>
1414
<!--This removes all records from aliases dataset that are not OHSU GL Category -->
1515
<transform id="OGA_Remove" type="StoredProcedure">

onprc_billing/resources/queries/oga/ogaSouceOutPut.sql

Lines changed: 0 additions & 45 deletions
This file was deleted.
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
SELECT ogasynch.lastIndexed,
2+
ogasynch.modifiedBy,
3+
ogasynch.container,
4+
ogasynch.modified,
5+
ogasynch.created,
6+
ogasynch.createdBy,
7+
/* ogasynch."ADFM EMP NUM",
8+
ogasynch."ADFM FULL NAME",
9+
ogasynch."ADFM LAST NAME",
10+
ogasynch."ADFM FIRST NAME",
11+
ogasynch."PI EMP NUM",
12+
ogasynch."PI FULL NAME",
13+
ogasynch."PI LAST NAME",
14+
ogasynch."PI FIRST NAME",
15+
ogasynch."PDFM EMP NUM",
16+
ogasynch."PDFM FULL NAME",
17+
ogasynch."PDFM LAST NAME",
18+
ogasynch."PDFM FIRST NAME",*/
19+
ogasynch."AGENCY AWARD NUMBER",
20+
ogasynch."OGA AWARD NUMBER",
21+
ogasynch."OGA AWARD TYPE",
22+
ogasynch."OGA PROJECT NUMBER",
23+
ogasynch.ALIAS,
24+
ogasynch."ALIAS ENABLED FLAG",
25+
ogasynch."ALIAS ENABLED FLAG_MVIndicator",
26+
27+
ogasynch.faRate,
28+
ogasynch.Key,
29+
ogasynch.ORIGINATING_AGENCY_AWARD_NUM,
30+
ogasynch.oga_award_start_Date,
31+
ogasynch.oga_award_end_date,
32+
ir.IndirectRate AS IndirectRate -- Retrieve from the `indirectRate` tab
33+
/* Case When ogasynch.oga_award_start_Date >= '2024-07-01' then .475
34+
else .47
35+
End as IndirectRate
36+
*/
37+
FROM ogasynch LEFT JOIN indirectRates ir
38+
ON ogasynch.oga_award_start_Date BETWEEN ir.StartDate AND ir.EndDate

0 commit comments

Comments
 (0)