@openmrs/esm-billing-app 1.0.2-pre.866 → 1.0.2-pre.873
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/2372.js +1 -0
- package/dist/2372.js.map +1 -0
- package/dist/3717.js +1 -1
- package/dist/4300.js +1 -1
- package/dist/4724.js +1 -1
- package/dist/4739.js +1 -1
- package/dist/8708.js +2 -0
- package/dist/8708.js.map +1 -0
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/openmrs-esm-billing-app.js +1 -1
- package/dist/openmrs-esm-billing-app.js.buildmanifest.json +61 -61
- package/dist/openmrs-esm-billing-app.js.map +1 -1
- package/dist/routes.json +1 -1
- package/package.json +1 -1
- package/src/billable-services/billable-services-home.component.tsx +11 -34
- package/src/billable-services/billable-services-left-panel-link.component.tsx +48 -0
- package/src/billable-services/billable-services-left-panel-menu.component.tsx +46 -0
- package/src/billable-services/billable-services.scss +26 -0
- package/src/billable-services/dashboard/dashboard.component.tsx +0 -2
- package/src/index.ts +50 -3
- package/src/routes.json +16 -3
- package/translations/en.json +1 -3
- package/dist/4344.js +0 -1
- package/dist/4344.js.map +0 -1
- package/dist/6295.js +0 -2
- package/dist/6295.js.map +0 -1
- package/src/billable-services/dashboard/service-metrics.component.tsx +0 -49
- /package/dist/{6295.js.LICENSE.txt → 8708.js.LICENSE.txt} +0 -0
package/src/index.ts
CHANGED
|
@@ -3,6 +3,9 @@ import { createDashboardLink } from '@openmrs/esm-patient-common-lib';
|
|
|
3
3
|
import { createLeftPanelLink } from './left-panel-link.component';
|
|
4
4
|
import { dashboardMeta } from './dashboard.meta';
|
|
5
5
|
import { defineConfigSchema, getAsyncLifecycle, getSyncLifecycle } from '@openmrs/esm-framework';
|
|
6
|
+
import { Wallet, Money, Settings } from '@carbon/react/icons';
|
|
7
|
+
import { createBillableServicesLeftPanelLink } from './billable-services/billable-services-left-panel-link.component';
|
|
8
|
+
import { createBillableServicesLeftPanelMenu } from './billable-services/billable-services-left-panel-menu.component';
|
|
6
9
|
import AddCashPointModal from './billable-services/cash-point/add-cash-point.modal';
|
|
7
10
|
import AddPaymentModeModal from './billable-services/payment-modes/add-payment-mode.modal';
|
|
8
11
|
import appMenu from './billable-services/billable-services-menu-item/item.component';
|
|
@@ -15,7 +18,6 @@ import EditBillableServiceModal from './billable-services/create-edit/edit-billa
|
|
|
15
18
|
import EditBillLineItemModal from './bill-item-actions/edit-bill-item.modal';
|
|
16
19
|
import RequirePaymentModal from './modal/require-payment.modal';
|
|
17
20
|
import RootComponent from './root.component';
|
|
18
|
-
import ServiceMetrics from './billable-services/dashboard/service-metrics.component';
|
|
19
21
|
import VisitAttributeTags from './invoice/payments/visit-tags/visit-attribute.component';
|
|
20
22
|
|
|
21
23
|
const moduleName = '@openmrs/esm-billing-app';
|
|
@@ -70,9 +72,54 @@ export const editBillLineItemModal = getSyncLifecycle(EditBillLineItemModal, opt
|
|
|
70
72
|
|
|
71
73
|
export const root = getSyncLifecycle(RootComponent, options);
|
|
72
74
|
|
|
73
|
-
export const serviceMetrics = getSyncLifecycle(ServiceMetrics, options);
|
|
74
|
-
|
|
75
75
|
export const visitAttributeTags = getSyncLifecycle(VisitAttributeTags, options);
|
|
76
76
|
|
|
77
77
|
// t('billingForm', 'Billing form')
|
|
78
78
|
export const billingFormWorkspace = getAsyncLifecycle(() => import('./billing-form/billing-form.component'), options);
|
|
79
|
+
|
|
80
|
+
// t('billableServices', 'Billable Services')
|
|
81
|
+
export const billableServicesLeftPanelLink = getSyncLifecycle(
|
|
82
|
+
createBillableServicesLeftPanelLink({
|
|
83
|
+
name: 'billable-services',
|
|
84
|
+
title: 'Billable Services',
|
|
85
|
+
path: '',
|
|
86
|
+
icon: Wallet,
|
|
87
|
+
}),
|
|
88
|
+
options,
|
|
89
|
+
);
|
|
90
|
+
|
|
91
|
+
// t('billWaiver', 'Bill waiver')
|
|
92
|
+
export const billWaiverLeftPanelLink = getSyncLifecycle(
|
|
93
|
+
createBillableServicesLeftPanelLink({
|
|
94
|
+
name: 'bill-waiver',
|
|
95
|
+
title: 'Bill waiver',
|
|
96
|
+
path: 'waive-bill',
|
|
97
|
+
icon: Money,
|
|
98
|
+
privilege: 'coreapps.systemAdministration',
|
|
99
|
+
}),
|
|
100
|
+
options,
|
|
101
|
+
);
|
|
102
|
+
|
|
103
|
+
// t('billingSettings', 'Billing settings')
|
|
104
|
+
// t('cashPointConfig', 'Cash point configuration')
|
|
105
|
+
// t('paymentModesConfig', 'Payment modes configuration')
|
|
106
|
+
export const billingSettingsLeftPanelMenu = getSyncLifecycle(
|
|
107
|
+
createBillableServicesLeftPanelMenu({
|
|
108
|
+
title: 'Billing settings',
|
|
109
|
+
icon: Settings,
|
|
110
|
+
privilege: 'coreapps.systemAdministration',
|
|
111
|
+
items: [
|
|
112
|
+
{
|
|
113
|
+
name: 'cash-point-config',
|
|
114
|
+
title: 'Cash point configuration',
|
|
115
|
+
path: 'cash-point-config',
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
name: 'payment-modes-config',
|
|
119
|
+
title: 'Payment modes configuration',
|
|
120
|
+
path: 'payment-modes-config',
|
|
121
|
+
},
|
|
122
|
+
],
|
|
123
|
+
}),
|
|
124
|
+
options,
|
|
125
|
+
);
|
package/src/routes.json
CHANGED
|
@@ -75,9 +75,22 @@
|
|
|
75
75
|
"order": 2
|
|
76
76
|
},
|
|
77
77
|
{
|
|
78
|
-
"name": "
|
|
79
|
-
"
|
|
80
|
-
"
|
|
78
|
+
"name": "billable-services-left-panel-link",
|
|
79
|
+
"component": "billableServicesLeftPanelLink",
|
|
80
|
+
"slot": "billable-services-left-panel-slot",
|
|
81
|
+
"order": 0
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"name": "bill-waiver-left-panel-link",
|
|
85
|
+
"component": "billWaiverLeftPanelLink",
|
|
86
|
+
"slot": "billable-services-left-panel-slot",
|
|
87
|
+
"order": 1
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"name": "billing-settings-left-panel-menu",
|
|
91
|
+
"component": "billingSettingsLeftPanelMenu",
|
|
92
|
+
"slot": "billable-services-left-panel-slot",
|
|
93
|
+
"order": 2
|
|
81
94
|
}
|
|
82
95
|
],
|
|
83
96
|
"modals": [
|
package/translations/en.json
CHANGED
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"billableService": "Billable service",
|
|
23
23
|
"billableServices": "Billable services",
|
|
24
24
|
"billableServices__lower": "billable services",
|
|
25
|
+
"billableServicesManagement": "Billable services management",
|
|
25
26
|
"billAmount": "Bill amount",
|
|
26
27
|
"billCode": "Bill code",
|
|
27
28
|
"billCreatedSuccessfully": "Bill created successfully",
|
|
@@ -44,7 +45,6 @@
|
|
|
44
45
|
"billPaymentRequiredMessage": "The current patient has a pending bill. Advise the patient to settle the bill before receiving services",
|
|
45
46
|
"billProcessedSuccessfully": "Bill processed successfully",
|
|
46
47
|
"billProcessingError": "Bill processing error",
|
|
47
|
-
"billServicesManagement": "Bill services management",
|
|
48
48
|
"billsTable": "Bills table",
|
|
49
49
|
"billTotal": "Bill total",
|
|
50
50
|
"billWaiver": "Bill waiver",
|
|
@@ -122,7 +122,6 @@
|
|
|
122
122
|
"loadingBillItems": "Loading bill items",
|
|
123
123
|
"loadingBillMetrics": "Loading bill metrics",
|
|
124
124
|
"loadingDescription": "Loading",
|
|
125
|
-
"loadingServiceMetrics": "Loading service metrics",
|
|
126
125
|
"location": "Location",
|
|
127
126
|
"locationRequired": "Location is required",
|
|
128
127
|
"manageBillableServices": "Manage billable services",
|
|
@@ -194,7 +193,6 @@
|
|
|
194
193
|
"selectServiceType": "Select service type",
|
|
195
194
|
"sellingPrice": "Selling price",
|
|
196
195
|
"serviceList": "Service list",
|
|
197
|
-
"serviceMetrics": "Service metrics",
|
|
198
196
|
"serviceName": "Service name",
|
|
199
197
|
"serviceNameExceedsLimit": "Service name exceeds the character limit of {{MAX_NAME_LENGTH}}.",
|
|
200
198
|
"serviceNameRequired": "Service name is required",
|