@kenyaemr/esm-billing-app 5.1.2-pre.576 → 5.1.2-pre.580

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 (33) hide show
  1. package/.turbo/turbo-build.log +7 -7
  2. package/__mocks__/visit.mock.ts +151 -0
  3. package/dist/227.js +1 -0
  4. package/dist/227.js.map +1 -0
  5. package/dist/364.js +1 -1
  6. package/dist/364.js.map +1 -1
  7. package/dist/574.js +1 -1
  8. package/dist/kenyaemr-esm-billing-app.js +1 -1
  9. package/dist/kenyaemr-esm-billing-app.js.buildmanifest.json +34 -34
  10. package/dist/kenyaemr-esm-billing-app.js.map +1 -1
  11. package/dist/main.js +1 -1
  12. package/dist/main.js.map +1 -1
  13. package/dist/routes.json +1 -1
  14. package/package.json +2 -2
  15. package/src/bill-history/bill-history.component.tsx +17 -15
  16. package/src/bill-history/bill-history.scss +1 -6
  17. package/src/billable-services/billable-service.resource.tsx +1 -1
  18. package/src/billable-services/billable-services.test.tsx +1 -1
  19. package/src/billable-services/create-edit/add-billable-service.component.tsx +11 -3
  20. package/src/billable-services/create-edit/add-billable-service.test.tsx +25 -10
  21. package/src/billable-services-admin-card-link.component.test.tsx +4 -4
  22. package/src/billing-prompt/billing-prompt.resource.tsx +3 -2
  23. package/src/dashboard.meta.ts +2 -2
  24. package/src/index.ts +0 -2
  25. package/src/invoice/payments/payment-form/payment-form.component.tsx +1 -1
  26. package/src/modal/require-payment-modal.component.tsx +45 -29
  27. package/src/modal/require-payment.scss +5 -0
  28. package/src/modal/require-payment.test.tsx +85 -0
  29. package/src/routes.json +2 -2
  30. package/translations/en.json +2 -2
  31. package/dist/794.js +0 -1
  32. package/dist/794.js.map +0 -1
  33. package/src/billing-prompt/billing-prompt.component.tsx +0 -40
@@ -1,4 +1,4 @@
1
- assets by path *.js 2.28 MiB
1
+ assets by path *.js 2.29 MiB
2
2
  assets by chunk 1.33 MiB (id hint: vendors)
3
3
  assets by status 1.27 MiB [big]
4
4
  asset 130.js 782 KiB [emitted] [minimized] [big] (id hint: vendors) 2 related assets
@@ -10,12 +10,12 @@ assets by path *.js 2.28 MiB
10
10
  assets by path *.json 9.97 KiB
11
11
  asset kenyaemr-esm-billing-app.js.buildmanifest.json 8.34 KiB [emitted]
12
12
  asset routes.json 1.63 KiB [emitted] [from: src/routes.json] [copied]
13
- orphan modules 3.38 MiB [orphan] 626 modules
13
+ orphan modules 3.38 MiB [orphan] 625 modules
14
14
  runtime modules 39.5 KiB 28 modules
15
15
  built modules 5.81 MiB (javascript) 252 bytes (share-init) 252 bytes (consume-shared) [built]
16
16
  modules by path ../../node_modules/ 5.43 MiB 102 modules
17
- modules by path ./ 382 KiB
18
- modules by path ./src/ 377 KiB 27 modules
17
+ modules by path ./ 385 KiB
18
+ modules by path ./src/ 381 KiB 27 modules
19
19
  modules by path ./translations/ 4.68 KiB 2 modules
20
20
  provide-module modules 252 bytes
21
21
  modules by path provide shared module (default) swr/ 84 bytes 2 modules
