Control sending fees via ENV variable

This commit is contained in:
Bilal Catic
2019-09-10 06:56:02 +02:00
parent 1e2eadba6c
commit 75201dea6d
3 changed files with 16 additions and 6 deletions

View File

@@ -74,6 +74,8 @@ const integrationServiceErrors = {
FAILED_TO_GENERATE_MEMBER_PRACTICE_SUMMARY: 'Failed to generate Member Practice Summary',
ERRORS_IN_MEMBER_PRACTICE_SUMMARY_REPORT: 'Member Practice Summary Report is generated but there were some errors and report may be incomplete',
EXPECTED_MEMBER_IDS_ARRAY: 'Expected array of member IDs',
SENDING_FEES_DISABLED: 'Sending fees is disabled for current and future months',
MONTH_MISSING: 'Missing month selection for sending fees to ORD',
};
const incidentType = {
@@ -129,6 +131,8 @@ const CUSTOM_FEES_PREFIXES = process.env.CUSTOM_FEES_PREFIXES.split(',')
const UNPAID_FEE_STATUS = 'not_paid';
const ALLOW_SENDING_FEES = parseInt(process.env.ALLOW_SENDING_FEES_FOR_CURRENT_AND_FUTURE_MONTHS) ? true : false;
module.exports = {
VALID_CSV_HEADERS,
USER_ENTRY_EVENT,
@@ -153,4 +157,5 @@ module.exports = {
DISCOUNT_PLANS,
UNPAID_FEE_STATUS,
CUSTOM_FEES_PREFIXES,
ALLOW_SENDING_FEES,
};