@openmrs/esm-billing-app 1.0.2-pre.88 → 1.0.2-pre.880

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 (208) 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/2372.js +1 -0
  13. package/dist/2372.js.map +1 -0
  14. package/dist/2524.js +1 -0
  15. package/dist/2524.js.map +1 -0
  16. package/dist/2690.js +1 -1
  17. package/dist/3099.js +1 -1
  18. package/dist/3584.js +1 -1
  19. package/dist/3717.js +2 -0
  20. package/dist/3717.js.map +1 -0
  21. package/dist/4055.js +1 -1
  22. package/dist/4132.js +1 -1
  23. package/dist/4300.js +1 -1
  24. package/dist/4335.js +1 -1
  25. package/dist/4618.js +1 -1
  26. package/dist/4652.js +1 -1
  27. package/dist/4724.js +1 -0
  28. package/dist/4724.js.map +1 -0
  29. package/dist/4739.js +1 -1
  30. package/dist/4739.js.map +1 -1
  31. package/dist/4944.js +1 -1
  32. package/dist/5173.js +1 -1
  33. package/dist/5241.js +1 -1
  34. package/dist/5442.js +1 -1
  35. package/dist/5661.js +1 -1
  36. package/dist/6022.js +1 -1
  37. package/dist/6468.js +1 -1
  38. package/dist/6540.js +1 -1
  39. package/dist/6540.js.map +1 -1
  40. package/dist/6679.js +1 -1
  41. package/dist/6840.js +1 -1
  42. package/dist/6859.js +1 -1
  43. package/dist/7097.js +1 -1
  44. package/dist/7159.js +1 -1
  45. package/dist/723.js +1 -1
  46. package/dist/7255.js +1 -1
  47. package/dist/7255.js.map +1 -1
  48. package/dist/7617.js +1 -1
  49. package/dist/795.js +1 -1
  50. package/dist/8163.js +1 -1
  51. package/dist/8349.js +1 -1
  52. package/dist/8618.js +1 -1
  53. package/dist/8708.js +2 -0
  54. package/dist/{6557.js.LICENSE.txt → 8708.js.LICENSE.txt} +22 -0
  55. package/dist/8708.js.map +1 -0
  56. package/dist/890.js +1 -1
  57. package/dist/9214.js +1 -1
  58. package/dist/9538.js +1 -1
  59. package/dist/9569.js +1 -1
  60. package/dist/961.js +1 -1
  61. package/dist/961.js.map +1 -1
  62. package/dist/986.js +1 -1
  63. package/dist/9879.js +1 -1
  64. package/dist/9895.js +1 -1
  65. package/dist/9900.js +1 -1
  66. package/dist/9913.js +1 -1
  67. package/dist/main.js +1 -1
  68. package/dist/main.js.map +1 -1
  69. package/dist/openmrs-esm-billing-app.js +1 -1
  70. package/dist/openmrs-esm-billing-app.js.buildmanifest.json +263 -301
  71. package/dist/openmrs-esm-billing-app.js.map +1 -1
  72. package/dist/routes.json +1 -1
  73. package/e2e/README.md +19 -18
  74. package/e2e/core/test.ts +1 -1
  75. package/e2e/fixtures/api.ts +1 -1
  76. package/e2e/specs/sample-test.spec.ts +0 -1
  77. package/e2e/support/github/Dockerfile +1 -1
  78. package/package.json +18 -15
  79. package/src/bill-history/bill-history.component.tsx +20 -28
  80. package/src/bill-history/bill-history.scss +4 -94
  81. package/src/bill-history/bill-history.test.tsx +37 -78
  82. package/src/bill-item-actions/bill-item-actions.scss +21 -5
  83. package/src/bill-item-actions/edit-bill-item.modal.tsx +225 -0
  84. package/src/bill-item-actions/edit-bill-item.test.tsx +214 -40
  85. package/src/billable-services/bill-waiver/bill-selection.component.tsx +5 -5
  86. package/src/billable-services/bill-waiver/bill-waiver-form.component.tsx +28 -32
  87. package/src/billable-services/bill-waiver/patient-bills.component.tsx +7 -7
  88. package/src/billable-services/bill-waiver/utils.ts +13 -3
  89. package/src/billable-services/billable-service.resource.ts +42 -26
  90. package/src/billable-services/billable-services-home.component.tsx +12 -35
  91. package/src/billable-services/billable-services-left-panel-link.component.tsx +48 -0
  92. package/src/billable-services/billable-services-left-panel-menu.component.tsx +46 -0
  93. package/src/billable-services/billable-services.component.tsx +149 -148
  94. package/src/billable-services/billable-services.scss +29 -0
  95. package/src/billable-services/billable-services.test.tsx +6 -49
  96. package/src/billable-services/cash-point/add-cash-point.modal.tsx +168 -0
  97. package/src/billable-services/cash-point/cash-point-configuration.component.tsx +19 -193
  98. package/src/billable-services/cash-point/cash-point-configuration.scss +1 -5
  99. package/src/billable-services/create-edit/add-billable-service.component.tsx +388 -301
  100. package/src/billable-services/create-edit/add-billable-service.scss +7 -68
  101. package/src/billable-services/create-edit/add-billable-service.test.tsx +720 -77
  102. package/src/billable-services/create-edit/edit-billable-service.modal.tsx +51 -0
  103. package/src/billable-services/dashboard/dashboard.component.tsx +0 -2
  104. package/src/billable-services/payment-modes/add-payment-mode.modal.tsx +121 -0
  105. package/src/billable-services/payment-modes/delete-payment-mode.modal.tsx +74 -0
  106. package/src/billable-services/payment-modes/payment-modes-config.component.tsx +125 -0
  107. package/src/billable-services/{payyment-modes → payment-modes}/payment-modes-config.scss +5 -4
  108. package/src/billing-dashboard/billing-dashboard.scss +1 -1
  109. package/src/billing-form/billing-checkin-form.component.tsx +21 -17
  110. package/src/billing-form/billing-checkin-form.test.tsx +99 -26
  111. package/src/billing-form/billing-form.component.tsx +222 -292
  112. package/src/billing-form/billing-form.scss +143 -0
  113. package/src/billing-form/visit-attributes/visit-attributes-form.component.tsx +1 -1
  114. package/src/billing.resource.ts +69 -74
  115. package/src/bills-table/bills-table.component.tsx +3 -3
  116. package/src/bills-table/bills-table.test.tsx +98 -54
  117. package/src/config-schema.ts +52 -24
  118. package/src/dashboard.meta.ts +4 -2
  119. package/src/helpers/functions.ts +5 -4
  120. package/src/index.ts +67 -9
  121. package/src/invoice/invoice-table.component.tsx +36 -70
  122. package/src/invoice/invoice-table.scss +8 -5
  123. package/src/invoice/invoice-table.test.tsx +273 -62
  124. package/src/invoice/invoice.component.tsx +39 -32
  125. package/src/invoice/invoice.scss +11 -4
  126. package/src/invoice/invoice.test.tsx +324 -120
  127. package/src/invoice/payments/invoice-breakdown/invoice-breakdown.scss +9 -9
  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 +55 -67
  134. package/src/invoice/payments/payments.scss +4 -3
  135. package/src/invoice/payments/payments.test.tsx +282 -0
  136. package/src/invoice/payments/utils.ts +15 -27
  137. package/src/invoice/printable-invoice/print-receipt.component.tsx +3 -2
  138. package/src/invoice/printable-invoice/print-receipt.test.tsx +14 -25
  139. package/src/invoice/printable-invoice/printable-footer.component.tsx +2 -2
  140. package/src/invoice/printable-invoice/printable-footer.test.tsx +4 -13
  141. package/src/invoice/printable-invoice/printable-invoice-header.component.tsx +12 -11
  142. package/src/invoice/printable-invoice/printable-invoice-header.test.tsx +16 -14
  143. package/src/invoice/printable-invoice/printable-invoice.component.tsx +20 -34
  144. package/src/left-panel-link.test.tsx +1 -4
  145. package/src/metrics-cards/metrics-cards.component.tsx +16 -6
  146. package/src/metrics-cards/metrics-cards.scss +4 -0
  147. package/src/metrics-cards/metrics-cards.test.tsx +18 -5
  148. package/src/modal/require-payment-modal.test.tsx +27 -22
  149. package/src/modal/{require-payment-modal.component.tsx → require-payment.modal.tsx} +18 -19
  150. package/src/routes.json +39 -8
  151. package/src/types/index.ts +81 -23
  152. package/translations/am.json +127 -75
  153. package/translations/ar.json +128 -76
  154. package/translations/ar_SY.json +128 -76
  155. package/translations/bn.json +130 -78
  156. package/translations/de.json +128 -76
  157. package/translations/en.json +128 -76
  158. package/translations/en_US.json +128 -76
  159. package/translations/es.json +127 -75
  160. package/translations/es_MX.json +128 -76
  161. package/translations/fr.json +133 -81
  162. package/translations/he.json +127 -75
  163. package/translations/hi.json +128 -76
  164. package/translations/hi_IN.json +128 -76
  165. package/translations/id.json +128 -76
  166. package/translations/it.json +154 -102
  167. package/translations/ka.json +128 -76
  168. package/translations/km.json +127 -75
  169. package/translations/ku.json +128 -76
  170. package/translations/ky.json +128 -76
  171. package/translations/lg.json +128 -76
  172. package/translations/ne.json +128 -76
  173. package/translations/pl.json +128 -76
  174. package/translations/pt.json +128 -76
  175. package/translations/pt_BR.json +128 -76
  176. package/translations/qu.json +128 -76
  177. package/translations/ro_RO.json +217 -165
  178. package/translations/ru_RU.json +128 -76
  179. package/translations/si.json +128 -76
  180. package/translations/sw.json +128 -76
  181. package/translations/sw_KE.json +128 -76
  182. package/translations/tr.json +128 -76
  183. package/translations/tr_TR.json +128 -76
  184. package/translations/uk.json +128 -76
  185. package/translations/uz.json +128 -76
  186. package/translations/uz@Latn.json +128 -76
  187. package/translations/uz_UZ.json +128 -76
  188. package/translations/vi.json +128 -76
  189. package/translations/zh.json +128 -76
  190. package/translations/zh_CN.json +159 -107
  191. package/dist/1146.js.LICENSE.txt +0 -21
  192. package/dist/2352.js +0 -1
  193. package/dist/2352.js.map +0 -1
  194. package/dist/246.js +0 -1
  195. package/dist/246.js.map +0 -1
  196. package/dist/4689.js +0 -2
  197. package/dist/4689.js.map +0 -1
  198. package/dist/6557.js +0 -2
  199. package/dist/6557.js.map +0 -1
  200. package/dist/8638.js +0 -1
  201. package/dist/8638.js.map +0 -1
  202. package/dist/9968.js +0 -1
  203. package/dist/9968.js.map +0 -1
  204. package/src/bill-item-actions/edit-bill-item.component.tsx +0 -221
  205. package/src/billable-services/dashboard/service-metrics.component.tsx +0 -41
  206. package/src/billable-services/payyment-modes/payment-modes-config.component.tsx +0 -280
  207. package/src/invoice/payments/payments.component.test.tsx +0 -121
  208. /package/dist/{4689.js.LICENSE.txt → 3717.js.LICENSE.txt} +0 -0