@@ -28,14 +28,14 @@ built modules 5.81 MiB (javascript) 252 bytes (share-init) 252 bytes (consume-sh
28
28
  WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
29
29
  This can impact web performance.
30
30
  Assets:
31
- main.js (721 KiB)
31
+ main.js (723 KiB)
32
32
  130.js (782 KiB)
33
33
  364.js (519 KiB)
34
34
 
35
35
  WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
36
36
  Entrypoints:
37
- main (721 KiB)
37
+ main (723 KiB)
38
38
  main.js
39
39
  
40
40
 
41
- webpack 5.88.0 compiled with 2 warnings in 157758 ms
41
+ webpack 5.88.0 compiled with 2 warnings in 26392 ms
@@ -0,0 +1,151 @@
1
+ export const mockCurrentVisit = {
2
+ uuid: 'ee527f74-7373-4494-98bc-002c979971d1',
3
+ encounters: [],
4
+ patient: { uuid: '0b25b92a-add3-4d52-8491-778bec556e02' },
5
+ visitType: { uuid: '3371a4d4-f66f-4454-a86d-92c7b3da990c', name: 'Outpatient', display: 'Outpatient' },
6
+ attributes: [
7
+ {
8
+ uuid: 'e1522ecb-d027-4c30-aa25-38698ba18020',
9
+ display: 'Source form: 13',
10
+ attributeType: {
11
+ name: 'Source form',
12
+ datatypeClassname: 'org.openmrs.module.kenyaemr.datatype.FormDatatype',
13
+ uuid: '8bfab185-6947-4958-b7ab-dfafae1a3e3d',
14
+ },
15
+ value: {
16
+ uuid: '23b4ebbd-29ad-455e-be0e-04aa6bc30798',
17
+ display: 'MOH 257 Visit Summary',
18
+ name: 'MOH 257 Visit Summary',
19
+ description: null,
20
+ encounterType: {
21
+ uuid: 'a0034eee-1940-4e35-847f-97537a35d05e',
22
+ display: 'HIV Consultation',
23
+ },
24
+ version: '1',
25
+ build: null,
26
+ published: true,
27
+ formFields: [],
28
+ retired: false,
29
+ resourceVersion: '1.9',
30
+ },
31
+ },
32
+ {
33
+ uuid: '5dbb093d-b377-4684-9583-05074ae7187a',
34
+ display: 'Payment Method: 28989582-e8c3-46b0-96d0-c249cb06d5c6',
35
+ attributeType: {
36
+ name: 'Payment Method',
37
+ datatypeClassname: 'org.openmrs.customdatatype.datatype.FreeTextDatatype',
38
+ uuid: 'e6cb0c3b-04b0-4117-9bc6-ce24adbda802',
39
+ },
40
+ value: '28989582-e8c3-46b0-96d0-c249cb06d5c6',
41
+ },
42
+ {
43
+ uuid: '85abc096-8524-4c2e-863c-b44c99c144f7',
44
+ display: 'Patient Type: false',
45
+ attributeType: {
46
+ name: 'Patient Type',
47
+ datatypeClassname: 'org.openmrs.customdatatype.datatype.FreeTextDatatype',
48
+ uuid: '3b9dfac8-9e4d-11ee-8c90-0242ac120002',
49
+ },
50
+ value: 'false',
51
+ },
52
+ {
53
+ uuid: '7eb402bb-2bf8-43b7-91aa-ee3f5c753de1',
54
+ display: 'Visit queue number: CLI-090',
55
+ attributeType: {
56
+ name: 'Visit queue number',
57
+ datatypeClassname: 'org.openmrs.customdatatype.datatype.FreeTextDatatype',
58
+ uuid: 'c61ce16f-272a-41e7-9924-4c555d0932c5',
59
+ },
60
+ value: 'CLI-090',
61
+ },
62
+ ],
63
+ location: {
64
+ uuid: '233de33e-2778-4f9a-a398-fa09da9daa14',
65
+ name: 'Wamagana Health Centre',
66
+ display: 'Wamagana Health Centre',
67
+ },
68
+ startDatetime: '2024-05-29T15:19:00.000+0300',
69
+ stopDatetime: '',
70
+ };
71
+
72
+ export const mockBills = [
73
+ {
74
+ id: 1888,
75
+ uuid: '3b784fa7-c124-4710-9152-cad3dbaa19e8',
76
+ patientName: ' Test Unit patient',
77
+ identifier: 'MGTKYE ',
78
+ patientUuid: '0b25b92a-add3-4d52-8491-778bec556e02',
79
+ status: 'PENDING',
80
+ receiptNumber: '1916-6',
81
+ cashier: {
82
+ uuid: '693acc9b-734f-488d-b6d2-60368d02cec0',
83
+ display: '23797304 - Test Patient',
84
+ },
85
+ cashPointUuid: '54065383-b4d4-42d2-af4d-d250a1fd2590',
86
+ cashPointName: 'OPD Cash Point',
87
+ cashPointLocation: 'Moi Teaching Refferal Hospital',
88
+ dateCreated: '29 — May — 2024',
89
+ lineItems: [
90
+ {
91
+ uuid: '528c3411-b3b8-41dc-bf88-174b4adc1b5b',
92
+ display: 'BillLineItem',
93
+ voided: false,
94
+ voidReason: null,
95
+ item: '',
96
+ billableService: '3f5d0684-a280-477e-a67b-2a956a1f6dca:Registration Revist',
97
+ quantity: 1,
98
+ price: 50,
99
+ priceName: 'Default',
100
+ priceUuid: '',
101
+ lineItemOrder: 0,
102
+ paymentStatus: 'PENDING',
103
+ order: null,
104
+ resourceVersion: '1.8',
105
+ },
106
+ ],
107
+ billingService: '3f5d0684-a280-477e-a67b-2a956a1f6dca:Registration Revist',
108
+ payments: [],
109
+ display: '1916-6',
110
+ totalAmount: 50,
111
+ },
112
+ {
113
+ id: 1213,
114
+ uuid: '5b633220-9a99-4517-bcdf-c06a7d38dd23',
115
+ patientName: ' peter ndungu mairo',
116
+ identifier: 'MGTKYE ',
117
+ patientUuid: '0b25b92a-add3-4d52-8491-778bec556e02',
118
+ status: 'PENDING',
119
+ receiptNumber: '1228-6',
120
+ cashier: {
121
+ uuid: '48b55692-e061-4ffa-b1f2-fd4aaf506224',
122
+ display: 'admin - Super User',
123
+ },
124
+ cashPointUuid: '54065383-b4d4-42d2-af4d-d250a1fd2590',
125
+ cashPointName: 'OPD Cash Point',
126
+ cashPointLocation: 'Moi Teaching Refferal Hospital',
127
+ dateCreated: '15 — May — 2024',
128
+ lineItems: [
129
+ {
130
+ uuid: '16cc8b90-f2d4-4907-a3d5-0f57486e5dcf',
131
+ display: 'BillLineItem',
132
+ voided: false,
133
+ voidReason: null,
134
+ item: '',
135
+ billableService: '3f5d0684-a280-477e-a67b-2a956a1f6dca:Registration Revist',
136
+ quantity: 1,
137
+ price: 50,
138
+ priceName: 'Default',
139
+ priceUuid: '',
140
+ lineItemOrder: 0,
141
+ paymentStatus: 'PENDING',
142
+ order: null,
143
+ resourceVersion: '1.8',
144
+ },
145
+ ],
146
+ billingService: '3f5d0684-a280-477e-a67b-2a956a1f6dca:Registration Revist',
147
+ payments: [],
148
+ display: '1228-6',
149
+ totalAmount: 50,
150
+ },
151
+ ];