@openmrs/esm-billing-app 1.0.2-pre.664 → 1.0.2-pre.669

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.
Files changed (84) hide show
  1. package/dist/1119.js +1 -1
  2. package/dist/1197.js +1 -1
  3. package/dist/2146.js +1 -1
  4. package/dist/2690.js +1 -1
  5. package/dist/3099.js +1 -1
  6. package/dist/3584.js +1 -1
  7. package/dist/4055.js +1 -1
  8. package/dist/4132.js +1 -1
  9. package/dist/4300.js +1 -1
  10. package/dist/4335.js +1 -1
  11. package/dist/4618.js +1 -1
  12. package/dist/4652.js +1 -1
  13. package/dist/4739.js +1 -1
  14. package/dist/4739.js.map +1 -1
  15. package/dist/4944.js +1 -1
  16. package/dist/5173.js +1 -1
  17. package/dist/5241.js +1 -1
  18. package/dist/5442.js +1 -1
  19. package/dist/5661.js +1 -1
  20. package/dist/6022.js +1 -1
  21. package/dist/6468.js +1 -1
  22. package/dist/6679.js +1 -1
  23. package/dist/6840.js +1 -1
  24. package/dist/6859.js +1 -1
  25. package/dist/7097.js +1 -1
  26. package/dist/7159.js +1 -1
  27. package/dist/723.js +1 -1
  28. package/dist/7617.js +1 -1
  29. package/dist/795.js +1 -1
  30. package/dist/8163.js +1 -1
  31. package/dist/8349.js +1 -1
  32. package/dist/8618.js +1 -1
  33. package/dist/890.js +1 -1
  34. package/dist/9214.js +1 -1
  35. package/dist/9538.js +1 -1
  36. package/dist/9569.js +1 -1
  37. package/dist/986.js +1 -1
  38. package/dist/9879.js +1 -1
  39. package/dist/9895.js +1 -1
  40. package/dist/9900.js +1 -1
  41. package/dist/9913.js +1 -1
  42. package/dist/openmrs-esm-billing-app.js.buildmanifest.json +122 -122
  43. package/dist/routes.json +1 -1
  44. package/package.json +1 -1
  45. package/src/billing-form/billing-form.component.tsx +8 -6
  46. package/translations/am.json +1 -0
  47. package/translations/ar.json +1 -0
  48. package/translations/ar_SY.json +1 -0
  49. package/translations/bn.json +1 -0
  50. package/translations/de.json +1 -0
  51. package/translations/en.json +1 -0
  52. package/translations/en_US.json +1 -0
  53. package/translations/es.json +1 -0
  54. package/translations/es_MX.json +1 -0
  55. package/translations/fr.json +1 -0
  56. package/translations/he.json +1 -0
  57. package/translations/hi.json +1 -0
  58. package/translations/hi_IN.json +1 -0
  59. package/translations/id.json +1 -0
  60. package/translations/it.json +1 -0
  61. package/translations/ka.json +1 -0
  62. package/translations/km.json +1 -0
  63. package/translations/ku.json +1 -0
  64. package/translations/ky.json +1 -0
  65. package/translations/lg.json +1 -0
  66. package/translations/ne.json +1 -0
  67. package/translations/pl.json +1 -0
  68. package/translations/pt.json +1 -0
  69. package/translations/pt_BR.json +1 -0
  70. package/translations/qu.json +1 -0
  71. package/translations/ro_RO.json +1 -0
  72. package/translations/ru_RU.json +1 -0
  73. package/translations/si.json +1 -0
  74. package/translations/sw.json +1 -0
  75. package/translations/sw_KE.json +1 -0
  76. package/translations/tr.json +1 -0
  77. package/translations/tr_TR.json +1 -0
  78. package/translations/uk.json +1 -0
  79. package/translations/uz.json +1 -0
  80. package/translations/uz@Latn.json +1 -0
  81. package/translations/uz_UZ.json +1 -0
  82. package/translations/vi.json +1 -0
  83. package/translations/zh.json +1 -0
  84. package/translations/zh_CN.json +1 -0
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.664"}
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.669"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmrs/esm-billing-app",
3
- "version": "1.0.2-pre.664",
3
+ "version": "1.0.2-pre.669",
4
4
  "description": "O3 frontend module for handling billing concerns in healthcare settings",
