@openmrs/esm-stock-management-app 3.3.2-pre.70 → 3.3.2-pre.73
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/README.md +20 -0
- package/dist/3936.js +4 -4
- package/dist/3936.js.map +1 -1
- package/dist/5996.js +1 -1
- package/dist/5996.js.map +1 -1
- package/dist/6981.js +1 -1
- package/dist/6981.js.map +1 -1
- package/dist/9154.js +1 -1
- package/dist/9154.js.map +1 -1
- package/dist/openmrs-esm-stock-management-app.js +1 -1
- package/dist/routes.json +1 -1
- package/package.json +1 -1
- package/src/config-schema.ts +38 -0
- package/src/constants.ts +0 -13
- package/src/stock-home/expired-stock.modal.tsx +2 -6
- package/src/stock-home/expired-stock.test.tsx +23 -0
- package/src/stock-locations/stock-locations-table.resource.test.ts +24 -2
- package/src/stock-lookups/stock-lookups.resource.ts +6 -2
- package/src/stock-operations/stock-operations-forms/steps/base-operation-details-form-step.test.tsx +64 -0
- package/src/stock-operations/stock-operations-forms/steps/base-operation-details-form-step.tsx +16 -5
- package/src/stock-operations/stock-print-reports/StockOperationReport.test.ts +15 -0
- package/src/stock-operations/stock-print-reports/StockOperationReport.tsx +5 -2
- package/src/stock-user-role-scopes/add-stock-user-scope/add-stock-user-role-scope.test.tsx +49 -0
- package/src/stock-user-role-scopes/add-stock-user-scope/add-stock-user-role-scope.workspace.tsx +6 -21
package/README.md
CHANGED
|
@@ -150,6 +150,26 @@ Customize the appearance of printed reports and system branding:
|
|
|
150
150
|
}
|
|
151
151
|
```
|
|
152
152
|
|
|
153
|
+
### Facility, Stock Roles & Location Tags
|
|
154
|
+
|
|
155
|
+
The defaults match the Reference Application. Set these to match your distribution:
|
|
156
|
+
|
|
157
|
+
- **`facilityName`** _(default: "Health Center")_ - The facility name shown on requisition, stock transfer and goods received printouts.
|
|
158
|
+
|
|
159
|
+
- **`stockRoleUUIDs`** - UUIDs of the roles that identify stock roles in the user role scope form. The defaults are the Inventory Clerk, Inventory Manager, Inventory Dispensing, Inventory Reporting and Inventory Administrator roles from the Reference Application demo content.
|
|
160
|
+
|
|
161
|
+
- **`stockLocationTags`** _(default: ["Main Store", "Main Pharmacy", "Dispensary"])_ - Names of the location tags for stock locations. Locations without one of these tags don't appear in the stock locations table, the user role scope form, stock rules, reports or the location filters. This doesn't change which locations stock operations accept. That comes from each operation type's location scopes in the backend, which default to `Main Store`, `Main Pharmacy` and `Dispensary`.
|
|
162
|
+
|
|
163
|
+
- **`mainStoreLocationTag`** _(default: "Main Store")_ - Name of the location tag for the main store. The source or destination of a new stock operation is prefilled when this is the only tag the operation type allows on that side. It needs to match a tag in the backend's operation type location scopes.
|
|
164
|
+
|
|
165
|
+
```json
|
|
166
|
+
{
|
|
167
|
+
"facilityName": "My Health Facility",
|
|
168
|
+
"stockRoleUUIDs": ["d210eb66-2188-11ed-9dff-507b9dea1806"],
|
|
169
|
+
"stockLocationTags": ["Main Store", "Main Pharmacy", "Dispensary", "Ward Store"]
|
|
170
|
+
}
|
|
171
|
+
```
|
|
172
|
+
|
|
153
173
|
Refer to the [OpenMRS frontend configuration guide](https://openmrs.atlassian.net/wiki/x/nAP-C) for how to apply these settings.
|
|
154
174
|
|
|
155
175
|
## Documentation
|