Skip to content

Commit

Permalink
fix missing group camping, up mem for invokables (#370)
Browse files Browse the repository at this point in the history
Signed-off-by: David <daveclaveau@gmail.com>
  • Loading branch information
davidclaveau authored Aug 19, 2024
1 parent 8f108ce commit 6017744
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 4 deletions.
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

0 comments on commit 6017744

Please sign in to comment.