5
5
  "browser": "dist/openmrs-esm-billing-app.js",
6
6
  "main": "src/index.ts",
@@ -87,6 +87,8 @@ const BillingForm: React.FC<BillingFormProps> = ({ patientUuid, closeWorkspace }
87
87
 
88
88
  setSaveDisabled(!isValid || anyInvalidQuantity);
89
89
 
90
+ setBillItems(updatedItems);
91
+
90
92
  const updatedGrandTotal = updatedItems.reduce((acc, item) => acc + item.Total, 0);
91
93
  setGrandTotal(updatedGrandTotal);
92
94
  };
@@ -285,11 +287,11 @@ const BillingForm: React.FC<BillingFormProps> = ({ patientUuid, closeWorkspace }
285
287
  <Table aria-label="sample table" className={styles.mt2}>
286
288
  <TableHead>
287
289
  <TableRow>
288
- <TableHeader>Item</TableHeader>
289
- <TableHeader>Quantity</TableHeader>
290
- <TableHeader>Price</TableHeader>
291
- <TableHeader>Total</TableHeader>
292
- <TableHeader>Action</TableHeader>
290
+ <TableHeader>{t('item', 'Item')}</TableHeader>
291
+ <TableHeader>{t('quantity', 'Quantity')}</TableHeader>
292
+ <TableHeader>{t('price', 'Price')}</TableHeader>
293
+ <TableHeader>{t('total', 'Total')}</TableHeader>
294
+ <TableHeader>{t('action', 'Action')}</TableHeader>
293
295
  </TableRow>
294
296
  </TableHead>
295
297
  <TableBody>
@@ -321,7 +323,7 @@ const BillingForm: React.FC<BillingFormProps> = ({ patientUuid, closeWorkspace }
321
323
  </TableRow>
322
324
  ))
323
325
  ) : (
324
- <p>Loading...</p>
326
+ <p>{t('loading', 'Loading...')}</p>
325
327
  )}
326
328
  <TableRow>
327
329
  <TableCell colSpan={3}></TableCell>
