@openmrs/esm-stock-management-app 3.1.1-pre.1177 → 3.1.1-pre.1184
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/.husky/pre-commit +0 -5
- package/.husky/pre-push +0 -3
- package/dist/130.js +1 -1
- package/dist/130.js.map +1 -1
- package/dist/2177.js +1 -1
- package/dist/2177.js.map +1 -1
- package/dist/3220.js +1 -1
- package/dist/3220.js.map +1 -1
- package/dist/4300.js +1 -1
- package/dist/4732.js +1 -1
- package/dist/4732.js.map +1 -1
- package/dist/5125.js +1 -1
- package/dist/5125.js.map +1 -1
- package/dist/5333.js +1 -1
- package/dist/5333.js.map +1 -1
- package/dist/5609.js +1 -1
- package/dist/5609.js.map +1 -1
- package/dist/6184.js +1 -1
- package/dist/6184.js.map +1 -1
- package/dist/6757.js +1 -1
- package/dist/6757.js.map +1 -1
- package/dist/8161.js +1 -1
- package/dist/8161.js.map +1 -1
- package/dist/9186.js +1 -1
- package/dist/9186.js.map +1 -1
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/openmrs-esm-stock-management-app.js +1 -1
- package/dist/openmrs-esm-stock-management-app.js.buildmanifest.json +42 -42
- package/dist/routes.json +1 -1
- package/package.json +1 -1
- package/src/constants.ts +2 -3
- package/src/core/components/carbon/controlled-combo-box.component.tsx +12 -9
- package/src/core/components/carbon/controlled-radio-button-group.component.tsx +21 -16
- package/src/core/components/table/table.component.tsx +26 -17
- package/src/core/components/table/table.scss +4 -0
- package/src/core/components/table/types.ts +12 -0
- package/src/core/components/tabs/vertical-tabs.component.tsx +2 -6
- package/src/declarations.d.ts +0 -3
- package/src/stock-home/stock-home-inventory-card.component.tsx +2 -2
- package/src/stock-items/add-stock-item/add-stock-item.component.tsx +1 -1
- package/src/stock-items/add-stock-item/batch-information/batch-information-locations/batch-information-locations-filter.component.tsx +0 -3
- package/src/stock-items/add-stock-item/batch-information/batch-information.component.tsx +4 -4
- package/src/stock-items/add-stock-item/dispensing-package-measurement/dispensing-package-measurement.component.tsx +2 -5
- package/src/stock-items/add-stock-item/drug-selector/drug-selector.component.tsx +4 -8
- package/src/stock-items/add-stock-item/packaging-units/packaging-units-delete.modal.tsx +2 -2
- package/src/stock-items/add-stock-item/packaging-units/packaging-units.component.tsx +32 -18
- package/src/stock-items/add-stock-item/packaging-units-concept-selector/packaging-units-concept-selector.component.tsx +2 -5
- package/src/stock-items/add-stock-item/preferred-vendor-selector/preferred-vendor-selector.component.tsx +0 -3
- package/src/stock-items/add-stock-item/stock-item-category-selector/stock-item-category-selector.component.tsx +2 -5
- package/src/stock-items/add-stock-item/stock-item-details/stock-item-details.component.tsx +10 -10
- package/src/stock-items/add-stock-item/stock-item-references/stock-item-references.component.tsx +36 -27
- package/src/stock-items/add-stock-item/stock-item-references/stock-references-selector.component.tsx +2 -5
- package/src/stock-items/add-stock-item/stock-item-rules/add-stock-rules.component.tsx +16 -16
- package/src/stock-items/add-stock-item/stock-item-rules/stock-item-rules.component.tsx +10 -9
- package/src/stock-items/add-stock-item/stock-item-rules/stock-rules-filter.component.tsx +8 -3
- package/src/stock-items/add-stock-item/stock-item-units-edit/stock-item-units-edit.component.tsx +2 -2
- package/src/stock-items/add-stock-item/transactions/printout/printable-bincard-transaction-header.component.tsx +5 -5
- package/src/stock-items/add-stock-item/transactions/printout/printable-stockcard-transaction-header.component.tsx +3 -3
- package/src/stock-items/add-stock-item/transactions/printout/transactions-print-action.component.tsx +2 -5
- package/src/stock-items/add-stock-item/transactions/printout/transactions-print-bincard-preview.modal.tsx +1 -1
- package/src/stock-items/add-stock-item/transactions/transaction-filters/transaction-locations-filter.component.tsx +0 -3
- package/src/stock-items/components/filter-stock-items/filter-stock-items.component.tsx +6 -4
- package/src/stock-items/edit-stock-item/edit-stock-item-action-menu.component.tsx +1 -1
- package/src/stock-items/stock-items-table.component.tsx +21 -15
- package/src/stock-items/stock-items-table.resource.ts +1 -1
- package/src/stock-items/stock-items.resource.ts +1 -2
- package/src/stock-locations/add-locations-form.workspace.tsx +9 -11
- package/src/stock-locations/location-admin-form.component.tsx +9 -4
- package/src/stock-locations/stock-locations-table.component.tsx +3 -3
- package/src/stock-lookups/stock-lookups.resource.ts +2 -2
- package/src/stock-management-admin-card-link.component.tsx +1 -1
- package/src/stock-operations/add-stock-operation/stock-operations-expanded-row/stock-items-table.tsx +12 -8
- package/src/stock-operations/add-stock-operation/stock-operations-expanded-row/stock-operation-expanded-row.component.tsx +4 -4
- package/src/stock-operations/edit-stock-operation/edit-stock-operation-action-menu.component.tsx +6 -7
- package/src/stock-operations/stock-operation-operations-filter/stock-operation-operations-filter.component.tsx +7 -3
- package/src/stock-operations/stock-operation-sources-filter/stock-operation-sources-filter.component.tsx +8 -4
- package/src/stock-operations/stock-operation-statuses-filter/stock-operation-statuses-filter.component.tsx +16 -14
- package/src/stock-operations/stock-operation-types-selector/stock-operation-types-selector.component.tsx +4 -4
- package/src/stock-operations/stock-operations-filters.component.tsx +4 -2
- package/src/stock-operations/stock-operations-forms/input-components/batch-no-selector.component.tsx +2 -2
- package/src/stock-operations/stock-operations-forms/input-components/batch-no-selector.test.tsx +1 -1
- package/src/stock-operations/stock-operations-forms/input-components/qty-uim-selector.test.tsx +1 -1
- package/src/stock-operations/stock-operations-forms/input-components/quantity-uom-selector.component.tsx +3 -3
- package/src/stock-operations/stock-operations-forms/input-components/stock-item-search.component.tsx +3 -4
- package/src/stock-operations/stock-operations-forms/input-components/stock-operation-reason-selector.component.tsx +3 -3
- package/src/stock-operations/stock-operations-forms/input-components/users-selector.component.tsx +6 -6
- package/src/stock-operations/stock-operations-forms/step2.test.tsx +1 -5
- package/src/stock-operations/stock-operations-forms/steps/base-operation-details-form-step.tsx +15 -16
- package/src/stock-operations/stock-operations-forms/steps/quantity-uom-cell.component.tsx +1 -1
- package/src/stock-operations/stock-operations-forms/steps/received-items.component.tsx +2 -2
- package/src/stock-operations/stock-operations-forms/steps/stock-operation-items-form-step.component.tsx +24 -21
- package/src/stock-operations/stock-operations-forms/steps/stock-operation-submission-form-step.component.tsx +4 -4
- package/src/stock-operations/stock-operations-forms/stock-item-form/stock-item-form.workspace.tsx +60 -53
- package/src/stock-operations/stock-operations-forms/stock-operation-form.component.tsx +17 -12
- package/src/stock-operations/stock-operations-modal/stock-operations-completed-dispatch-button.component.tsx +1 -1
- package/src/stock-operations/stock-operations-modal/stock-operations-issue-stock-button.component.tsx +1 -1
- package/src/stock-operations/stock-operations-modal/stock-operations-print-button.component.tsx +6 -2
- package/src/stock-operations/stock-operations-modal/stock-operations-reject-button.component.tsx +4 -5
- package/src/stock-operations/stock-operations-modal/stock-operations.modal.tsx +4 -2
- package/src/stock-operations/stock-operations-table.component.tsx +16 -12
- package/src/stock-operations/stock-operations-table.resource.ts +1 -0
- package/src/stock-reports/generate-report/create-stock-report.workspace.tsx +31 -35
- package/src/stock-reports/report-list/stock-reports.component.tsx +5 -9
- package/src/stock-reports/stock-reports.resource.ts +1 -1
- package/src/stock-sources/add-stock-sources/add-stock-sources.workspace.tsx +6 -6
- package/src/stock-sources/stock-sources-items-table.component.tsx +14 -10
- package/src/stock-user-role-scopes/add-stock-user-scope/add-stock-user-role-scope.workspace.tsx +52 -53
- package/src/stock-user-role-scopes/delete-stock-user-scope/delete-stock-user-scope.component.tsx +1 -1
- package/src/stock-user-role-scopes/delete-stock-user-scope.modal.tsx +4 -1
- package/src/stock-user-role-scopes/stock-user-role-scopes-items-table.component.tsx +8 -12
- package/translations/en.json +105 -71
- package/src/core/components/carbon/controlled-dropdown.component.tsx +0 -37
package/translations/en.json
CHANGED
|
@@ -5,32 +5,32 @@
|
|
|
5
5
|
"actionFrequency": "Notification Frequency (Minutes)",
|
|
6
6
|
"actions": "Actions",
|
|
7
7
|
"activeFrom": "Active From",
|
|
8
|
-
"ActiveFrom": "Active From ",
|
|
9
8
|
"activeTo": "Active To",
|
|
10
|
-
"addedRule": "Add
|
|
9
|
+
"addedRule": "Add rule",
|
|
11
10
|
"addedSource": "Add Source",
|
|
12
11
|
"addItem": "Add stock item",
|
|
13
12
|
"addLocation": "Create new Location",
|
|
14
13
|
"addNewStockRule": "Add New Rule",
|
|
15
14
|
"addNewStockSource": "Add new source",
|
|
16
15
|
"addNewUserRoleScope": "Add new user role scope",
|
|
17
|
-
"addStockItem": "Add
|
|
16
|
+
"addStockItem": "Add stock item",
|
|
18
17
|
"addStockOperation": "Add stock operation",
|
|
19
18
|
"addStockRule": "Add stock rule",
|
|
20
19
|
"addUserRole": "Add User role",
|
|
21
20
|
"adminSettings": "Admin settings",
|
|
22
|
-
"alertRole": "Alert
|
|
21
|
+
"alertRole": "Alert role",
|
|
23
22
|
"all": "All",
|
|
24
23
|
"approve": "Approve",
|
|
25
24
|
"batch": "Batch No",
|
|
26
25
|
"batchInformation": "Batch Information",
|
|
27
|
-
"batchJob": "Batch
|
|
26
|
+
"batchJob": "Batch job",
|
|
28
27
|
"batchJobErrorMessage": "Error creating batch job",
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"batchNo": "Batch
|
|
28
|
+
"batchJobErrorTitle": "Batch job",
|
|
29
|
+
"batchJobSuccess": "Batch job created successfully",
|
|
30
|
+
"batchNo": "Batch number",
|
|
32
31
|
"batchNumber": "Batch Number",
|
|
33
|
-
"
|
|
32
|
+
"batchNumberLabel": "Batch number:",
|
|
33
|
+
"binCard": "Bin card",
|
|
34
34
|
"by": "By",
|
|
35
35
|
"cancel": "Cancel",
|
|
36
36
|
"cancelled": "Cancelled",
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
"checkFilters": "Check the filters above",
|
|
39
39
|
"chooseACategory": "Choose a category",
|
|
40
40
|
"chooseADestination": "Choose a destination",
|
|
41
|
+
"chooseADrug": "Choose a drug",
|
|
41
42
|
"chooseAlertRole": "Choose an Alert Role",
|
|
42
43
|
"chooseALocation": "Choose a location",
|
|
43
44
|
"chooseAnItem": "Choose an item",
|
|
@@ -53,54 +54,62 @@
|
|
|
53
54
|
"clearSearch": "Clear search input",
|
|
54
55
|
"code": "Code",
|
|
55
56
|
"comingSoonUnderDev": "Exciting updates are on the way! In the meantime, use the link below to access Admin UI settings.",
|
|
56
|
-
"commonName": "Common
|
|
57
|
+
"commonName": "Common name",
|
|
57
58
|
"complete": "Complete",
|
|
58
59
|
"completed": "Completed",
|
|
60
|
+
"completeDispatch": "Complete dispatch",
|
|
61
|
+
"confirmOperation": "Would you really like to {{title}} the operation?",
|
|
59
62
|
"createLocation": "Create Location",
|
|
60
63
|
"date": "Date",
|
|
61
64
|
"dateRequested": "Date Requested",
|
|
62
65
|
"defaultStockOperationsPackagingUnit": "Default stock operations packaging unit",
|
|
63
|
-
"defaultStockOperationsUoMName": "Bulk
|
|
66
|
+
"defaultStockOperationsUoMName": "Bulk packaging",
|
|
64
67
|
"delete": "Delete",
|
|
65
68
|
"deleteConfirmationText": "Are you sure you want to delete this User Scope? This action can't be undone.",
|
|
66
|
-
"
|
|
67
|
-
"
|
|
69
|
+
"deletePackagingUnitMessage": "Stock item packing unit deleted successfully",
|
|
70
|
+
"deletePackingItem": "Delete packing item",
|
|
68
71
|
"deletePackingUnitErrorTitle": "Error Deleting a stock item packing unit",
|
|
69
72
|
"deleteRule": "Delete Rule",
|
|
70
73
|
"deleteRuleConfirmationText": "Are you sure you want to delete this stock rule? This action can't be undone.",
|
|
71
74
|
"deleteSource": "Delete Source",
|
|
72
75
|
"deleteStock": "Delete Stock source",
|
|
73
|
-
"
|
|
76
|
+
"deleteStockItemReference": "Delete stock item reference",
|
|
77
|
+
"deleteStockItemReferenceMessage": "Stock item reference deleted successfully",
|
|
74
78
|
"deleteStockItemReferenceTitle": "Error Deleting a stockitem reference",
|
|
75
79
|
"deleteStockRule": "Delete Stock Rule",
|
|
76
80
|
"deleteStockUserScope": "Delete Stock User Scope",
|
|
77
81
|
"deleteUserRoleScope": "Delete user role scope",
|
|
82
|
+
"deleteUserScopeConfirmation": "Are you sure you want to delete this User Scope? This action can't be undone.",
|
|
78
83
|
"deletingRule": "Delete Rule",
|
|
79
84
|
"deletingSource": "Delete Source",
|
|
80
|
-
"
|
|
81
|
-
"destination": "
|
|
85
|
+
"deletingStockUserScope": "Delete Stock User Scope",
|
|
86
|
+
"destination": "Destination",
|
|
82
87
|
"details": "Details",
|
|
83
88
|
"discard": "Discard",
|
|
84
89
|
"dispatch": "Dispatch",
|
|
85
90
|
"dispatched": "Dispatched",
|
|
86
91
|
"dispatching": "Dispatching",
|
|
87
|
-
"dispensingUnit": "Dispensing
|
|
92
|
+
"dispensingUnit": "Dispensing unit",
|
|
88
93
|
"dispensingUnitHolder": "Choose a dispensing unit",
|
|
89
94
|
"dispensingUnitName": "Dispensing UoM",
|
|
90
95
|
"dispensingUnitOfMeasurement": "Dispensing packaging unit of measurement",
|
|
91
96
|
"disposedStock": "Disposed stock",
|
|
92
97
|
"doesThisTransactionRequireApproval": "Does the transaction require approval ?",
|
|
98
|
+
"downloadAsCSV": "Download As CSV",
|
|
99
|
+
"downloadAsJson": "Download As JSON",
|
|
100
|
+
"downloadOptions": "Download options",
|
|
93
101
|
"drug": "Drug",
|
|
102
|
+
"edit": "Edit",
|
|
94
103
|
"editOperationTitle": "Edit {{operationType}}",
|
|
95
|
-
"editStockItem": "Edit
|
|
104
|
+
"editStockItem": "Edit stock item",
|
|
96
105
|
"editStockOperation": "Edit stock operation",
|
|
97
106
|
"editStockRule": "Edit Stock Rule",
|
|
98
107
|
"editStockSource": "Edit stock source",
|
|
99
108
|
"editUserRoleScope": "Edit user role scope",
|
|
100
109
|
"enabled": "Enabled",
|
|
101
|
-
"endDate": "End
|
|
110
|
+
"endDate": "End date",
|
|
102
111
|
"ended": "Ended",
|
|
103
|
-
"
|
|
112
|
+
"enterRemarksPlaceholder": "Enter remarks...",
|
|
104
113
|
"error": "Error",
|
|
105
114
|
"errorAddingRule": "Error adding a rule",
|
|
106
115
|
"errorAddingSource": "Error adding a source",
|
|
@@ -121,24 +130,30 @@
|
|
|
121
130
|
"evaluationFrequency": "Frequency Check (Minutes)",
|
|
122
131
|
"executionState": "Execution State",
|
|
123
132
|
"exitMessage": "Message",
|
|
133
|
+
"expiration": "Expiration date",
|
|
124
134
|
"expirationNotice": "Expiration Notice (days)",
|
|
125
135
|
"expired": "Expired",
|
|
126
136
|
"expiredStock": "Expired stock",
|
|
127
137
|
"expires": "Expires",
|
|
128
|
-
"expiriation": "Expiration Date",
|
|
129
138
|
"expiringStock": "Expiring stock",
|
|
130
139
|
"expiry": "Expiry",
|
|
131
140
|
"expiryNoticeDays": "Expiration Notice (days)",
|
|
132
141
|
"filter": "Filter...",
|
|
142
|
+
"filterBy": "Filter by {{filterName}}",
|
|
133
143
|
"filterByLocation": "Filter by Location",
|
|
144
|
+
"filterByOperationType": "Filter by operation type",
|
|
145
|
+
"filterBySource": "Filter by source",
|
|
146
|
+
"filterByStatus": "Filter by status",
|
|
147
|
+
"filterPlaceholder": "Filter...",
|
|
148
|
+
"filterStockRules": "Filter stock rules",
|
|
149
|
+
"filterUsers": "Filter users",
|
|
134
150
|
"findItems": "Find your items",
|
|
135
|
-
"formCreated": "Add Location",
|
|
136
151
|
"from": "From",
|
|
137
152
|
"fulfillment": "Fulfillment",
|
|
138
|
-
"fullFulfillment": "Full
|
|
153
|
+
"fullFulfillment": "Full fulfillment",
|
|
139
154
|
"fullName": "Full Name",
|
|
140
155
|
"generatedMessage": "The card has been electronically generated and is a valid document. It was created by {{userName}} on {{date}}",
|
|
141
|
-
"genericName": "Generic
|
|
156
|
+
"genericName": "Generic name",
|
|
142
157
|
"hasExpiration": "Does the item expire?",
|
|
143
158
|
"import": "Import",
|
|
144
159
|
"importStockItems": "Import Stock Items",
|
|
@@ -151,31 +166,36 @@
|
|
|
151
166
|
"issueStock": "Issue Stock ",
|
|
152
167
|
"issuing": "Issuing",
|
|
153
168
|
"item": "Item",
|
|
154
|
-
"itemAlreadyExists": "Item already
|
|
155
|
-
"itemDetails": "Item
|
|
156
|
-
"
|
|
157
|
-
"itemType": "Item
|
|
158
|
-
"leastMoving": "Least
|
|
169
|
+
"itemAlreadyExists": "Item already exists",
|
|
170
|
+
"itemDetails": "Item details",
|
|
171
|
+
"itemName": "Item name",
|
|
172
|
+
"itemType": "Item type",
|
|
173
|
+
"leastMoving": "Least moving",
|
|
159
174
|
"limit": "Limit",
|
|
160
|
-
"loading": "Loading
|
|
161
|
-
"loading StockoperationLinks": "Loading stock operation links",
|
|
175
|
+
"loading": "Loading",
|
|
162
176
|
"loadingData": "Loading data...",
|
|
163
177
|
"loadingOperationActions": "Loading stock operation actions",
|
|
178
|
+
"loadingOperationActionsIcon": "Loading stock operation actions",
|
|
164
179
|
"loadingOperationTypes": "Loading operation types",
|
|
180
|
+
"loadingPlaceholder": "Loading...",
|
|
181
|
+
"loadingStockOperationLinks": "Loading stock operation links",
|
|
182
|
+
"loadingStockOperationLinksIcon": "Loading stock operation links",
|
|
165
183
|
"location": "Location(s)",
|
|
166
|
-
"
|
|
167
|
-
"locationAndStockItem": "Location and
|
|
184
|
+
"locationAndBatchNo": "Location and batch",
|
|
185
|
+
"locationAndStockItem": "Location and stock item",
|
|
168
186
|
"locationCreatedSuccessfully": "Location {{locationName}} was created successfully.",
|
|
187
|
+
"locationCreatedTitle": "Location created",
|
|
188
|
+
"locationName": "Location name",
|
|
169
189
|
"locationPlaceholder": "Add a location",
|
|
170
190
|
"locations": "Locations",
|
|
171
|
-
"mailRole": "Mail
|
|
172
|
-
"manageStock": "Manage
|
|
191
|
+
"mailRole": "Mail role",
|
|
192
|
+
"manageStock": "Manage stock",
|
|
173
193
|
"maxReorderLevelRatio": "Max reorder level ratio",
|
|
174
|
-
"mostMoving": "Most
|
|
175
|
-
"name": "Name",
|
|
194
|
+
"mostMoving": "Most moving",
|
|
176
195
|
"newOperationTitle": "New: {{operationName}}",
|
|
177
196
|
"newReport": "New Report",
|
|
178
|
-
"
|
|
197
|
+
"nextButton": "Next",
|
|
198
|
+
"nextPage": "Next page",
|
|
179
199
|
"no": "No",
|
|
180
200
|
"noCommonNameAvailable": "No common name available",
|
|
181
201
|
"noData": "No data to display",
|
|
@@ -185,7 +205,9 @@
|
|
|
185
205
|
"noInventoryAlerts": "No inventory alerts to display",
|
|
186
206
|
"noIssuedStock": "No issued stock to display",
|
|
187
207
|
"noIssuedStockDataAvailable": "No issued stock data available.",
|
|
188
|
-
"
|
|
208
|
+
"noLocationsToDisplay": "No locations to display",
|
|
209
|
+
"noneFulfillment": "Non fulfillment",
|
|
210
|
+
"nonPharmaceuticals": "Non Pharmaceuticals",
|
|
189
211
|
"noOperationsToDisplay": "No stock operations to display",
|
|
190
212
|
"noPrivilegesTitle": "",
|
|
191
213
|
"noReceivedStock": "No received stock to display",
|
|
@@ -196,7 +218,8 @@
|
|
|
196
218
|
"noStockItemsToDisplay": "No stock items to display",
|
|
197
219
|
"noStockUserRoleScopesToDisplay": "No stock user role scopes to display",
|
|
198
220
|
"notes": "Please explain the reason:",
|
|
199
|
-
"
|
|
221
|
+
"notifications": "Notifications",
|
|
222
|
+
"notSet": "Not set",
|
|
200
223
|
"noViewPrivilegesDescription": "Description: {{description}}",
|
|
201
224
|
"onlyCsvFilesAt2mbOrLess": "Only .csv files at 2MB or less",
|
|
202
225
|
"operationDate": "Operation Date",
|
|
@@ -204,6 +227,7 @@
|
|
|
204
227
|
"operationNumber": "Operation Number",
|
|
205
228
|
"operationSuccessful": "You have successfully {{title}} operation",
|
|
206
229
|
"operationSuccessTitle": "{{title}} Operation",
|
|
230
|
+
"operationType": "Operation Type",
|
|
207
231
|
"orderLevel": "Reorder level",
|
|
208
232
|
"other": "Other",
|
|
209
233
|
"outOfStock": "Out of stock",
|
|
@@ -213,34 +237,36 @@
|
|
|
213
237
|
"packagingUomError": "Error loading stockItemPackagingUOM name",
|
|
214
238
|
"packSize": "Pack Size",
|
|
215
239
|
"parameters": "Parameters",
|
|
216
|
-
"partialFulfillment": "Partial
|
|
217
|
-
"
|
|
240
|
+
"partialFulfillment": "Partial fulfillment",
|
|
241
|
+
"partiesError": "Error launching base operation details form",
|
|
218
242
|
"patients": "Patients",
|
|
219
243
|
"permanent": "Permanent",
|
|
244
|
+
"pharmaceuticals": "Pharmaceuticals",
|
|
220
245
|
"pleaseFillField": "{{message}}",
|
|
221
246
|
"pleaseSpecify": "Please Specify",
|
|
222
247
|
"poorQuality": "Poor Quality",
|
|
223
|
-
"
|
|
248
|
+
"previousButton": "Previous",
|
|
249
|
+
"previousPage": "Previous page",
|
|
224
250
|
"print": "Print",
|
|
225
|
-
"printbincard": "Print Stock Card",
|
|
226
251
|
"printBinCard": "Print Bin Card",
|
|
227
252
|
"printStockCard": "Print Stock Card",
|
|
228
|
-
"purchasePrice": "Purchase
|
|
253
|
+
"purchasePrice": "Purchase price",
|
|
229
254
|
"purchasePricePackagingUnit": "Purchase price packaging unit",
|
|
230
|
-
"qty": "Qty",
|
|
231
255
|
"quantities": "Quantities",
|
|
232
|
-
"quantity": "Quantity
|
|
256
|
+
"quantity": "Quantity",
|
|
257
|
+
"quantityLabel": "Quantity:",
|
|
233
258
|
"quantityReceived": "Quantity Received",
|
|
234
259
|
"quantitySent": "Quantity Sent",
|
|
260
|
+
"quantityThreshold": "Quantity threshold",
|
|
235
261
|
"quantityUnit": "Quantity Unit",
|
|
236
|
-
"quantityUom": "
|
|
262
|
+
"quantityUom": "Quantity unit of measurement",
|
|
237
263
|
"quantityUoM": "Quantity Unit of Measurement(UoM)",
|
|
238
264
|
"rank": "Rank",
|
|
239
265
|
"reason": "Reason",
|
|
240
266
|
"reasonError": "Error loading reasons concepts",
|
|
241
267
|
"reasonLabel": "Please explain the reason:",
|
|
242
268
|
"reasonPlaceholder": "Enter reason here",
|
|
243
|
-
"receivedItems": "Received
|
|
269
|
+
"receivedItems": "Received items",
|
|
244
270
|
"receivedStock": "Received stock",
|
|
245
271
|
"receiving": "Receiving",
|
|
246
272
|
"references": "References",
|
|
@@ -251,18 +277,22 @@
|
|
|
251
277
|
"remarks": "Remarks",
|
|
252
278
|
"removePackagingUnit": "Remove Packaging Unit",
|
|
253
279
|
"removePackagingUnitConfirmation": "Would you really like to remove the packaging unit {{name}} from the stock item?",
|
|
254
|
-
"reorderLevel": "Reorder
|
|
280
|
+
"reorderLevel": "Reorder level",
|
|
255
281
|
"reorderLevelPackagingUnit": "Reorder level packaging unit",
|
|
256
282
|
"report": "Report",
|
|
257
283
|
"reportName": "Report",
|
|
258
284
|
"requested": "Requested",
|
|
259
285
|
"requestedBy": "Requested By",
|
|
286
|
+
"required": "Required",
|
|
260
287
|
"responsiblePerson": "Responsible Person",
|
|
261
288
|
"responsiblePersonError": "Error loading responsible person",
|
|
262
289
|
"return": "Return ",
|
|
263
290
|
"returned": "Returned",
|
|
264
291
|
"role": "Role",
|
|
265
292
|
"roleDescription": "The role will be applicable to only selected stock operations.",
|
|
293
|
+
"ruleConfiguration": "Rule configuration",
|
|
294
|
+
"ruleName": "Rule name",
|
|
295
|
+
"rules": "Rules",
|
|
266
296
|
"save": "Save",
|
|
267
297
|
"savePackagingUnitErrorMessage": "Error saving package unit",
|
|
268
298
|
"savePackagingUnitErrorTitle": "Package Unit",
|
|
@@ -270,53 +300,57 @@
|
|
|
270
300
|
"savePackingUnitTitle": "Package Unit",
|
|
271
301
|
"saveReferenceTitle": "StockItem Reference",
|
|
272
302
|
"saveStockItemReferenceErrorTitle": "StockItem Reference",
|
|
273
|
-
"saveStockItemReferenceMessage": "Stock
|
|
303
|
+
"saveStockItemReferenceMessage": "Stock item reference saved successfully",
|
|
304
|
+
"scope": "Scope",
|
|
274
305
|
"search": "Search",
|
|
275
306
|
"searchStockItems": "Search stock items",
|
|
276
307
|
"searchStockOperations": "Search stock operations",
|
|
277
308
|
"searchThisList": "Search this list",
|
|
278
309
|
"selectFile": "Select file",
|
|
279
|
-
"
|
|
310
|
+
"selectOption": "Select an option",
|
|
280
311
|
"selectSourceType": "Select Source Type",
|
|
281
312
|
"selectTags": "Select tag(s)",
|
|
313
|
+
"selectTagsHelper": "Select one or more tags for this location",
|
|
282
314
|
"source": "Source",
|
|
283
|
-
"sourceType": "Source
|
|
284
|
-
"startDate": "Start
|
|
315
|
+
"sourceType": "Source type",
|
|
316
|
+
"startDate": "Start date",
|
|
285
317
|
"started": "Started",
|
|
286
318
|
"status": "Status",
|
|
287
319
|
"stockAvailabilityError": "Error loading stock availability",
|
|
320
|
+
"stockCard": "Stock card",
|
|
288
321
|
"stockIssueError": "StockIssue error",
|
|
289
|
-
"stockItem": "Stock
|
|
290
|
-
"stockItemAdded": "Stock
|
|
322
|
+
"stockItem": "Stock item",
|
|
323
|
+
"stockItemAdded": "Stock item added successfully",
|
|
291
324
|
"stockItemCategory": "Stock Item Category",
|
|
292
325
|
"stockItemDetails": "Stock Item Details",
|
|
293
|
-
"stockItemEdited": "Stock
|
|
326
|
+
"stockItemEdited": "Stock item edited successfully",
|
|
294
327
|
"stockItemError": "Error loading stock item",
|
|
295
|
-
"stockItems": "Stock
|
|
328
|
+
"stockItems": "Stock items",
|
|
296
329
|
"stockItemsTableHeader": "Drugs and other stock items managed by the system.",
|
|
297
330
|
"stockItemsUploadedSuccessfully": "Stock items uploaded successfully",
|
|
298
331
|
"stockManagement": "Stock management",
|
|
299
332
|
"stockOperationAdded": "Stock operation added successfully",
|
|
300
333
|
"stockOperationEdited": "Stock operation edited successfully",
|
|
301
|
-
"stockOperationError": "Error loading stock operation types",
|
|
302
334
|
"stockOperationErrorDescription": "Details: {{message}}",
|
|
303
335
|
"stockOperationErrorTitle": "Error on saving form",
|
|
304
|
-
"
|
|
305
|
-
"
|
|
306
|
-
"
|
|
336
|
+
"stockOperationItemDeleteError": "Error deleting stock operation item {{item}}",
|
|
337
|
+
"stockOperationItemDeleteSuccess": "Stock operation item {{item}} deleted successfully",
|
|
338
|
+
"stockOperationItems": "Stock operation items",
|
|
339
|
+
"stockOperationLoadError": "Error loading stock operation",
|
|
307
340
|
"stockOperations": "Stock operations",
|
|
308
341
|
"stockOperationsTableHeader": "Stock operations to track movement of stock.",
|
|
342
|
+
"stockOperationTypesError": "Error loading stock operation types",
|
|
309
343
|
"stockReportsTableHeader": "List of reports requested by users.",
|
|
310
|
-
"stockRuleAddedSuccessfully": "Stock
|
|
311
|
-
"stockRuleDeletedSuccessfully": "Stock
|
|
312
|
-
"stockRules": "
|
|
344
|
+
"stockRuleAddedSuccessfully": "Stock rule added successfully",
|
|
345
|
+
"stockRuleDeletedSuccessfully": "Stock rule deleted successfully",
|
|
346
|
+
"stockRules": "Stock rules",
|
|
313
347
|
"stockSource": "Stock source",
|
|
314
|
-
"stockSourceAddedSuccessfully": "Stock
|
|
315
|
-
"stockSourceDeletedSuccessfully": "Stock
|
|
348
|
+
"stockSourceAddedSuccessfully": "Stock source added successfully",
|
|
349
|
+
"stockSourceDeletedSuccessfully": "Stock source deleted successfully",
|
|
316
350
|
"stockSourceDestination": "Stock source destination",
|
|
317
351
|
"stockSourcesTableHeader": "List of partners who provide stock to the facility.",
|
|
318
352
|
"stockUserRoleScopesTableHeader": "To access stock management features, users must have assigned roles specifying location and stock operation type scopes.",
|
|
319
|
-
"stockUserScopeDeletedSuccessfully": "Stock
|
|
353
|
+
"stockUserScopeDeletedSuccessfully": "Stock user scope deleted successfully",
|
|
320
354
|
"submit": "Submit",
|
|
321
355
|
"submitAndComplete": "Submit/Complete",
|
|
322
356
|
"submitAndDispatch": "Submit/Dispatch",
|
|
@@ -324,11 +358,11 @@
|
|
|
324
358
|
"submitted": "Submitted",
|
|
325
359
|
"submittingForReview": "Submitting for review",
|
|
326
360
|
"success": "Success",
|
|
327
|
-
"
|
|
361
|
+
"successfullySaved": "You have successfully saved user role scope",
|
|
328
362
|
"timeTaken": "Time Taken",
|
|
329
363
|
"to": "To",
|
|
330
364
|
"toggleMessage": "Use the toggle to apply this scope to the locations under the selected location.",
|
|
331
|
-
"tradeName": "Trade
|
|
365
|
+
"tradeName": "Trade name",
|
|
332
366
|
"transactions": "Transactions",
|
|
333
367
|
"type": "Type",
|
|
334
368
|
"understockedItems": "Understocked items",
|
|
@@ -341,7 +375,7 @@
|
|
|
341
375
|
"updatePackingUnitTitle": "Package Unit",
|
|
342
376
|
"uploadStockItems": "Upload stock items",
|
|
343
377
|
"user": "User",
|
|
344
|
-
"viewAll": "View
|
|
378
|
+
"viewAll": "View all",
|
|
345
379
|
"whoIsThePreferredVendor": "Who is the preferred vendor?",
|
|
346
380
|
"yes": "Yes"
|
|
347
381
|
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type Control, Controller, type FieldValues } from 'react-hook-form';
|
|
3
|
-
import { type DropdownProps, type OnChangeData } from '@carbon/react/lib/components/Dropdown/Dropdown';
|
|
4
|
-
import { TextInput } from '@carbon/react';
|
|
5
|
-
|
|
6
|
-
interface ControlledDropdownProps<T, K> extends DropdownProps<K> {
|
|
7
|
-
controllerName: string;
|
|
8
|
-
name: string;
|
|
9
|
-
control: Control<FieldValues, T>;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
const ControlledDropdown = <T, K>(props: ControlledDropdownProps<T, K>) => {
|
|
13
|
-
return (
|
|
14
|
-
<Controller
|
|
15
|
-
name={props.controllerName}
|
|
16
|
-
control={props.control}
|
|
17
|
-
render={({ field: { onChange, value, ref } }) => (
|
|
18
|
-
<TextInput
|
|
19
|
-
{...props}
|
|
20
|
-
onChange={(e: OnChangeData<K>) => {
|
|
21
|
-
onChange(e);
|
|
22
|
-
|
|
23
|
-
// Fire prop change
|
|
24
|
-
if (props.onChange) {
|
|
25
|
-
props.onChange(e);
|
|
26
|
-
}
|
|
27
|
-
}}
|
|
28
|
-
id={props.name}
|
|
29
|
-
ref={ref}
|
|
30
|
-
value={value}
|
|
31
|
-
/>
|
|
32
|
-
)}
|
|
33
|
-
/>
|
|
34
|
-
);
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
export default ControlledDropdown;
|