@openmrs/esm-billing-app 1.0.2-pre.78 → 1.0.2-pre.790

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 (203) hide show
  1. package/.eslintrc +16 -2
  2. package/README.md +54 -9
  3. package/__mocks__/bills.mock.ts +12 -0
  4. package/__mocks__/react-i18next.js +6 -5
  5. package/dist/1119.js +1 -1
  6. package/dist/1146.js +1 -2
  7. package/dist/1146.js.map +1 -1
  8. package/dist/1197.js +1 -1
  9. package/dist/1856.js +1 -0
  10. package/dist/1856.js.map +1 -0
  11. package/dist/2146.js +1 -1
  12. package/dist/2177.js +2 -0
  13. package/dist/2177.js.LICENSE.txt +9 -0
  14. package/dist/2177.js.map +1 -0
  15. package/dist/2524.js +1 -0
  16. package/dist/2524.js.map +1 -0
  17. package/dist/2690.js +1 -1
  18. package/dist/3041.js +1 -0
  19. package/dist/3041.js.map +1 -0
  20. package/dist/3099.js +1 -1
  21. package/dist/3584.js +1 -1
  22. package/dist/4055.js +1 -1
  23. package/dist/4132.js +1 -1
  24. package/dist/4225.js +1 -0
  25. package/dist/4225.js.map +1 -0
  26. package/dist/4300.js +1 -1
  27. package/dist/4335.js +1 -1
  28. package/dist/4618.js +1 -1
  29. package/dist/4652.js +1 -1
  30. package/dist/4724.js +1 -0
  31. package/dist/4724.js.map +1 -0
  32. package/dist/4739.js +1 -1
  33. package/dist/4739.js.map +1 -1
  34. package/dist/4944.js +1 -1
  35. package/dist/5173.js +1 -1
  36. package/dist/5241.js +1 -1
  37. package/dist/5422.js +1 -0
  38. package/dist/5422.js.map +1 -0
  39. package/dist/5442.js +1 -1
  40. package/dist/5661.js +1 -1
  41. package/dist/6022.js +1 -1
  42. package/dist/6468.js +1 -1
  43. package/dist/6540.js +1 -1
  44. package/dist/6540.js.map +1 -1
  45. package/dist/6606.js +1 -0
  46. package/dist/6606.js.map +1 -0
  47. package/dist/6679.js +1 -1
  48. package/dist/6840.js +1 -1
  49. package/dist/6859.js +1 -1
  50. package/dist/7097.js +1 -1
  51. package/dist/7159.js +1 -1
  52. package/dist/723.js +1 -1
  53. package/dist/7452.js +2 -0
  54. package/dist/7452.js.map +1 -0
  55. package/dist/7617.js +1 -1
  56. package/dist/795.js +1 -1
  57. package/dist/8163.js +1 -1
  58. package/dist/8349.js +1 -1
  59. package/dist/8618.js +1 -1
  60. package/dist/890.js +1 -1
  61. package/dist/8930.js +2 -0
  62. package/dist/{6525.js.LICENSE.txt → 8930.js.LICENSE.txt} +16 -4
  63. package/dist/8930.js.map +1 -0
  64. package/dist/9214.js +1 -1
  65. package/dist/942.js +1 -0
  66. package/dist/942.js.map +1 -0
  67. package/dist/9538.js +1 -1
  68. package/dist/9569.js +1 -1
  69. package/dist/961.js +1 -1
  70. package/dist/961.js.map +1 -1
  71. package/dist/986.js +1 -1
  72. package/dist/9879.js +1 -1
  73. package/dist/9895.js +1 -1
  74. package/dist/9900.js +1 -1
  75. package/dist/9913.js +1 -1
  76. package/dist/main.js +1 -1
  77. package/dist/main.js.map +1 -1
  78. package/dist/openmrs-esm-billing-app.js +1 -1
  79. package/dist/openmrs-esm-billing-app.js.buildmanifest.json +368 -262
  80. package/dist/openmrs-esm-billing-app.js.map +1 -1
  81. package/dist/routes.json +1 -1
  82. package/e2e/README.md +19 -18
  83. package/e2e/core/test.ts +1 -1
  84. package/e2e/fixtures/api.ts +1 -1
  85. package/e2e/specs/sample-test.spec.ts +0 -1
  86. package/e2e/support/github/Dockerfile +1 -1
  87. package/package.json +13 -10
  88. package/src/bill-history/bill-history.component.tsx +17 -25
  89. package/src/bill-history/bill-history.scss +4 -94
  90. package/src/bill-history/bill-history.test.tsx +37 -78
  91. package/src/bill-item-actions/bill-item-actions.scss +0 -4
  92. package/src/bill-item-actions/{edit-bill-item.component.tsx → edit-bill-item.modal.tsx} +100 -78
  93. package/src/bill-item-actions/edit-bill-item.test.tsx +116 -31
  94. package/src/billable-services/bill-waiver/bill-selection.component.tsx +2 -2
  95. package/src/billable-services/bill-waiver/patient-bills.component.tsx +3 -3
  96. package/src/billable-services/billable-service.resource.ts +17 -9
  97. package/src/billable-services/billable-services-home.component.tsx +1 -1
  98. package/src/billable-services/billable-services.component.tsx +142 -145
  99. package/src/billable-services/billable-services.scss +3 -0
  100. package/src/billable-services/billable-services.test.tsx +2 -45
  101. package/src/billable-services/cash-point/add-cash-point.modal.tsx +168 -0
  102. package/src/billable-services/cash-point/cash-point-configuration.component.tsx +18 -192
  103. package/src/billable-services/cash-point/cash-point-configuration.scss +1 -5
  104. package/src/billable-services/create-edit/add-billable-service.component.tsx +345 -298
  105. package/src/billable-services/create-edit/add-billable-service.scss +5 -6
  106. package/src/billable-services/create-edit/add-billable-service.test.tsx +37 -36
  107. package/src/billable-services/create-edit/edit-billable-service.modal.tsx +51 -0
  108. package/src/billable-services/payment-modes/add-payment-mode.modal.tsx +121 -0
  109. package/src/billable-services/payment-modes/delete-payment-mode.modal.tsx +72 -0
  110. package/src/billable-services/payment-modes/payment-modes-config.component.tsx +125 -0
  111. package/src/billable-services/{payyment-modes → payment-modes}/payment-modes-config.scss +5 -4
  112. package/src/billing-form/billing-checkin-form.component.tsx +2 -3
  113. package/src/billing-form/billing-checkin-form.test.tsx +97 -24
  114. package/src/billing-form/billing-form.component.tsx +216 -269
  115. package/src/billing-form/billing-form.scss +143 -0
  116. package/src/billing.resource.ts +16 -19
  117. package/src/bills-table/bills-table.test.tsx +98 -54
  118. package/src/config-schema.ts +52 -24
  119. package/src/dashboard.meta.ts +4 -2
  120. package/src/helpers/functions.ts +5 -4
  121. package/src/index.ts +17 -6
  122. package/src/invoice/invoice-table.component.tsx +35 -69
  123. package/src/invoice/invoice-table.scss +1 -5
  124. package/src/invoice/invoice-table.test.tsx +273 -62
  125. package/src/invoice/invoice.component.tsx +36 -29
  126. package/src/invoice/invoice.scss +7 -4
  127. package/src/invoice/invoice.test.tsx +324 -120
  128. package/src/invoice/payments/payment-form/payment-form.component.tsx +43 -34
  129. package/src/invoice/payments/payment-form/payment-form.scss +5 -6
  130. package/src/invoice/payments/payment-form/payment-form.test.tsx +216 -66
  131. package/src/invoice/payments/payment-history/payment-history.component.tsx +6 -4
  132. package/src/invoice/payments/payment-history/payment-history.test.tsx +9 -14
  133. package/src/invoice/payments/payments.component.tsx +53 -65
  134. package/src/invoice/payments/payments.test.tsx +282 -0
  135. package/src/invoice/payments/utils.ts +5 -23
  136. package/src/invoice/printable-invoice/print-receipt.component.tsx +3 -2
  137. package/src/invoice/printable-invoice/print-receipt.test.tsx +14 -25
  138. package/src/invoice/printable-invoice/printable-footer.component.tsx +2 -2
  139. package/src/invoice/printable-invoice/printable-footer.test.tsx +4 -13
  140. package/src/invoice/printable-invoice/printable-invoice-header.component.tsx +12 -11
  141. package/src/invoice/printable-invoice/printable-invoice-header.test.tsx +16 -14
  142. package/src/invoice/printable-invoice/printable-invoice.component.tsx +19 -33
  143. package/src/left-panel-link.test.tsx +1 -4
  144. package/src/metrics-cards/metrics-cards.test.tsx +18 -5
  145. package/src/modal/require-payment-modal.test.tsx +27 -22
  146. package/src/modal/{require-payment-modal.component.tsx → require-payment.modal.tsx} +17 -18
  147. package/src/routes.json +22 -2
  148. package/src/types/index.ts +26 -17
  149. package/translations/am.json +70 -21
  150. package/translations/ar.json +70 -21
  151. package/translations/ar_SY.json +70 -21
  152. package/translations/bn.json +75 -26
  153. package/translations/de.json +70 -21
  154. package/translations/en.json +70 -21
  155. package/translations/en_US.json +70 -21
  156. package/translations/es.json +70 -21
  157. package/translations/es_MX.json +70 -21
  158. package/translations/fr.json +83 -34
  159. package/translations/he.json +70 -21
  160. package/translations/hi.json +70 -21
  161. package/translations/hi_IN.json +70 -21
  162. package/translations/id.json +70 -21
  163. package/translations/it.json +105 -56
  164. package/translations/ka.json +70 -21
  165. package/translations/km.json +70 -21
  166. package/translations/ku.json +70 -21
  167. package/translations/ky.json +70 -21
  168. package/translations/lg.json +70 -21
  169. package/translations/ne.json +70 -21
  170. package/translations/pl.json +70 -21
  171. package/translations/pt.json +70 -21
  172. package/translations/pt_BR.json +70 -21
  173. package/translations/qu.json +70 -21
  174. package/translations/ro_RO.json +214 -165
  175. package/translations/ru_RU.json +70 -21
  176. package/translations/si.json +70 -21
  177. package/translations/sw.json +70 -21
  178. package/translations/sw_KE.json +70 -21
  179. package/translations/tr.json +70 -21
  180. package/translations/tr_TR.json +70 -21
  181. package/translations/uk.json +70 -21
  182. package/translations/uz.json +70 -21
  183. package/translations/uz@Latn.json +70 -21
  184. package/translations/uz_UZ.json +70 -21
  185. package/translations/vi.json +70 -21
  186. package/translations/zh.json +70 -21
  187. package/translations/zh_CN.json +125 -76
  188. package/dist/1146.js.LICENSE.txt +0 -21
  189. package/dist/2352.js +0 -1
  190. package/dist/2352.js.map +0 -1
  191. package/dist/246.js +0 -1
  192. package/dist/246.js.map +0 -1
  193. package/dist/6525.js +0 -2
  194. package/dist/6525.js.map +0 -1
  195. package/dist/8556.js +0 -2
  196. package/dist/8556.js.map +0 -1
  197. package/dist/8638.js +0 -1
  198. package/dist/8638.js.map +0 -1
  199. package/dist/9968.js +0 -1
  200. package/dist/9968.js.map +0 -1
  201. package/src/billable-services/payyment-modes/payment-modes-config.component.tsx +0 -280
  202. package/src/invoice/payments/payments.component.test.tsx +0 -121
  203. /package/dist/{8556.js.LICENSE.txt → 7452.js.LICENSE.txt} +0 -0