@@ -1,3 +1,5 @@
1
+ import { type OpenmrsResource } from '@openmrs/esm-framework';
2
+
1
3
  export interface MappedBill {
2
4
  uuid: string;
3
5
  id: number;
@@ -52,19 +54,19 @@ interface Provider {
52
54
  }
53
55
 
54
56
  export interface LineItem {
55
- uuid: string;
56
- display: string;
57
- voided: boolean;
58
- voidReason: string | null;
59
- item: string;
60
- billableService: string;
57
+ uuid?: string;
58
+ item?: string;
59
+ paymentStatus: string;
60
+ billableService?: string;
61
61
  quantity: number;
62
62
  price: number;
63
- priceName: string;
64
- priceUuid: string;
65
- lineItemOrder: number;
66
- resourceVersion: string;
67
- paymentStatus: string;
63
+ priceName?: string;
64
+ priceUuid?: string;
65
+ lineItemOrder?: number;
66
+ resourceVersion?: string;
67
+ display?: string;
68
+ voided?: boolean;
69
+ voidReason?: string | null;
68
70
  }
69
71
 
70
72
  interface PatientLink {
@@ -121,13 +123,21 @@ export interface Payment {
121
123
  resourceVersion: string;
122
124
  }
123
125
 
126
+ export type PaymentPayload = {
127
+ amount: number;
128
+ amountTendered: number;
129
+ attributes: Array<Attribute>;
130
+ instanceType: string;
131
+ dateCreated?: Date | number;
132
+ };
133
+
124
134
  export interface PatientInvoice {
125
135
  uuid: string;
126
136
  display: string;
127
137
  voided: boolean;
128
138
  voidReason: string | null;
129
- adjustedBy: any[];
130
- billAdjusted: any;
139
+ adjustedBy: Array<OpenmrsResource>;
140
+ billAdjusted: OpenmrsResource | null;
131
141
  cashPoint: CashPoint;
132
142
  cashier: Provider;
133
143
  dateCreated: string;
@@ -136,7 +146,7 @@ export interface PatientInvoice {
136
146
  payments: Payment[];
137
147
  receiptNumber: string;
138
148
  status: string;
139
- adjustmentReason: any;
149
+ adjustmentReason: string | null;
140
150
  id: number;
141
151
  resourceVersion: string;
142
152
  }
@@ -155,20 +165,16 @@ export interface FacilityDetail {
155
165
  display: string;
156
166
  }
157
167
 
158
- export type ServiceConcept = {
159
- uuid: any;
168
+ export type ConceptSearchResult = {
169
+ uuid: string;
160
170
  concept: {
161
171
  uuid: string;
162
172
  display: string;
163
173
  };
164
- conceptName: {
165
- uuid: string;
166
- display: string;
167
- };
168
174
  display: string;
169
175
  };
170
176
 
171
- export type BillabeItem = {
177
+ export type BillableItem = {
172
178
  uuid: string;
173
179
  id?: number;
174
180
  name?: string;
@@ -177,7 +183,17 @@ export type BillabeItem = {
177
183
  };
178
184
 
179
185
  export type ServicePrice = {
180
- price: string;
186
+ itemPriceId?: number;
187
+ name?: string;
188
+ price: string | number;
189
+ paymentMode?: {
190
+ paymentModeId?: number;
191
+ uuid: string;
192
+ name: string;
193
+ description?: string;
194
+ sortOrder?: number;
195
+ };
196
+ billableService?: BillableService;
181
197
  uuid: string;
182
198
  };
183
199
 
@@ -187,10 +203,52 @@ export interface BillableService {
187
203
  shortName: string;
188
204
  serviceStatus: string;
189
205
  serviceType?: {
206
+ uuid: string;
190
207
  display: string;
191
208
  };
209
+ concept?: ConceptSearchResult;
210
+ servicePrices: Array<ServicePrice>;
211
+ }
212
+
213
+ export type BillPaymentPayload = {
214
+ cashPoint: string;
215
+ cashier: string;
216
+ lineItems: Array<LineItem>;
217
+ payments: Array<PaymentPayload>;
218
+ patient: string;
219
+ status?: string;
220
+ };
221
+
222
+ export type CreateBillPayload = {
223
+ cashPoint: string;
224
+ cashier: string;
225
+ lineItems: Array<LineItem>;
226
+ payments: Array<PaymentPayload>;
227
+ patient: string;
228
+ status: string;
229
+ };
230
+
231
+ export type UpdateBillPayload = {
232
+ cashPoint: string;
233
+ cashier: string;
234
+ lineItems: Array<LineItem>;
235
+ patient: string;
236
+ status: string;
237
+ uuid: string;
238
+ payments?: Array<PaymentPayload>;
239
+ };
240
+
241
+ export type CreateBillableServicePayload = {
242
+ name: string;
243
+ shortName: string;
244
+ serviceStatus: string;
245
+ serviceType?: string;
246
+ concept?: string;
192
247
  servicePrices: Array<{
193
248
  name: string;
194
249
  price: number;
250
+ paymentMode: string;
195
251
  }>;
196
- }
252
+ };
253
+
254
+ export type UpdateBillableServicePayload = Partial<CreateBillableServicePayload>;
@@ -1,170 +1,222 @@
1
1
  {
2
- "actions": "Actions",
3
- "addBill": "Add bill item(s)",
4
- "addBillableServices": "Add Billable Services",
5
- "addCashPoint": "Add Cash Point",
2
+ "add": "Add",
3
+ "addBill": "Add bill items",
4
+ "addBillableService": "Add billable service",
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",
8
- "addPaymentMode": "Add Payment Mode",
9
- "addPaymentOptions": "Add payment option",
10
+ "addPaymentMethod": "Add payment method",
11
+ "addPaymentMode": "Add payment mode",
12
+ "addPaymentOption": "Add payment option",
10
13
  "amount": "Amount",
11
- "amountDue": "Amount Due",
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
- "amountToWaiveLabel": "Amount to Waive",
20
+ "amountToWaiveLabel": "Amount to waive",
21
+ "associatedConcept": "Associated concept",
15
22
  "billableService": "Billable service",
16
- "billableServices": "Billable Services",
17
- "billedItems": "Billed Items",
23
+ "billableServices": "Billable services",
24
+ "billableServices__lower": "billable services",
25
+ "billableServicesManagement": "Billable services management",
26
+ "billAmount": "Bill amount",
27
+ "billCode": "Bill code",
28
+ "billCreatedSuccessfully": "Bill created successfully",
29
+ "billCreationError": "Bill creation error",
30
+ "billedItems": "Billed items",
18
31
  "billedTo": "Billed to",
19
- "billErrorService": "Bill service error",
32
+ "billErrorService": "Billing service error",
20
33
  "billing": "Billing",
21
34
  "billingForm": "Billing form",
22
- "billingHistory": "Billing History",
23
- "billingSettings": "Billing Settings",
35
+ "billingHistory": "Billing history",
36
+ "billingSettings": "Billing settings",
24
37
  "billItem": "Bill item",
25
- "billItems": "Bill Items",
38
+ "billItems": "Bill items",
26
39
  "billLineItemEmpty": "This bill has no line items",
27
40
  "billList": "Bill list",
28
41
  "billMetrics": "Bill metrics",
29
- "billName": " {{billName}} ",
42
+ "billName": "{{billName}}",
30
43
  "billPayment": "Bill payment",
31
44
  "billPaymentError": "Bill payment error",
32
- "billPaymentRequiredMessage": "The current patient has pending bill. Advice patient to settle bill before receiving services",
33
- "billServicesManagement": "Bill services management",
34
- "billsList": "Bill list",
45
+ "billPaymentRequiredMessage": "The current patient has a pending bill. Advise the patient to settle the bill before receiving services",
46
+ "billProcessedSuccessfully": "Bill processed successfully",
47
+ "billProcessingError": "Bill processing error",
48
+ "billsTable": "Bills table",
35
49
  "billTotal": "Bill total",
36
50
  "billWaiver": "Bill waiver",
37
51
  "billWaiverError": "Bill waiver failed {{error}}",
38
52
  "billWaiverSuccess": "Bill waiver successful",
39
- "cancel": "Cancel",
40
- "cashPointConfig": "Cash Point Config",
41
- "cashPointHistory": "Cash Point History",
42
- "cashPointLocation": "Cash Point Location",
43
- "cashPointName": "Cash Point Name",
44
- "cashPointNamePlaceholder": "e.g., Pharmacy Cash Point",
53
+ "cashPointConfig": "Cash point configuration",
54
+ "cashPointHistory": "Cash point history",
55
+ "cashPointLocation": "Cash point location",
56
+ "cashPointName": "Cash point name",
57
+ "cashPointNamePlaceholder": "For example, Pharmacy Cash Point",
58
+ "cashPointNameRequired": "Cash point name is required",
45
59
  "cashPointSaved": "Cash point was successfully saved.",
46
- "cashPointUuid": "Cash Point UUID",
60
+ "cashPointUuid": "Cash point UUID",
47
61
  "cashPointUuidPlaceholder": "Enter UUID",
48
62
  "checkFilters": "Check the filters above",
49
- "clearSearchInput": "Clear search input",
50
- "clientBalance": "Client Balance",
51
63
  "confirmDeleteMessage": "Are you sure you want to delete this payment mode? Proceed cautiously.",
52
64
  "createdSuccessfully": "Billable service created successfully",
65
+ "cumulativeBills": "Cumulative bills",
53
66
  "currentPrice": "Current price",
54
- "delete": "Delete",
55
- "deletePaymentMode": "Delete Payment Mode",
67
+ "date": "Date",
68
+ "dateAndTime": "Date and time",
69
+ "dateOfPayment": "Date of payment",
70
+ "deletePaymentMode": "Delete payment mode",
71
+ "deleting": "Deleting",
56
72
  "description": "Description",
57
- "descriptionPlaceholder": "e.g., Used for all cash transactions",
73
+ "descriptionPlaceholder": "For example, Used for all cash transactions",
58
74
  "discard": "Discard",
59
75
  "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",
76
+ "discountAmount": "Discount amount",
62
77
  "editBillableService": "Edit billable service",
63
- "editBillableServices": "Edit Billable Services",
64
- "editBillLineItem": "Edit bill line item?",
78
+ "editBillLineItem": "Edit bill line item",
65
79
  "editThisBillItem": "Edit this bill item",
66
80
  "enterAmount": "Enter amount",
67
- "enterConcept": "Associated concept",
68
- "enterReferenceNumber": "Enter ref. number",
69
- "error": "Error",
81
+ "enterReferenceNumber": "Enter reference number",
82
+ "enterSellingPrice": "Enter selling price",
83
+ "enterServiceName": "Enter service name",
84
+ "enterServiceShortName": "Enter service short name",
85
+ "errorCreatingBill": "An error occurred while creating the bill",
70
86
  "errorDeletingPaymentMode": "An error occurred while deleting the payment mode.",
71
87
  "errorFetchingCashPoints": "An error occurred while fetching cash points.",
72
88
  "errorFetchingLocations": "An error occurred while fetching locations.",
73
89
  "errorFetchingPaymentModes": "An error occurred while fetching payment modes.",
90
+ "errorLoadingBillableServices": "Error loading billable services",
74
91
  "errorLoadingBillServices": "Error loading bill services",
75
92
  "errorLoadingPaymentModes": "Payment modes error",
93
+ "errorPrintingInvoice": "Error printing invoice",
94
+ "errorProcessingPayment": "Error processing payment",
76
95
  "errorSavingCashPoint": "An error occurred while saving the cash point.",
77
96
  "errorSavingPaymentMode": "An error occurred while saving the payment mode.",
78
- "filterBy": "Filter by",
97
+ "filterBy": "Filter by:",
79
98
  "filterTable": "Filter table",
80
99
  "grandTotal": "Grand total",
81
100
  "home": "Home",
82
101
  "identifier": "Identifier",
83
- "inlineLoading": "Loading bill items...",
84
102
  "insuranceScheme": "Insurance scheme",
103
+ "invalidUuidFormat": "Invalid UUID format",
85
104
  "invalidWaiverAmount": "Invalid waiver amount",
105
+ "inventoryItem": "Inventory item",
86
106
  "invoice": "Invoice",
107
+ "invoiceDate": "Invoice date",
87
108
  "invoiceError": "Invoice error",
109
+ "invoiceLineItems": "Invoice line items",
110
+ "invoiceNumber": "Invoice #",
111
+ "invoiceStatus": "Invoice status",
88
112
  "item": "Item",
89
113
  "itemsToBeBilled": "Items to be billed",
90
114
  "launchBillForm": "Launch bill form",
91
115
  "lineItems": "Line items",
92
- "loading": "Loading data...",
93
- "loadingBillingServices": "Loading billing services...",
116
+ "lineItemUpdated": "Line item updated",
117
+ "lineItemUpdateErrorDefault": "Unable to update the bill line item. Please try again.",
118
+ "lineItemUpdateFailed": "Failed to update line item",
119
+ "lineItemUpdateSuccess": "The bill line item has been updated successfully",
120
+ "loading": "Loading data",
121
+ "loadingBillInfo": "Loading bill information",
122
+ "loadingBillingServices": "Loading billing services",
123
+ "loadingBillItems": "Loading bill items",
124
+ "loadingBillMetrics": "Loading bill metrics",
94
125
  "loadingDescription": "Loading",
95
- "location": "Select Location",
126
+ "location": "Location",
127
+ "locationRequired": "Location is required",
96
128
  "manageBillableServices": "Manage billable services",
97
129
  "name": "Name",
98
130
  "nextPage": "Next page",
99
- "noBilltoDisplay": "There are no bills to display for this patient",
131
+ "noBillToDisplay": "There are no bills to display for this patient",
100
132
  "noMatchingBillsToDisplay": "No matching bills to display",
101
133
  "noMatchingItemsToDisplay": "No matching items to display",
102
134
  "noMatchingServicesToDisplay": "No matching services to display",
103
- "noResultsFor": "No results for",
104
- "noResultsFound": "No results found",
105
- "noServicesToDisplay": "There are no services to display",
135
+ "noResultsFor": "No results for {{searchTerm}}",
136
+ "number": "Number",
106
137
  "ok": "OK",
107
- "patientBillingAlert": "Patient Billing Alert",
108
- "patientBills": "Patient bill",
138
+ "paidBills": "Paid bills",
139
+ "patientBill": "Patient bill",
140
+ "patientBillingAlert": "Patient billing alert",
141
+ "patientBills": "Patient bills",
109
142
  "patientBillsDescription": "List of patient bills",
110
143
  "patientCategory": "Patient category",
111
- "paymentDetails": "Payment Details",
144
+ "paymentAmountCannotExceedAmountDue": "Payment amount cannot exceed amount due",
145
+ "paymentDetails": "Payment details",
112
146
  "paymentMethod": "Payment method",
147
+ "paymentMethodRequired": "Payment method is required for all items",
113
148
  "paymentMethods": "Payment methods",
114
- "paymentMode": "Payment Mode",
149
+ "paymentMode": "Payment mode",
115
150
  "paymentModeDeleted": "Payment mode was successfully deleted.",
116
- "paymentModeHistory": "Payment Mode History",
117
- "paymentModeName": "Payment Mode Name",
118
- "paymentModeNamePlaceholder": "e.g., Cash, Credit Card",
151
+ "paymentModeHistory": "Payment mode history",
152
+ "paymentModeNameLabel": "Payment mode name",
153
+ "paymentModeNamePlaceholder": "For example, Cash, Credit Card",
154
+ "paymentModeNameRequired": "Payment mode name is required",
155
+ "paymentModeNameToDelete": "Payment mode name: {{paymentModeName}}",
156
+ "paymentModeRequired": "Payment mode is required",
119
157
  "paymentModeSaved": "Payment mode was successfully saved.",
120
- "paymentModesConfig": "Payment Modes Config",
158
+ "paymentModesConfig": "Payment modes configuration",
159
+ "paymentOptionRequired": "At least one payment option is required",
160
+ "paymentProcessedSuccessfully": "Payment processed successfully",
121
161
  "payments": "Payments",
122
- "pleaseRequiredFields": "Please fill all required fields",
162
+ "pendingBills": "Pending bills",
123
163
  "policyNumber": "Policy number",
124
164
  "postWaiver": "Post waiver",
125
165
  "previousPage": "Previous page",
126
166
  "price": "Price",
127
167
  "priceIsRequired": "Price is required",
168
+ "priceMustBeNumber": "Price must be a valid number",
169
+ "priceMustBePositive": "Price must be greater than 0",
128
170
  "prices": "Prices",
129
171
  "printBill": "Print bill",
130
172
  "printReceipt": "Print receipt",
131
- "processPayment": "Process Payment",
173
+ "processPayment": "Process payment",
132
174
  "quantity": "Quantity",
133
- "quantityGreaterThanZero": "Quantity must be greater than zero",
175
+ "quantityCannotExceed100": "Quantity cannot exceed 100",
176
+ "quantityMustBeAtLeastOne": "Quantity must be at least 1",
177
+ "quantityMustBeInteger": "Quantity must be a whole number",
178
+ "quantityMustBeNumber": "Quantity must be a valid number",
134
179
  "quantityRequired": "Quantity is required",
135
180
  "referenceNumber": "Reference number",
136
- "save": "Save",
181
+ "remove": "Remove",
182
+ "removePaymentMethod": "Remove payment method",
137
183
  "saveAndClose": "Save and close",
184
+ "saveBill": "Save bill",
138
185
  "saving": "Saving",
139
186
  "searchConcepts": "Search associated concept",
140
187
  "searching": "Searching",
141
188
  "searchItems": "Search items and services",
142
189
  "searchThisTable": "Search this table",
143
- "selectBillableService": "Select a billable service...",
144
- "selectCategory": "Select category",
190
+ "selectBillableService": "Select a billable service",
191
+ "selectedItems": "Selected items",
192
+ "selectLocation": "Select location",
145
193
  "selectPatientCategory": "Select patient category",
146
194
  "selectPaymentMethod": "Select payment method",
147
- "sellingAmount": "Enter selling price",
148
- "sellingPrice": "Selling Price",
149
- "service": "Service",
150
- "serviceMetrics": "Service Metrics",
151
- "serviceName": "Service Name",
152
- "serviceNameExceedsLimit": "Service Name exceeds the character limit of {{MAX_NAME_LENGTH}}.",
153
- "serviceShortName": "Short Name",
195
+ "selectPaymentMode": "Select payment mode",
196
+ "selectServiceType": "Select service type",
197
+ "sellingPrice": "Selling price",
198
+ "serviceList": "Service list",
199
+ "serviceName": "Service name",
200
+ "serviceNameExceedsLimit": "Service name exceeds the character limit of {{MAX_NAME_LENGTH}}.",
201
+ "serviceNameRequired": "Service name is required",
154
202
  "servicesList": "Services list",
155
- "serviceType": "Service Type",
156
- "shortName": "Short Name",
157
- "shortNameExceedsLimit": "Short Name exceeds the character limit of {{MAX_NAME_LENGTH}}.",
158
- "status": "Service Status",
159
- "stockItem": "Stock Item",
160
- "submitting": "Submitting...",
203
+ "serviceStatus": "Service status",
204
+ "serviceType": "Service type",
205
+ "serviceTypeRequired": "Service type is required",
206
+ "shortName": "Short name",
207
+ "shortNameExceedsLimit": "Short name exceeds the character limit of {{MAX_NAME_LENGTH}}.",
208
+ "status": "Service status",
209
+ "submitting": "Submitting",
161
210
  "success": "Success",
162
211
  "total": "Total",
163
- "totalAmount": "Total Amount",
164
- "totalTendered": "Total Tendered",
212
+ "totalAmount": "Total amount",
213
+ "totalTendered": "Total tendered",
165
214
  "unitPrice": "Unit price",
215
+ "unitPriceHelperText": "This is the unit price for this item",
166
216
  "updatedSuccessfully": "Billable service updated successfully",
167
217
  "uuid": "UUID",
218
+ "uuidRequired": "UUID is required",
219
+ "validationError": "Validation error",
168
220
  "visitTime": "Visit time",
169
221
  "waiverForm": "Waiver form"
170
222
  }