@openmrs/esm-stock-management-app 3.3.2-pre.534 → 3.3.2-pre.548

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 (36) hide show
  1. package/README.md +12 -11
  2. package/dist/228.js +2 -2
  3. package/dist/228.js.map +1 -1
  4. package/dist/5117.js +1 -1
  5. package/dist/5117.js.map +1 -1
  6. package/dist/8071.js +1 -1
  7. package/dist/8071.js.map +1 -1
  8. package/dist/{1304.css.map → 8105.css.map} +1 -1
  9. package/dist/8105.js +1 -0
  10. package/dist/8105.js.map +1 -0
  11. package/dist/openmrs-esm-stock-management-app.js +2 -2
  12. package/dist/openmrs-esm-stock-management-app.js.map +1 -1
  13. package/dist/routes.json +1 -1
  14. package/e2e/README.md +30 -36
  15. package/package.json +1 -1
  16. package/src/core/components/table/table.component.test.tsx +73 -0
  17. package/src/core/components/table/table.component.tsx +43 -11
  18. package/src/stock-items/add-stock-item/batch-information/batch-information.component.tsx +14 -2
  19. package/src/stock-items/add-stock-item/batch-information/batch-information.resource.test.ts +32 -0
  20. package/src/stock-items/add-stock-item/batch-information/batch-information.resource.ts +28 -8
  21. package/src/stock-items/add-stock-item/drug-selector/drug-selector.component.tsx +3 -5
  22. package/src/stock-items/add-stock-item/drug-selector/drug-selector.test.tsx +1 -1
  23. package/src/stock-items/add-stock-item/quantities/quantities.component.tsx +5 -3
  24. package/src/stock-items/add-stock-item/quantities/quantities.resource.ts +28 -8
  25. package/src/stock-items/add-stock-item/transactions/transactions.component.tsx +6 -0
  26. package/src/stock-items/add-stock-item/transactions/transactions.resource.ts +27 -7
  27. package/src/stock-operations/stock-operations-forms/input-components/batch-no-selector.component.tsx +17 -14
  28. package/src/stock-operations/stock-operations-forms/input-components/batch-no-selector.test.tsx +66 -127
  29. package/src/stock-operations/stock-operations-forms/steps/stock-availability-cell.component.tsx +5 -2
  30. package/src/stock-operations/stock-operations-forms/steps/stock-availability-cell.test.tsx +2 -2
  31. package/src/stock-operations/stock-operations-forms/steps/stock-operation-items-form-step.scc.scss +1 -1
  32. package/src/stock-operations/stock-operations-forms/steps/stock-operation-items-form-step.test.tsx +3 -3
  33. package/translations/en.json +1 -0
  34. package/dist/1304.js +0 -1
  35. package/dist/1304.js.map +0 -1
  36. /package/dist/{1304.css → 8105.css} +0 -0
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # OpenMRS ESM Stock Management App
2
2
 
3
- ![OpenMRS CI](https://github.com/openmrs/openmrs-esm-stock-management/actions/workflows/node.js.yml/badge.svg)
3
+ [![OpenMRS CI](https://github.com/openmrs/openmrs-esm-stock-management-app/actions/workflows/ci.yml/badge.svg)](https://github.com/openmrs/openmrs-esm-stock-management-app/actions/workflows/ci.yml)
4
4
 
5
5
  The OpenMRS ESM Stock Management app is designed to help healthcare facilities manage inventory of medical supplies, pharmaceuticals, and other stockable items directly within OpenMRS. It facilitates accurate tracking of stock levels, stock movements, and supply chain operations. It uses the [stock management backend module](https://github.com/openmrs/openmrs-module-stockmanagement).
6
6
 
@@ -10,6 +10,7 @@ The OpenMRS ESM Stock Management app is designed to help healthcare facilities m
10
10
 
11
11
  - **Stock Management**: Comprehensive tracking of drugs, medical supplies, and commodities across multiple locations
12
12
  - **Stock Operations**: Complete workflow support including:
13
+ - Opening stock balances for initial inventory setup
13
14
  - Stock receipts from suppliers with batch tracking
14
15
  - Stock issues to locations/patients with dispatch management
15
16
  - Transfers between locations
@@ -34,7 +35,7 @@ The OpenMRS ESM Stock Management app is designed to help healthcare facilities m
34
35
 
35
36
  ### Reporting & Analytics
36
37
 
37
- - **Comprehensive Reports**: 15+ report types including:
38
+ - **Comprehensive Reports**: 14 report types including:
38
39
  - Stock forecasting and trend analysis
39
40
  - Movement history and transaction reports
40
41
  - Expiry forecasting and disposal tracking
@@ -46,7 +47,6 @@ The OpenMRS ESM Stock Management app is designed to help healthcare facilities m
46
47
 
47
48
  - **User Management**: Role-based permissions with location-specific access control
48
49
  - **Source Management**: Supplier/vendor setup with preferred vendor assignments
49
- - **Location Management**: Hierarchical location setup with inheritance rules
50
50
  - **Workflow Controls**: Multi-step approval processes for stock operations
51
51
 
52
52
  ### Technical Features
@@ -65,7 +65,8 @@ The OpenMRS ESM Stock Management app is designed to help healthcare facilities m
65
65
 
66
66
  ## Requirements
67
67
 
68
- - OpenMRS Platform 2.x or higher
68
+ - OpenMRS Platform 2.8.0 or higher
69
+ - [Stock Management backend module](https://github.com/openmrs/openmrs-module-stockmanagement) `>= 4.0.0` (requires `webservices.rest >= 3.0.0`) and `fhir2 >= 1.2`
69
70
  - Admin privileges to install and configure the app
70
71
 
71
72
  ## Installation
@@ -103,12 +104,12 @@ These must be configured to match your OpenMRS concept dictionary. These UUIDs l
103
104
 
104
105
  ```json
105
106
  {
106
- "packingUnitsUUID": "bce2b1af-98b1-48a2-98a2-3e4ffb3c79c2",
107
+ "packingUnitsUUID": "a6d438fe-05c1-4d4d-9755-c11cf6b0b3b9",
107
108
  "dispensingUnitsUUID": "162402AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
108
- "stockAdjustmentReasonUUID": "47f0825e-8648-47c2-b847-d3197ed6bb72",
109
- "stockTakeReasonUUID": "47f0825e-8648-47c2-b847-d3197ed6bb72",
110
- "stockSourceTypeUUID": "2e1e8049-9cbe-4a2d-b1e5-8a91e5d7d97d",
111
- "stockItemCategoryUUID": "6d24eb6e-b42f-4706-ab2d-ae4472161f6a"
109
+ "stockAdjustmentReasonUUID": "3a9021d1-d6c1-4fc2-8e30-ca8e204e44de",
110
+ "stockTakeReasonUUID": "faa466c5-0953-4d4f-8ea7-d9a06341c3f3",
111
+ "stockSourceTypeUUID": "937a0440-95f7-42f6-aaef-16cf611fcf10",
112
+ "stockItemCategoryUUID": "8ccf6066-9297-4d76-aaf3-00aa3714d198"
112
113
  }
113
114
  ```
114
115
 
@@ -162,9 +163,9 @@ The defaults match the Reference Application. Set these to match your distributi
162
163
 
163
164
  - **`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.
164
165
 
165
- - **`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`.
166
+ - **`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 is configured per operation type in the backend via the `stockmanagement.<type>.sourceLocationTags` and `.destinationLocationTags` global properties (blank by default, allowing any location).
166
167
 
167
- - **`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.
168
+ - **`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 configured for that operation type in the backend.
168
169
 
169
170
  ```json
170
171
  {