@@ -1,19 +1,29 @@
1
1
  {
2
- "actions": "Actions",
2
+ "add": "Add",
3
3
  "addBill": "Add bill item(s)",
4
4
  "addBillableServices": "Add Billable Services",
5
5
  "addCashPoint": "Add Cash Point",
6
6
  "addNewBillableService": "Add new billable service",
7
+ "addNewCashPoint": "Add New Cash Point",
8
+ "addNewPaymentMode": "Add New Payment Mode",
7
9
  "addNewService": "Add new service",
10
+ "addPaymentMethod": "Add payment method",
8
11
  "addPaymentMode": "Add Payment Mode",
9
- "addPaymentOptions": "Add payment option",
12
+ "addPaymentOption": "Add payment option",
10
13
  "amount": "Amount",
11
14
  "amountDue": "Amount Due",
15
+ "amountMustBePositive": "Amount must be greater than 0",
16
+ "amountRequired": "Amount is required",
17
+ "amountTendered": "Amount Tendered",
12
18
  "amountToWaiveAriaLabel": "Enter amount to waive",
13
19
  "amountToWaiveHelper": "Specify the amount to be deducted from the bill",
14
20
  "amountToWaiveLabel": "Amount to Waive",
21
+ "associatedConcept": "Associated concept",
15
22
  "billableService": "Billable service",
16
23
  "billableServices": "Billable Services",
24
+ "billableServices__lower": "billable services",
25
+ "billAmount": "Bill amount",
26
+ "billCode": "Bill code",
17
27
  "billedItems": "Billed Items",
18
28
  "billedTo": "Billed to",
19
29
  "billErrorService": "Bill service error",
@@ -29,43 +39,48 @@
29
39
  "billName": " {{billName}} ",
30
40
  "billPayment": "Bill payment",
31
41
  "billPaymentError": "Bill payment error",
32
- "billPaymentRequiredMessage": "The current patient has pending bill. Advice patient to settle bill before receiving services",
42
+ "billPaymentRequiredMessage": "The current patient has a pending bill. Advise the patient to settle the bill before receiving services",
43
+ "billProcessingError": "Bill processing error",
44
+ "billProcessingSuccess": "Bill processing has been successful",
33
45
  "billServicesManagement": "Bill services management",
34
46
  "billsList": "Bill list",
35
47
  "billTotal": "Bill total",
36
48
  "billWaiver": "Bill waiver",
37
49
  "billWaiverError": "Bill waiver failed {{error}}",
38
50
  "billWaiverSuccess": "Bill waiver successful",
39
- "cancel": "Cancel",
40
51
  "cashPointConfig": "Cash Point Config",
41
52
  "cashPointHistory": "Cash Point History",
42
53
  "cashPointLocation": "Cash Point Location",
43
54
  "cashPointName": "Cash Point Name",
44
55
  "cashPointNamePlaceholder": "e.g., Pharmacy Cash Point",
56
+ "cashPointNameRequired": "Cash Point Name is required",
45
57
  "cashPointSaved": "Cash point was successfully saved.",
46
58
  "cashPointUuid": "Cash Point UUID",
47
59
  "cashPointUuidPlaceholder": "Enter UUID",
48
60
  "checkFilters": "Check the filters above",
49
- "clearSearchInput": "Clear search input",
50
- "clientBalance": "Client Balance",
51
61
  "confirmDeleteMessage": "Are you sure you want to delete this payment mode? Proceed cautiously.",
52
62
  "createdSuccessfully": "Billable service created successfully",
53
63
  "currentPrice": "Current price",
54
- "delete": "Delete",
64
+ "date": "Date",
65
+ "dateAndTime": "Date And Time",
66
+ "dateOfPayment": "Date of payment",
55
67
  "deletePaymentMode": "Delete Payment Mode",
68
+ "deleting": "Deleting",
56
69
  "description": "Description",
57
70
  "descriptionPlaceholder": "e.g., Used for all cash transactions",
58
71
  "discard": "Discard",
59
72
  "discount": "Discount",
60
- "duplicateCashPointError": "A cash point with the same name or UUID already exists. Please use a unique name and UUID.",
61
- "duplicatePaymentModeError": "A payment mode with the same name already exists. Please create another payment mode",
73
+ "discountAmount": "Discount Amount",
62
74
  "editBillableService": "Edit billable service",
63
75
  "editBillableServices": "Edit Billable Services",
64
- "editBillLineItem": "Edit bill line item?",
76
+ "editBillLineItem": "Edit bill line item",
65
77
  "editThisBillItem": "Edit this bill item",
66
78
  "enterAmount": "Enter amount",
67
79
  "enterConcept": "Associated concept",
68
- "enterReferenceNumber": "Enter ref. number",
80
+ "enterReferenceNumber": "Enter reference number",
81
+ "enterSellingPrice": "Enter selling price",
82
+ "enterServiceName": "Enter service name",
83
+ "enterServiceShortName": "Enter service short name",
69
84
  "error": "Error",
70
85
  "errorDeletingPaymentMode": "An error occurred while deleting the payment mode.",
71
86
  "errorFetchingCashPoints": "An error occurred while fetching cash points.",
@@ -73,6 +88,8 @@
73
88
  "errorFetchingPaymentModes": "An error occurred while fetching payment modes.",
74
89
  "errorLoadingBillServices": "Error loading bill services",
75
90
  "errorLoadingPaymentModes": "Payment modes error",
91
+ "errorPrintingInvoice": "Error printing invoice",
92
+ "errorProcessingPayment": "Error processing payment",
76
93
  "errorSavingCashPoint": "An error occurred while saving the cash point.",
77
94
  "errorSavingPaymentMode": "An error occurred while saving the payment mode.",
78
95
  "filterBy": "Filter by",
@@ -80,19 +97,31 @@
80
97
  "grandTotal": "Grand total",
81
98
  "home": "Home",
82
99
  "identifier": "Identifier",
83
- "inlineLoading": "Loading bill items...",
84
100
  "insuranceScheme": "Insurance scheme",
101
+ "invalidUuidFormat": "Invalid UUID format",
85
102
  "invalidWaiverAmount": "Invalid waiver amount",
103
+ "inventoryItem": "Inventory item",
86
104
  "invoice": "Invoice",
105
+ "invoiceDate": "Invoice date",
87
106
  "invoiceError": "Invoice error",
107
+ "invoiceNumber": "Invoice #",
108
+ "invoiceStatus": "Invoice Status",
88
109
  "item": "Item",
89
110
  "itemsToBeBilled": "Items to be billed",
90
111
  "launchBillForm": "Launch bill form",
91
112
  "lineItems": "Line items",
113
+ "lineItemUpdated": "Line item updated",
114
+ "lineItemUpdateErrorDefault": "Unable to update the bill line item. Please try again.",
115
+ "lineItemUpdateFailed": "Failed to update line item",
116
+ "lineItemUpdateSuccess": "The bill line item has been updated successfully",
92
117
  "loading": "Loading data...",
118
+ "loadingBillInfo": "Loading bill information...",
93
119
  "loadingBillingServices": "Loading billing services...",
120
+ "loadingBillItems": "Loading bill items",
121
+ "loadingData": "Loading data",
94
122
  "loadingDescription": "Loading",
95
123
  "location": "Select Location",
124
+ "locationRequired": "Location is required",
96
125
  "manageBillableServices": "Manage billable services",
97
126
  "name": "Name",
98
127
  "nextPage": "Next page",
@@ -101,23 +130,27 @@
101
130
  "noMatchingItemsToDisplay": "No matching items to display",
102
131
  "noMatchingServicesToDisplay": "No matching services to display",
103
132
  "noResultsFor": "No results for",
104
- "noResultsFound": "No results found",
105
- "noServicesToDisplay": "There are no services to display",
133
+ "number": "No",
106
134
  "ok": "OK",
107
135
  "patientBillingAlert": "Patient Billing Alert",
108
136
  "patientBills": "Patient bill",
109
137
  "patientBillsDescription": "List of patient bills",
110
138
  "patientCategory": "Patient category",
139
+ "paymentAmountCannotExceedAmountDue": "Payment amount cannot exceed amount due",
111
140
  "paymentDetails": "Payment Details",
112
141
  "paymentMethod": "Payment method",
113
142
  "paymentMethods": "Payment methods",
114
143
  "paymentMode": "Payment Mode",
115
144
  "paymentModeDeleted": "Payment mode was successfully deleted.",
116
145
  "paymentModeHistory": "Payment Mode History",
117
- "paymentModeName": "Payment Mode Name",
146
+ "paymentModeName": "Payment Mode Name: {{paymentModeName}}",
118
147
  "paymentModeNamePlaceholder": "e.g., Cash, Credit Card",
148
+ "paymentModeNameRequired": "Payment Mode Name is required",
149
+ "paymentModeRequired": "Payment mode is required",
119
150
  "paymentModeSaved": "Payment mode was successfully saved.",
120
151
  "paymentModesConfig": "Payment Modes Config",
152
+ "paymentOptionRequired": "At least one payment option is required",
153
+ "paymentProcessedSuccessfully": "Payment processed successfully",
121
154
  "payments": "Payments",
122
155
  "pleaseRequiredFields": "Please fill all required fields",
123
156
  "policyNumber": "Policy number",
@@ -125,46 +158,62 @@
125
158
  "previousPage": "Previous page",
126
159
  "price": "Unit Price",
127
160
  "priceIsRequired": "Price is required",
161
+ "priceMustBeGreaterThanZero": "Price must be greater than 0",
162
+ "priceMustBeNumber": "Price must be a valid number",
163
+ "priceMustBePositive": "Price must be greater than 0",
164
+ "priceMustBeValidPositiveNumber": "Price must be a valid positive number",
128
165
  "prices": "Prices",
129
166
  "printBill": "Print bill",
130
167
  "printReceipt": "Print receipt",
131
168
  "processPayment": "Process Payment",
132
169
  "quantity": "Quantity",
133
- "quantityGreaterThanZero": "Quantity must be greater than zero",
170
+ "quantityCannotExceed100": "Quantity cannot exceed 100",
171
+ "quantityMustBeAtLeastOne": "Quantity must be at least 1",
172
+ "quantityMustBeInteger": "Quantity must be a whole number",
173
+ "quantityMustBeNumber": "Quantity must be a valid number",
134
174
  "quantityRequired": "Quantity is required",
135
175
  "referenceNumber": "Reference number",
136
- "save": "Save",
176
+ "remove": "Remove",
177
+ "removePaymentMethod": "Remove payment method",
137
178
  "saveAndClose": "Save and close",
179
+ "saveBill": "Save Bill",
138
180
  "saving": "Saving",
139
181
  "searchConcepts": "Search associated concept",
140
182
  "searching": "Searching",
141
183
  "searchItems": "Search items and services",
142
184
  "searchThisTable": "Search this table",
143
185
  "selectBillableService": "Select a billable service...",
144
- "selectCategory": "Select category",
186
+ "selectedItems": "Selected Items",
187
+ "selectLocation": "Select Location",
145
188
  "selectPatientCategory": "Select patient category",
146
189
  "selectPaymentMethod": "Select payment method",
147
- "sellingAmount": "Enter selling price",
190
+ "selectPaymentMethodRequired": "Please select a payment method for all items",
191
+ "selectPaymentMode": "Select payment mode",
192
+ "selectServiceType": "Select service type",
148
193
  "sellingPrice": "Selling Price",
149
- "service": "Service",
150
194
  "serviceMetrics": "Service Metrics",
151
195
  "serviceName": "Service Name",
152
196
  "serviceNameExceedsLimit": "Service Name exceeds the character limit of {{MAX_NAME_LENGTH}}.",
197
+ "serviceNameRequired": "Service name is required",
153
198
  "serviceShortName": "Short Name",
154
199
  "servicesList": "Services list",
200
+ "serviceStatus": "Service Status",
155
201
  "serviceType": "Service Type",
202
+ "serviceTypeRequired": "Service type is required",
156
203
  "shortName": "Short Name",
157
204
  "shortNameExceedsLimit": "Short Name exceeds the character limit of {{MAX_NAME_LENGTH}}.",
158
205
  "status": "Service Status",
159
- "stockItem": "Stock Item",
160
206
  "submitting": "Submitting...",
161
207
  "success": "Success",
162
208
  "total": "Total",
163
209
  "totalAmount": "Total Amount",
164
210
  "totalTendered": "Total Tendered",
165
211
  "unitPrice": "Unit price",
212
+ "unitPriceHelperText": "This is the unit price for this item.",
166
213
  "updatedSuccessfully": "Billable service updated successfully",
167
214
  "uuid": "UUID",
215
+ "uuidRequired": "UUID is required",
216
+ "validationError": "Validation Error",
168
217
  "visitTime": "Visit time",
169
218
  "waiverForm": "Waiver form"
170
219
  }