@@ -1,4 +1,5 @@
1
1
  {
2
+ "action": "Action",
2
3
  "actions": "Actions",
3
4
  "addBill": "Add bill item(s)",
4
5
  "addBillableServices": "Add Billable Services",
@@ -1,4 +1,5 @@
1
1
  {
2
+ "action": "Action",
2
3
  "actions": "Actions",
3
4
  "addBill": "Add bill item(s)",
4
5
  "addBillableServices": "Add Billable Services",
@@ -1,4 +1,5 @@
1
1
  {
2
+ "action": "Action",
2
3
  "actions": "Actions",
3
4
  "addBill": "Add bill item(s)",
4
5
  "addBillableServices": "Add Billable Services",
@@ -1,4 +1,5 @@
1
1
  {
2
+ "action": "Action",
2
3
  "actions": "Actions",
3
4
  "addBill": "Add bill item(s)",
4
5
  "addBillableServices": "Add Billable Services",
@@ -1,4 +1,5 @@
1
1
  {
2
+ "action": "Action",
2
3
  "actions": "Actions",
3
4
  "addBill": "Add bill item(s)",
4
5
  "addBillableServices": "Add Billable Services",
@@ -1,4 +1,5 @@
1
1
  {
2
+ "action": "Action",
2
3
  "actions": "Actions",
3
4
  "addBill": "Add bill item(s)",
4
5
  "addBillableServices": "Add Billable Services",
@@ -1,4 +1,5 @@
1
1
  {
2
+ "action": "Action",
2
3
  "actions": "Actions",
3
4
  "addBill": "Add bill item(s)",
4
5
  "addBillableServices": "Add Billable Services",
@@ -1,4 +1,5 @@
1
1
  {
2
+ "action": "Action",
2
3
  "actions": "Actions",
3
4
  "addBill": "Add bill item(s)",
4
5
  "addBillableServices": "Add Billable Services",
@@ -1,4 +1,5 @@
1
1
  {
2
+ "action": "Action",
2
3
  "actions": "Actions",
3
4
  "addBill": "Add bill item(s)",
4
5
  "addBillableServices": "Add Billable Services",
@@ -1,4 +1,5 @@
1
1
  {
2
+ "action": "Action",
2
3
  "actions": "Actions",
3
4
  "addBill": "Add bill item(s)",
4
5
  "addBillableServices": "Add Billable Services",
@@ -1,4 +1,5 @@
1
1
  {
2
+ "action": "Action",
2
3
  "actions": "Actions",
3
4
  "addBill": "Add bill item(s)",
4
5
  "addBillableServices": "Add Billable Services",
@@ -1,4 +1,5 @@
1
1
  {
2
+ "action": "Action",
2
3
  "actions": "Actions",
3
4
  "addBill": "Add bill item(s)",
4
5
  "addBillableServices": "Add Billable Services",
@@ -1,4 +1,5 @@
1
1
  {
2
+ "action": "Action",
2
3
  "actions": "Actions",
3
4
  "addBill": "Add bill item(s)",
4
5
  "addBillableServices": "Add Billable Services",
@@ -1,4 +1,5 @@
1
1
  {
2
+ "action": "Action",
2
3
  "actions": "Aksi",
3
4
  "addBill": "Tambahkan beberapa item tagihan",
4
5
  "addBillableServices": "Tambahkan Layanan Berbayar",
@@ -1,4 +1,5 @@
1
1
  {
2
+ "action": "Action",
2
3
  "actions": "Azioni",
3
4
  "addBill": "Add bill item(s)",
4
5
  "addBillableServices": "Add Billable Services",
@@ -1,4 +1,5 @@
1
1
  {
2
+ "action": "Action",
2
3
  "actions": "ქმედებები",
3
4
  "addBill": "Add bill item(s)",
4
5
  "addBillableServices": "Add Billable Services",
@@ -1,4 +1,5 @@
1
1
  {
2
+ "action": "Action",
2
3
  "actions": "Actions",
3
4
  "addBill": "Add bill item(s)",
4
5
  "addBillableServices": "Add Billable Services",
@@ -1,4 +1,5 @@
1
1
  {
2
+ "action": "Action",
2
3
  "actions": "Actions",
3
4
  "addBill": "Add bill item(s)",
4
5
  "addBillableServices": "Add Billable Services",
@@ -1,4 +1,5 @@
1
1
  {
2
+ "action": "Action",
2
3
  "actions": "Actions",
3
4
  "addBill": "Add bill item(s)",
4
5
  "addBillableServices": "Add Billable Services",
@@ -1,4 +1,5 @@
1
1
  {
2
+ "action": "Action",
2
3
  "actions": "Actions",
3
4
  "addBill": "Add bill item(s)",
4
5
  "addBillableServices": "Add Billable Services",
@@ -1,4 +1,5 @@
1
1
  {
2
+ "action": "Action",
2
3
  "actions": "Actions",
3
4
  "addBill": "Add bill item(s)",
4
5
  "addBillableServices": "Add Billable Services",
@@ -1,4 +1,5 @@
1
1
  {
2
+ "action": "Action",
2
3
  "actions": "Actions",
3
4
  "addBill": "Add bill item(s)",
4
5
  "addBillableServices": "Add Billable Services",
@@ -1,4 +1,5 @@
1
1
  {
2
+ "action": "Action",
2
3
  "actions": "Actions",
3
4
  "addBill": "Add bill item(s)",
4
5
  "addBillableServices": "Add Billable Services",
@@ -1,4 +1,5 @@
1
1
  {
2
+ "action": "Action",
2
3
  "actions": "Actions",
3
4
  "addBill": "Add bill item(s)",
4
5
  "addBillableServices": "Add Billable Services",
@@ -1,4 +1,5 @@
1
1
  {
2
+ "action": "Action",
2
3
  "actions": "Actions",
3
4
  "addBill": "Add bill item(s)",
4
5
  "addBillableServices": "Add Billable Services",
@@ -1,4 +1,5 @@
1
1
  {
2
+ "action": "Action",
2
3
  "actions": "Actiuni",
3
4
  "addBill": "Adauga element(e) in factura",
4
5
  "addBillableServices": "Adauga servicii facturabile",
@@ -1,4 +1,5 @@
1
1
  {
2
+ "action": "Action",
2
3
  "actions": "Actions",
3
4
  "addBill": "Add bill item(s)",
4
5
  "addBillableServices": "Add Billable Services",
@@ -1,4 +1,5 @@
1
1
  {
2
+ "action": "Action",
2
3
  "actions": "Actions",
3
4
  "addBill": "Add bill item(s)",
4
5
  "addBillableServices": "Add Billable Services",
@@ -1,4 +1,5 @@
1
1
  {
2
+ "action": "Action",
2
3
  "actions": "Actions",
3
4
  "addBill": "Add bill item(s)",
4
5
  "addBillableServices": "Add Billable Services",
@@ -1,4 +1,5 @@
1
1
  {
2
+ "action": "Action",
2
3
  "actions": "Actions",
3
4
  "addBill": "Add bill item(s)",
4
5
  "addBillableServices": "Add Billable Services",
@@ -1,4 +1,5 @@
1
1
  {
2
+ "action": "Action",
2
3
  "actions": "Actions",
3
4
  "addBill": "Add bill item(s)",
4
5
  "addBillableServices": "Add Billable Services",
@@ -1,4 +1,5 @@
1
1
  {
2
+ "action": "Action",
2
3
  "actions": "Actions",
3
4
  "addBill": "Add bill item(s)",
4
5
  "addBillableServices": "Add Billable Services",
@@ -1,4 +1,5 @@
1
1
  {
2
+ "action": "Action",
2
3
  "actions": "Actions",
3
4
  "addBill": "Add bill item(s)",
4
5
  "addBillableServices": "Add Billable Services",
@@ -1,4 +1,5 @@
1
1
  {
2
+ "action": "Action",
2
3
  "actions": "Actions",
3
4
  "addBill": "Add bill item(s)",
4
5
  "addBillableServices": "Add Billable Services",
@@ -1,4 +1,5 @@
1
1
  {
2
+ "action": "Action",
2
3
  "actions": "Actions",
3
4
  "addBill": "Add bill item(s)",
4
5
  "addBillableServices": "Add Billable Services",
@@ -1,4 +1,5 @@
1
1
  {
2
+ "action": "Action",
2
3
  "actions": "Actions",
3
4
  "addBill": "Add bill item(s)",
4
5
  "addBillableServices": "Add Billable Services",
@@ -1,4 +1,5 @@
1
1
  {
2
+ "action": "Action",
2
3
  "actions": "Actions",
3
4
  "addBill": "Add bill item(s)",
4
5
  "addBillableServices": "Add Billable Services",
@@ -1,4 +1,5 @@
1
1
  {
2
+ "action": "Action",
2
3
  "actions": "Actions",
3
4
  "addBill": "Add bill item(s)",
4
5
  "addBillableServices": "Add Billable Services",
@@ -1,4 +1,5 @@
1
1
  {
2
+ "action": "Action",
2
3
  "actions": "动作",
3
4
  "addBill": "添加(多个)账单项目",
4
5
  "addBillableServices": "添加计费服务",