diff --git a/.env.development b/.env.development index 8dd6fee44c..899164f988 100644 --- a/.env.development +++ b/.env.development @@ -13,7 +13,6 @@ SESS_RESAVE=0 SESS_UNSET='destroy' LOG_LEVEL='warn' -# LOG_LEVEL='warn' # LOG_LEVEL='debug' UPLOAD_DIR='client/upload' diff --git a/client/src/i18n/en/patient_registry.json b/client/src/i18n/en/patient_registry.json index b9b01cc01e..08213ccab3 100644 --- a/client/src/i18n/en/patient_registry.json +++ b/client/src/i18n/en/patient_registry.json @@ -1,12 +1,17 @@ -{"PATIENT_REGISTRY":{"CARD":"Card", -"DAY":"day", -"DAYS":"days", -"INVOICES":"View Invoices", -"INVOICE": "Invoice", -"MONTH":"month", -"MONTHS":"months", -"PAYMENTS":"View Cash Payments", -"YEAR_OLD":"year old", -"YEARS_OLD":"years old", -"TITLE":"Patients", -"RECORD":"Record"}} \ No newline at end of file +{ + "PATIENT_REGISTRY":{ + "CARD":"Card", + "DAY":"day", + "DAYS":"days", + "INVOICES":"View Invoices", + "INVOICE": "Invoice", + "VOUCHERS" : "View Vouchers", + "MONTH":"month", + "MONTHS":"months", + "PAYMENTS":"View Cash Payments", + "YEAR_OLD":"year old", + "YEARS_OLD":"years old", + "TITLE":"Patients", + "RECORD":"Record" + } +} diff --git a/client/src/i18n/en/vouchers.json b/client/src/i18n/en/vouchers.json index 6f8bcb3249..866b5f8d40 100644 --- a/client/src/i18n/en/vouchers.json +++ b/client/src/i18n/en/vouchers.json @@ -1,56 +1,70 @@ -{"VOUCHERS":{"COMPLEX":{"ADD_ITEMS":"Add item(s)", -"CASH_PAYMENT":"Cash Payment", -"CREATE_SUCCESS":"Successfully posted", -"CREATE_ERROR":"An error occurred when post", -"CREDITOR":"Creditor (C)", -"DEBTOR":"Debtor (D)", -"DEB_CRED":"Debtor/Creditor", -"DESCRIPTION":"This module allows you to make advanced journal transactions manually", -"ENTITY":"Entity (Debtor/Creditor)", -"ERROR_ACCOUNT":"Selected accounts are invalid", -"ERROR_AMOUNT":"Amount's values are invalid", -"ERROR_TOTALS":"The totals are not balanced", -"ERROR_PRECISION":"The amounts entered cannot have more than 4 decimal places in precision", -"INVALID_VALUES":"There are invalid values detected", -"PATIENT_INVOICE":"Patient Invoice", -"REFERENCE":"Reference", -"ROWS":"Row(s)", -"SELECT_DOCUMENT_TYPE":"Please select the document type", -"TITLE":"Advanced Journal Vouchers", -"VALID_TOTALS":"Transactions are valid (balanced transaction)", -"VOUCHER":"Voucher"}, -"TYPES":{"SUPPORT_PAYMENT_DESCRIPTION":"Debt transfer from {{ patientName }} ({{ patientReference}}) for invoice {{ invoiceReference }}."}, -"GLOBAL":{"CASHFLOW_OPTION":"Cashflow Option", -"TRANSFER_DESCRIPTION": "Transfer: From {{ fromAccount }} to {{ toAccount }} for {{ amount }} {{ symbol }}", -"CONVENTION_INVOICES":"Convention - Invoices payment", -"SUPPORT_FORM":"Patients Support - Form", -"SUPPORT_TEXT":"When the above two fields are filled in, we will look for open debts for the patient to assign to the \"Support Patient\" Account.", -"IMPORT_TRANSACTION":"Import transactions", -"GENERIC_EXPENSE":"Generic Expense", -"GENERIC_INCOME":"Generic Income", -"ORIGIN_ACCOUNT":"Provenance Account", -"DESTINATION_ACCOUNT":"Destination Account", -"TRANSFER_ACCOUNT":"Transfer Account", -"CASH_TRANSFER":"Cash Transfer", -"REPORT":"Voucher Report", -"TITLE":"Voucher", -"TRANSFER_TYPE_INFO":"Transaction Type in case we have either incomes or expenses", -"USE_FINANCIAL_ACCOUNT":"Use of cashes or banks accounts in this transaction", -"RECEIPT":{"SUCCESS":"Voucher Payment recorded successfully."}, -"ERROR_SAME_ACCOUNT":"You cannot use the same account twice to in this transaction. Please select two different accounts."}, -"SIMPLE":{"CASH_PAYMENT":"Client Payment", -"CASH_RETURN":"Cash Return (Payback)", -"CONVENTION_PAYMENT":"Convention Payment", -"CREDIT_NOTE":"Credit Note", -"EXPENSE":"Expenses", -"INCOME":"Incomes", -"INVOICING":"Invoicing", -"SALARY_PAYMENT":"Salary Payment", -"GENERIC_EXPENSE":"Other Expenses", -"GENERIC_INCOME":"Other Incomes", -"PURCHASES":"Purchases", -"SUPPORT_INCOME":"Support Incomes", -"TITLE":"Simple Voucher", -"TRANSFER":"Money Transfer", -"TRANSFER_PATIENT_INVOICE_AMOUNT":"Patient Invoice Debt Transfer"}, -"REPORT":"Report"}} \ No newline at end of file +{ + "VOUCHERS" : { + "COMPLEX":{ + "ADD_ITEMS":"Add item(s)", + "CASH_PAYMENT":"Cash Payment", + "CREATE_SUCCESS":"Successfully posted", + "CREATE_ERROR":"An error occurred when post", + "CREDITOR":"Creditor (C)", + "DEBTOR":"Debtor (D)", + "DEB_CRED":"Debtor/Creditor", + "DESCRIPTION":"This module allows you to make advanced journal transactions manually", + "ENTITY":"Entity (Debtor/Creditor)", + "ERROR_ACCOUNT":"Selected accounts are invalid", + "ERROR_AMOUNT":"Amount's values are invalid", + "ERROR_TOTALS":"The totals are not balanced", + "ERROR_PRECISION":"The amounts entered cannot have more than 4 decimal places in precision", + "INVALID_VALUES":"There are invalid values detected", + "PATIENT_INVOICE":"Patient Invoice", + "REFERENCE":"Reference", + "ROWS":"Row(s)", + "SELECT_DOCUMENT_TYPE":"Please select the document type", + "TITLE":"Advanced Journal Vouchers", + "VALID_TOTALS":"Transactions are valid (balanced transaction)", + "VOUCHER":"Voucher" + }, + "TYPES":{ + "SUPPORT_PAYMENT_DESCRIPTION":"Debt transfer from {{ patientName }} ({{ patientReference}}) for invoice {{ invoiceReference }}." + }, + "GLOBAL":{ + "CASHFLOW_OPTION":"Cashflow Option", + "TRANSFER_DESCRIPTION": "Transfer: From {{ fromAccount }} to {{ toAccount }} for {{ amount }} {{ symbol }}", + "CONVENTION_INVOICES":"Convention - Invoices payment", + "SUPPORT_FORM":"Patients Support - Form", + "SUPPORT_TEXT":"When the above two fields are filled in, we will look for open debts for the patient to assign to the \"Support Patient\" Account.", + "IMPORT_TRANSACTION":"Import transactions", + "GENERIC_EXPENSE":"Generic Expense", + "GENERIC_INCOME":"Generic Income", + "ORIGIN_ACCOUNT":"Provenance Account", + "DESTINATION_ACCOUNT":"Destination Account", + "TRANSFER_ACCOUNT":"Transfer Account", + "CASH_TRANSFER":"Cash Transfer", + "REPORT":"Voucher Report", + "TITLE":"Voucher", + "TRANSFER_TYPE_INFO":"Transaction Type in case we have either incomes or expenses", + "USE_FINANCIAL_ACCOUNT":"Use of cashes or banks accounts in this transaction", + "RECEIPT":{ + "SUCCESS":"Voucher Payment recorded successfully." + }, + "ERROR_SAME_ACCOUNT":"You cannot use the same account twice to in this transaction. Please select two different accounts." + }, + "SIMPLE":{ + "CASH_PAYMENT":"Client Payment", + "CASH_RETURN":"Cash Return (Payback)", + "CONVENTION_PAYMENT":"Convention Payment", + "CREDIT_NOTE":"Credit Note", + "EXPENSE":"Expenses", + "INCOME":"Incomes", + "INVOICING":"Invoicing", + "SALARY_PAYMENT":"Salary Payment", + "GENERIC_EXPENSE":"Other Expenses", + "GENERIC_INCOME":"Other Incomes", + "PURCHASES":"Purchases", + "SUPPORT_INCOME":"Support Incomes", + "TITLE":"Simple Voucher", + "TRANSFER":"Money Transfer", + "TRANSFER_PATIENT_INVOICE_AMOUNT":"Patient Invoice Debt Transfer" + }, + "REPORT":"Report" + } +} diff --git a/client/src/i18n/fr/patient_registry.json b/client/src/i18n/fr/patient_registry.json index 41ec6bb66e..aba5ea2eb0 100644 --- a/client/src/i18n/fr/patient_registry.json +++ b/client/src/i18n/fr/patient_registry.json @@ -1,12 +1,17 @@ -{"PATIENT_REGISTRY":{"CARD":"Carte", -"DAY":"jour", -"DAYS":"jours", -"INVOICES":"Les factures", -"INVOICE":"La facture", -"MONTH":"mois", -"MONTHS":"mois", -"PAYMENTS":"Les paiements", -"RECORD":"Enregistrement", -"YEAR_OLD":"an", -"YEARS_OLD":"ans", -"TITLE":"Registre des patients"}} \ No newline at end of file +{ + "PATIENT_REGISTRY":{ + "CARD":"Carte", + "DAY":"jour", + "DAYS":"jours", + "INVOICES":"Les Factures", + "VOUCHERS":"Les Bordereaux", + "INVOICE":"La facture", + "MONTH":"mois", + "MONTHS":"mois", + "PAYMENTS":"Les Paiements", + "RECORD":"Enregistrement", + "YEAR_OLD":"an", + "YEARS_OLD":"ans", + "TITLE":"Registre des Patients" + } +} diff --git a/client/src/js/services/FilterService.js b/client/src/js/services/FilterService.js index 110b493434..3050f5b5c9 100644 --- a/client/src/js/services/FilterService.js +++ b/client/src/js/services/FilterService.js @@ -82,7 +82,7 @@ function FilterService(Store) { // return filters for the view - this method will always be compatible with the bhFilter component FilterList.prototype.formatView = function formatView() { var activeFilters = this._filterActiveFilters(); - var activeKeys = activeFilters.map(function (filter) { return filter._key; }); + var activeKeys = activeFilters.map(function (filter) { return filter._key; }); function keysInActive(filter) { return activeKeys.indexOf(filter._key) !== -1; } diff --git a/client/src/modules/patients/templates/action.cell.html b/client/src/modules/patients/templates/action.cell.html index b451137e52..5997bd34e1 100644 --- a/client/src/modules/patients/templates/action.cell.html +++ b/client/src/modules/patients/templates/action.cell.html @@ -32,5 +32,10 @@ PATIENT_REGISTRY.PAYMENTS +