@openmrs/esm-billing-app 1.0.2-pre.605 → 1.0.2-pre.606
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/8638.js +1 -1
- package/dist/8638.js.map +1 -1
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/openmrs-esm-billing-app.js.buildmanifest.json +6 -6
- package/dist/routes.json +1 -1
- package/package.json +1 -1
- package/src/billable-services/billable-services.component.tsx +1 -1
- package/src/billable-services/create-edit/add-billable-service.component.tsx +8 -1
|
@@ -1236,9 +1236,9 @@
|
|
|
1236
1236
|
"initial": false,
|
|
1237
1237
|
"entry": false,
|
|
1238
1238
|
"recorded": false,
|
|
1239
|
-
"size":
|
|
1239
|
+
"size": 1096271,
|
|
1240
1240
|
"sizes": {
|
|
1241
|
-
"javascript":
|
|
1241
|
+
"javascript": 1096229,
|
|
1242
1242
|
"consume-shared": 42
|
|
1243
1243
|
},
|
|
1244
1244
|
"names": [],
|
|
@@ -1252,7 +1252,7 @@
|
|
|
1252
1252
|
"auxiliaryFiles": [
|
|
1253
1253
|
"8638.js.map"
|
|
1254
1254
|
],
|
|
1255
|
-
"hash": "
|
|
1255
|
+
"hash": "4ad039bd571bfe07",
|
|
1256
1256
|
"childrenByOrder": {}
|
|
1257
1257
|
},
|
|
1258
1258
|
{
|
|
@@ -1260,10 +1260,10 @@
|
|
|
1260
1260
|
"initial": true,
|
|
1261
1261
|
"entry": true,
|
|
1262
1262
|
"recorded": false,
|
|
1263
|
-
"size":
|
|
1263
|
+
"size": 5103056,
|
|
1264
1264
|
"sizes": {
|
|
1265
1265
|
"consume-shared": 210,
|
|
1266
|
-
"javascript":
|
|
1266
|
+
"javascript": 5080527,
|
|
1267
1267
|
"share-init": 336,
|
|
1268
1268
|
"runtime": 21983
|
|
1269
1269
|
},
|
|
@@ -1280,7 +1280,7 @@
|
|
|
1280
1280
|
"auxiliaryFiles": [
|
|
1281
1281
|
"main.js.map"
|
|
1282
1282
|
],
|
|
1283
|
-
"hash": "
|
|
1283
|
+
"hash": "3fd2e10756126be6",
|
|
1284
1284
|
"childrenByOrder": {}
|
|
1285
1285
|
},
|
|
1286
1286
|
{
|
package/dist/routes.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"webservices.rest":">=2.24.0","fhir2":">=1.2"},"pages":[{"component":"billableServicesHome","route":"billable-services"}],"extensions":[{"component":"billingDashboardLink","name":"billing-dashboard-link","slot":"homepage-dashboard-slot","meta":{"name":"billing","title":"billing","slot":"billing-dashboard-slot"},"featureFlag":"billing"},{"component":"root","name":"billing-dashboard-root","slot":"billing-dashboard-slot"},{"name":"billing-patient-summary","component":"billingPatientSummary","slot":"patient-chart-billing-dashboard-slot","order":10,"meta":{"columnSpan":4}},{"name":"billing-summary-dashboard-link","component":"billingSummaryDashboardLink","slot":"patient-chart-dashboard-slot","order":11,"meta":{"columns":1,"columnSpan":1,"slot":"patient-chart-billing-dashboard-slot","path":"Billing history"},"featureFlag":"billing"},{"name":"billable-services-app-menu-item","component":"billableServicesAppMenuItem","slot":"app-menu-item-slot","meta":{"name":"Billable Services"}},{"name":"billing-checkin-form","slot":"extra-visit-attribute-slot","component":"billingCheckInForm","featureFlag":"billing"},{"slot":"system-admin-page-card-link-slot","component":"billableServicesCardLink","name":"billable-services-admin-card-link"},{"name":"patient-banner-billing-tags","component":"visitAttributeTags","slot":"patient-banner-tags-slot","order":2},{"name":"billing-home-tiles-ext","slot":"billing-home-tiles-slot","component":"serviceMetrics"},{"name":"edit-bill-line-item-dialog","component":"editBillLineItemDialog","online":true,"offline":true}],"modals":[{"name":"require-billing-modal","component":"requirePaymentModal"}],"workspaces":[{"name":"billing-form-workspace","title":"billingForm","component":"billingFormWorkspace","type":"form"}],"featureFlags":[{"flagName":"billing","label":"Billing module","description":"This feature introduces navigation links on the patient chart and home page to allow accessing the billing module features"}],"version":"1.0.2-pre.
|
|
1
|
+
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"webservices.rest":">=2.24.0","fhir2":">=1.2"},"pages":[{"component":"billableServicesHome","route":"billable-services"}],"extensions":[{"component":"billingDashboardLink","name":"billing-dashboard-link","slot":"homepage-dashboard-slot","meta":{"name":"billing","title":"billing","slot":"billing-dashboard-slot"},"featureFlag":"billing"},{"component":"root","name":"billing-dashboard-root","slot":"billing-dashboard-slot"},{"name":"billing-patient-summary","component":"billingPatientSummary","slot":"patient-chart-billing-dashboard-slot","order":10,"meta":{"columnSpan":4}},{"name":"billing-summary-dashboard-link","component":"billingSummaryDashboardLink","slot":"patient-chart-dashboard-slot","order":11,"meta":{"columns":1,"columnSpan":1,"slot":"patient-chart-billing-dashboard-slot","path":"Billing history"},"featureFlag":"billing"},{"name":"billable-services-app-menu-item","component":"billableServicesAppMenuItem","slot":"app-menu-item-slot","meta":{"name":"Billable Services"}},{"name":"billing-checkin-form","slot":"extra-visit-attribute-slot","component":"billingCheckInForm","featureFlag":"billing"},{"slot":"system-admin-page-card-link-slot","component":"billableServicesCardLink","name":"billable-services-admin-card-link"},{"name":"patient-banner-billing-tags","component":"visitAttributeTags","slot":"patient-banner-tags-slot","order":2},{"name":"billing-home-tiles-ext","slot":"billing-home-tiles-slot","component":"serviceMetrics"},{"name":"edit-bill-line-item-dialog","component":"editBillLineItemDialog","online":true,"offline":true}],"modals":[{"name":"require-billing-modal","component":"requirePaymentModal"}],"workspaces":[{"name":"billing-form-workspace","title":"billingForm","component":"billingFormWorkspace","type":"form"}],"featureFlags":[{"flagName":"billing","label":"Billing module","description":"This feature introduces navigation links on the patient chart and home page to allow accessing the billing module features"}],"version":"1.0.2-pre.606"}
|
package/package.json
CHANGED
|
@@ -248,7 +248,7 @@ const BillableServices = () => {
|
|
|
248
248
|
onSecondarySubmit={closeModal}
|
|
249
249
|
size="lg"
|
|
250
250
|
passiveModal={true}>
|
|
251
|
-
<AddBillableService editingService={editingService} onClose={closeModal} />
|
|
251
|
+
<AddBillableService editingService={editingService} onClose={closeModal} onServiceUpdated={mutate} />
|
|
252
252
|
</Modal>
|
|
253
253
|
)}
|
|
254
254
|
</>
|
|
@@ -50,7 +50,11 @@ const paymentFormSchema = z.object({
|
|
|
50
50
|
|
|
51
51
|
const DEFAULT_PAYMENT_OPTION = { paymentMode: '', price: 0 };
|
|
52
52
|
|
|
53
|
-
const AddBillableService: React.FC<{ editingService?: any; onClose: () => void
|
|
53
|
+
const AddBillableService: React.FC<{ editingService?: any; onClose: () => void; onServiceUpdated?: () => void }> = ({
|
|
54
|
+
editingService,
|
|
55
|
+
onClose,
|
|
56
|
+
onServiceUpdated,
|
|
57
|
+
}) => {
|
|
54
58
|
const { t } = useTranslation();
|
|
55
59
|
|
|
56
60
|
const { paymentModes, isLoading: isLoadingPaymentModes } = usePaymentModes();
|
|
@@ -150,6 +154,9 @@ const AddBillableService: React.FC<{ editingService?: any; onClose: () => void }
|
|
|
150
154
|
kind: 'success',
|
|
151
155
|
timeoutInMs: 3000,
|
|
152
156
|
});
|
|
157
|
+
if (onServiceUpdated) {
|
|
158
|
+
onServiceUpdated();
|
|
159
|
+
}
|
|
153
160
|
onClose();
|
|
154
161
|
handleNavigateToServiceDashboard();
|
|
155
162
|
},
|