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

BRS-257-2: Fix missing group camping, increase memory for invokables #370

Merged
merged 1 commit into from
Aug 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
12 changes: 10 additions & 2 deletions arSam/handlers/export-variance/invokable/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,16 @@ function createCSV(records) {
record['secondCarsRevenueGross'] || '',
record['otherRevenueGrossSani'] || '',
record['otherRevenueElectrical'] || '',
record['otherRevenueShower'] || ''
])
record['otherRevenueShower'] || '',
record['standardRateGroupsTotalPeopleStandard'] || '',
record['standardRateGroupsTotalPeopleAdults'] || '',
record['standardRateGroupsTotalPeopleYouth'] || '',
record['standardRateGroupsTotalPeopleKids'] || '',
record['standardRateGroupsRevenueGross'] || '',
record['youthRateGroupsAttendanceGroupNights'] || '',
record['youthRateGroupsAttendancePeople'] || '',
record['youthRateGroupsRevenueGross'],
]);
}
let csvData = '';
for (const row of content) {
Expand Down
12 changes: 10 additions & 2 deletions arSam/layers/constantsLayer/constantsLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -785,9 +785,17 @@ const CSV_SYSADMIN_SCHEMA = [
'Frontcountry Camping - Second Cars - Gross Revenue',
'Frontcountry Camping - Other Frontcountry Camping - Gross Sani',
'Frontcountry Camping - Other Frontcountry Camping - Electrical',
'Frontcountry Camping - Other Frontcountry Camping - Shower'
'Frontcountry Camping - Other Frontcountry Camping - Shower',
'Group Camping - Standard Rate Groups - Nights',
'Group Camping - Standard Rate Groups - Adults',
'Group Camping - Standard Rate Groups - Youth',
'Group Camping - Standard Rate Groups - Kids',
'Group Camping - Standard Rate Groups - Gross Revenue',
'Group Camping - Youth Rate Groups - Nights',
'Group Camping - Youth Rate Groups - People',
'Group Camping - Youth Rate Groups - Gross Revenue',
];

module.exports = {
EXPORT_NOTE_KEYS,
EXPORT_VARIANCE_CONFIG,
Expand Down
2 changes: 2 additions & 0 deletions arSam/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,7 @@ Resources:
CodeUri: handlers/export/invokable/
Handler: index.handler
Runtime: nodejs20.x
MemorySize: 1536
FunctionName: !Ref ExportFunctionName
Environment:
Variables:
Expand Down Expand Up @@ -459,6 +460,7 @@ Resources:
CodeUri: handlers/export-variance/invokable/
Handler: index.handler
Runtime: nodejs20.x
MemorySize: 1536
FunctionName: !Ref VarianceExportFunctionName
Environment:
Variables:
Expand Down
Loading