Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(FN-3813): remove adjustment columns from keying sheet #4220

Merged
merged 19 commits into from
Feb 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
af28272
feat(FN-3813): remove facility utilisation data id update from facili…
RLavender98 Feb 6, 2025
dff3d37
feat(FN-3813): remove adjustment columns from templates
RLavender98 Feb 6, 2025
c068bbf
feat(FN-3813): remove component tests for adjustment columns
RLavender98 Feb 6, 2025
7ea96fd
feat(FN-3813): do not set adjustments in view model
RLavender98 Feb 6, 2025
e69097b
feat(FN-3813): remove adjustments from tfm-api response type
RLavender98 Feb 6, 2025
5ddf782
feat(FN-3813): remove adjustments from keying sheet response
RLavender98 Feb 11, 2025
de0a5a8
feat(FN-3813): remove facility utilisation data initialisation on rep…
RLavender98 Feb 11, 2025
83b69a3
feat(FN-3813): remove adjustment calculations and saving from keying …
RLavender98 Feb 11, 2025
e0a12db
feat(FN-3813): remove facility utilisation data entities
RLavender98 Feb 12, 2025
6bc7c74
feat(FN-3813): remove remaining usages of FacilityUtilisationDataEntity
RLavender98 Feb 12, 2025
ebadb0f
feat(FN-3813): update generate keying data e2e-tests
RLavender98 Feb 12, 2025
4e32a1b
feat(FN-3813): update copy to remove word adjustments
RLavender98 Feb 12, 2025
661a779
feat(FN-3813): remove remaining adjustment references
RLavender98 Feb 12, 2025
e4c7dad
feat(FN-3813): add migration for removing unused columns
RLavender98 Feb 12, 2025
b83420d
Merge branch 'main' into feat/FN-3813/remove-adjustments-from-keying-…
RLavender98 Feb 12, 2025
7b4911c
feat(FN-3813): update missed tests
RLavender98 Feb 12, 2025
15808e5
feat(FN-3813): remove command for removed script
RLavender98 Feb 12, 2025
7b11abd
feat(FN-3813): update fee record state machine diagram
RLavender98 Feb 12, 2025
f1b6478
feat(FN-3813): fix flaky test
RLavender98 Feb 14, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
99 changes: 20 additions & 79 deletions doc/assets/fee-record-state-machine.drawio
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<mxfile host="Electron" modified="2025-02-04T23:09:33.748Z" agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/22.1.2 Chrome/114.0.5735.289 Electron/25.9.4 Safari/537.36" etag="wT_0s43O1JZI1VAOLGQM" version="22.1.2" type="device">
<mxfile host="app.diagrams.net" modified="2025-02-12T15:31:34.388Z" agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36" etag="F-QHsgjFR38F4n5wTpmw" version="24.3.0" type="device">
<diagram name="Page-1" id="NJPWzTDh_QYS_qL_PLhn">
<mxGraphModel dx="1536" dy="2183" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0">
<mxGraphModel dx="2074" dy="2348" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0">
<root>
<mxCell id="0" />
<mxCell id="1" parent="0" />
Expand Down Expand Up @@ -185,8 +185,8 @@
<mxPoint x="52.39000000000004" y="-526.25" as="targetPoint" />
<mxPoint x="607.8899999999999" y="-690" as="sourcePoint" />
<Array as="points">
<mxPoint x="723" y="-270" />
<mxPoint x="109" y="-270" />
<mxPoint x="723" y="-380" />
<mxPoint x="109" y="-380" />
</Array>
</mxGeometry>
</mxCell>
Expand All @@ -198,9 +198,8 @@
<mxCell id="Gj9VxU12owduN0ynIQGK-91" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=1;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" parent="1" source="Gj9VxU12owduN0ynIQGK-35" target="Gj9VxU12owduN0ynIQGK-4" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="778" y="-640" />
<mxPoint x="778" y="-240" />
<mxPoint x="10" y="-240" />
<mxPoint x="778" y="-340" />
<mxPoint x="10" y="-340" />
<mxPoint x="10" y="-1006" />
</Array>
</mxGeometry>
Expand All @@ -213,9 +212,6 @@
<mxCell id="Gj9VxU12owduN0ynIQGK-35" value="&lt;font style=&quot;font-size: 10px;&quot;&gt;HAS&lt;br&gt;CORRECTIONS?&lt;br&gt;&lt;/font&gt;" style="rhombus;whiteSpace=wrap;html=1;labelBackgroundColor=none;fillColor=#CCCCCC;fontColor=default;" parent="1" vertex="1">
<mxGeometry x="695.9299999999998" y="-790" width="110" height="110" as="geometry" />
</mxCell>
<mxCell id="Gj9VxU12owduN0ynIQGK-49" value="* A fee record can be auto-reconciled if all of the following are true:&lt;br&gt;&lt;br&gt;- Fees paid to UKEF for the period is zero&lt;br&gt;- Fixed fee adjustment is zero&lt;br&gt;- Principal balance adjustment is zero" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=top;whiteSpace=wrap;rounded=0;" parent="1" vertex="1">
<mxGeometry x="340" y="-180" width="447" height="110" as="geometry" />
</mxCell>
<mxCell id="Gj9VxU12owduN0ynIQGK-57" value="" style="endArrow=classic;html=1;rounded=0;exitX=1;exitY=0.5;exitDx=0;exitDy=0;edgeStyle=orthogonalEdgeStyle;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" parent="1" source="Gj9VxU12owduN0ynIQGK-79" target="Gj9VxU12owduN0ynIQGK-35" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="430" y="-806.875" as="sourcePoint" />
Expand Down Expand Up @@ -308,83 +304,26 @@
<mxGeometry x="540" y="-923" width="110" height="110" as="geometry" />
</mxCell>
<mxCell id="Gj9VxU12owduN0ynIQGK-93" value="&lt;font color=&quot;#6600cc&quot;&gt;READY TO KEY&lt;/font&gt;" style="html=1;align=center;verticalAlign=middle;rounded=1;absoluteArcSize=1;arcSize=10;dashed=0;whiteSpace=wrap;" parent="1" vertex="1">
<mxGeometry x="245.5" y="-407.5" width="120" height="67.5" as="geometry" />
<mxGeometry x="200" y="-490" width="120" height="67.5" as="geometry" />
</mxCell>
<mxCell id="Gj9VxU12owduN0ynIQGK-94" value="&lt;font color=&quot;#6600cc&quot;&gt;RECONCILED&lt;/font&gt;" style="html=1;align=center;verticalAlign=middle;rounded=1;absoluteArcSize=1;arcSize=10;dashed=0;whiteSpace=wrap;" parent="1" vertex="1">
<mxGeometry x="490.50000000000045" y="-407.5" width="120" height="67.5" as="geometry" />
<mxGeometry x="445.00000000000045" y="-490" width="120" height="67.5" as="geometry" />
</mxCell>
<mxCell id="Gj9VxU12owduN0ynIQGK-99" value="&lt;font style=&quot;font-size: 10px;&quot;&gt;IS FINAL FEE&lt;br&gt;RECORD FOR&lt;br&gt;FACILITY?&lt;br&gt;&lt;/font&gt;" style="rhombus;whiteSpace=wrap;html=1;labelBackgroundColor=none;fillColor=#CCCCCC;fontColor=default;" parent="1" vertex="1">
<mxCell id="Gj9VxU12owduN0ynIQGK-99" value="&lt;font style=&quot;font-size: 10px;&quot;&gt;ZERO FEES&lt;br&gt;PAID FOR&lt;br&gt;PERIOD?&lt;/font&gt;" style="rhombus;whiteSpace=wrap;html=1;labelBackgroundColor=none;fillColor=#CCCCCC;fontColor=default;" parent="1" vertex="1">
<mxGeometry x="329" y="-610" width="110" height="110" as="geometry" />
</mxCell>
<mxCell id="Gj9VxU12owduN0ynIQGK-100" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0;exitY=1;exitDx=0;exitDy=0;entryX=1;entryY=0.5;entryDx=0;entryDy=0;" parent="1" source="Gj9VxU12owduN0ynIQGK-104" target="Gj9VxU12owduN0ynIQGK-94" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="181" y="-300" />
<mxPoint x="679" y="-300" />
<mxPoint x="679" y="-374" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="Gj9VxU12owduN0ynIQGK-101" value="YES" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" parent="Gj9VxU12owduN0ynIQGK-100" vertex="1" connectable="0">
<mxGeometry x="-0.8667" relative="1" as="geometry">
<mxPoint x="-2" y="-12" as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="Gj9VxU12owduN0ynIQGK-102" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" parent="1" source="Gj9VxU12owduN0ynIQGK-104" target="Gj9VxU12owduN0ynIQGK-93" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="236" y="-460" />
<mxPoint x="306" y="-460" />
<mxPoint x="306" y="-407" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="Gj9VxU12owduN0ynIQGK-103" value="NO" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" parent="Gj9VxU12owduN0ynIQGK-102" vertex="1" connectable="0">
<mxGeometry x="-0.8076" relative="1" as="geometry">
<mxPoint y="27" as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="Gj9VxU12owduN0ynIQGK-104" value="&lt;font style=&quot;font-size: 10px;&quot;&gt;ZERO FEES &lt;br&gt;PAID FOR&lt;br&gt;PERIOD?&lt;br&gt;&lt;/font&gt;" style="rhombus;whiteSpace=wrap;html=1;labelBackgroundColor=none;fillColor=#CCCCCC;fontColor=default;verticalAlign=middle;" parent="1" vertex="1">
<mxGeometry x="153.43000000000006" y="-610" width="110" height="110" as="geometry" />
</mxCell>
<mxCell id="Gj9VxU12owduN0ynIQGK-105" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=1;entryY=0.5;entryDx=0;entryDy=0;" parent="1" source="Gj9VxU12owduN0ynIQGK-109" target="Gj9VxU12owduN0ynIQGK-94" edge="1">
<mxCell id="Gj9VxU12owduN0ynIQGK-95" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" parent="1" source="Gj9VxU12owduN0ynIQGK-99" target="Gj9VxU12owduN0ynIQGK-93" edge="1">
<mxGeometry relative="1" as="geometry">
<mxPoint x="250" y="-415" as="targetPoint" />
<mxPoint x="289" y="-550" as="sourcePoint" />
<Array as="points">
<mxPoint x="679" y="-555" />
<mxPoint x="679" y="-374" />
<mxPoint x="260" y="-555" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="Gj9VxU12owduN0ynIQGK-106" value="YES" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" parent="Gj9VxU12owduN0ynIQGK-105" vertex="1" connectable="0">
<mxGeometry x="-0.9004" relative="1" as="geometry">
<mxPoint x="8" as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="Gj9VxU12owduN0ynIQGK-107" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" parent="1" source="Gj9VxU12owduN0ynIQGK-109" target="Gj9VxU12owduN0ynIQGK-93" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="574" y="-460" />
<mxPoint x="306" y="-460" />
<mxPoint x="306" y="-407" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="Gj9VxU12owduN0ynIQGK-108" value="NO" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" parent="Gj9VxU12owduN0ynIQGK-107" vertex="1" connectable="0">
<mxGeometry x="-0.1506" y="-1" relative="1" as="geometry">
<mxPoint x="113" y="-20" as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="Gj9VxU12owduN0ynIQGK-109" value="&lt;font style=&quot;font-size: 10px;&quot;&gt;CAN FEE&lt;br&gt;RECORD BE AUTO-RECONCILED?*&lt;br&gt;&lt;/font&gt;" style="rhombus;whiteSpace=wrap;html=1;labelBackgroundColor=none;fillColor=#CCCCCC;fontColor=default;verticalAlign=middle;" parent="1" vertex="1">
<mxGeometry x="519" y="-610" width="110" height="110" as="geometry" />
</mxCell>
<mxCell id="Gj9VxU12owduN0ynIQGK-95" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=1;entryY=0.5;entryDx=0;entryDy=0;" parent="1" source="Gj9VxU12owduN0ynIQGK-99" target="Gj9VxU12owduN0ynIQGK-104" edge="1">
<mxGeometry relative="1" as="geometry">
<mxPoint x="374" y="-238.75" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="Gj9VxU12owduN0ynIQGK-96" value="NO" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" parent="Gj9VxU12owduN0ynIQGK-95" vertex="1" connectable="0">
<mxGeometry x="-0.726" y="-1" relative="1" as="geometry">
<mxPoint x="-12" y="1" as="offset" />
<mxPoint x="1" y="1" as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="Gj9VxU12owduN0ynIQGK-110" value="" style="endArrow=classic;html=1;rounded=0;exitX=1;exitY=0.25;exitDx=0;exitDy=0;edgeStyle=orthogonalEdgeStyle;entryX=0;entryY=0.25;entryDx=0;entryDy=0;" parent="1" source="Gj9VxU12owduN0ynIQGK-93" target="Gj9VxU12owduN0ynIQGK-94" edge="1">
Expand All @@ -398,12 +337,14 @@
<mxPoint x="5" y="-4" as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="Gj9VxU12owduN0ynIQGK-97" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" parent="1" source="Gj9VxU12owduN0ynIQGK-99" target="Gj9VxU12owduN0ynIQGK-109" edge="1">
<mxGeometry relative="1" as="geometry" />
<mxCell id="Gj9VxU12owduN0ynIQGK-97" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" parent="1" source="Gj9VxU12owduN0ynIQGK-99" target="Gj9VxU12owduN0ynIQGK-94" edge="1">
<mxGeometry relative="1" as="geometry">
<mxPoint x="550" y="-410" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="Gj9VxU12owduN0ynIQGK-98" value="YES" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" parent="Gj9VxU12owduN0ynIQGK-97" vertex="1" connectable="0">
<mxGeometry x="-0.2222" y="-2" relative="1" as="geometry">
<mxPoint x="-10" y="-2" as="offset" />
<mxPoint x="-33" y="-17" as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="Gj9VxU12owduN0ynIQGK-112" value="" style="endArrow=classic;html=1;rounded=0;edgeStyle=orthogonalEdgeStyle;entryX=1;entryY=0.75;entryDx=0;entryDy=0;exitX=0;exitY=0.75;exitDx=0;exitDy=0;" parent="1" source="Gj9VxU12owduN0ynIQGK-94" target="Gj9VxU12owduN0ynIQGK-93" edge="1">
Expand All @@ -418,7 +359,7 @@
</mxGeometry>
</mxCell>
<mxCell id="Gj9VxU12owduN0ynIQGK-116" value="" style="group" parent="1" vertex="1" connectable="0">
<mxGeometry x="10" y="-180" width="310" height="110" as="geometry" />
<mxGeometry x="10" y="-320" width="310" height="110" as="geometry" />
</mxCell>
<mxCell id="Gj9VxU12owduN0ynIQGK-117" value="KEY" style="rounded=0;whiteSpace=wrap;html=1;align=left;verticalAlign=top;spacingLeft=5;fontStyle=5" parent="Gj9VxU12owduN0ynIQGK-116" vertex="1">
<mxGeometry width="310" height="110" as="geometry" />
Expand Down
Binary file modified doc/assets/fee-record-state-machine.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 0 additions & 24 deletions dtfs-central-api/api-tests/sql-db-helper.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import {
AzureFileInfoEntity,
FacilityUtilisationDataEntity,
FeeRecordCorrectionEntity,
FeeRecordCorrectionRequestTransientFormDataEntity,
FeeRecordCorrectionTransientFormDataEntity,
Expand All @@ -17,7 +16,6 @@ type SqlTableName =
| 'FeeRecord'
| 'AzureFileInfo'
| 'Payment'
| 'FacilityUtilisationData'
| 'PaymentMatchingTolerance'
| 'FeeRecordCorrectionTransientFormData'
| 'FeeRecordCorrectionRequestTransientFormData'
Expand All @@ -37,9 +35,6 @@ const deleteAllEntries = async (tableName: SqlTableName): Promise<void> => {
case 'Payment':
await SqlDbDataSource.manager.delete(PaymentEntity, {});
return;
case 'FacilityUtilisationData':
await SqlDbDataSource.manager.delete(FacilityUtilisationDataEntity, {});
return;
case 'PaymentMatchingTolerance':
await SqlDbDataSource.manager.delete(PaymentMatchingToleranceEntity, {});
return;
Expand All @@ -62,7 +57,6 @@ const deleteAll = async (): Promise<void> => {
await deleteAllEntries('FeeRecord');
await deleteAllEntries('UtilisationReport');
await deleteAllEntries('AzureFileInfo');
await deleteAllEntries('FacilityUtilisationData');
await deleteAllEntries('PaymentMatchingTolerance');
await deleteAllEntries('FeeRecordCorrectionRequestTransientFormData');
await deleteAllEntries('FeeRecordCorrectionTransientFormData');
Expand All @@ -77,8 +71,6 @@ type Entity<TableName extends SqlTableName> = TableName extends 'UtilisationRepo
? AzureFileInfoEntity
: TableName extends 'Payment'
? PaymentEntity
: TableName extends 'FacilityUtilisationData'
? FacilityUtilisationDataEntity
: TableName extends 'PaymentMatchingTolerance'
? PaymentMatchingToleranceEntity
: TableName extends 'FeeRecordCorrection'
Expand All @@ -89,27 +81,16 @@ type Entity<TableName extends SqlTableName> = TableName extends 'UtilisationRepo
? FeeRecordCorrectionRequestTransientFormDataEntity
: never;

const saveFacilityUtilisationDataIfNotExists = async (facilityUtilisationData: FacilityUtilisationDataEntity): Promise<void> => {
const entityExists = await SqlDbDataSource.manager.existsBy(FacilityUtilisationDataEntity, { id: facilityUtilisationData.id });
if (entityExists) {
return;
}
await SqlDbDataSource.manager.save(FacilityUtilisationDataEntity, facilityUtilisationData);
};

const saveNewEntry = async <TableName extends SqlTableName>(tableName: TableName, entityToInsert: Entity<TableName>): Promise<Entity<TableName>> => {
switch (tableName) {
case 'UtilisationReport':
return (await SqlDbDataSource.manager.save(UtilisationReportEntity, entityToInsert as UtilisationReportEntity)) as Entity<TableName>;
case 'FeeRecord':
await saveFacilityUtilisationDataIfNotExists((entityToInsert as FeeRecordEntity).facilityUtilisationData);
return (await SqlDbDataSource.manager.save(FeeRecordEntity, entityToInsert as FeeRecordEntity)) as Entity<TableName>;
case 'AzureFileInfo':
return (await SqlDbDataSource.manager.save(AzureFileInfoEntity, entityToInsert as AzureFileInfoEntity)) as Entity<TableName>;
case 'Payment':
return (await SqlDbDataSource.manager.save(PaymentEntity, entityToInsert as PaymentEntity)) as Entity<TableName>;
case 'FacilityUtilisationData':
return (await SqlDbDataSource.manager.save(FacilityUtilisationDataEntity, entityToInsert as FacilityUtilisationDataEntity)) as Entity<TableName>;
case 'PaymentMatchingTolerance':
return (await SqlDbDataSource.manager.save(PaymentMatchingToleranceEntity, entityToInsert as PaymentMatchingToleranceEntity)) as Entity<TableName>;
case 'FeeRecordCorrection':
Expand All @@ -134,16 +115,11 @@ const saveNewEntries = async <TableName extends SqlTableName>(tableName: TableNa
case 'UtilisationReport':
return (await SqlDbDataSource.manager.save(UtilisationReportEntity, entitiesToInsert as UtilisationReportEntity[])) as Entity<TableName>[];
case 'FeeRecord':
for (const { facilityUtilisationData } of entitiesToInsert as FeeRecordEntity[]) {
await saveFacilityUtilisationDataIfNotExists(facilityUtilisationData);
}
return (await SqlDbDataSource.manager.save(FeeRecordEntity, entitiesToInsert as FeeRecordEntity[])) as Entity<TableName>[];
case 'AzureFileInfo':
return (await SqlDbDataSource.manager.save(AzureFileInfoEntity, entitiesToInsert as AzureFileInfoEntity[])) as Entity<TableName>[];
case 'Payment':
return (await SqlDbDataSource.manager.save(PaymentEntity, entitiesToInsert as PaymentEntity[])) as Entity<TableName>[];
case 'FacilityUtilisationData':
return (await SqlDbDataSource.manager.save(FacilityUtilisationDataEntity, entitiesToInsert as FacilityUtilisationDataEntity[])) as Entity<TableName>[];
case 'PaymentMatchingTolerance':
return (await SqlDbDataSource.manager.save(PaymentMatchingToleranceEntity, entitiesToInsert as PaymentMatchingToleranceEntity[])) as Entity<TableName>[];
case 'FeeRecordCorrection':
Expand Down
Loading
Loading