@openmrs/esm-stock-management-app 1.0.1-pre.395 → 1.0.1-pre.404
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/39.js +1 -1
- package/dist/39.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.buildmanifest.json +6 -6
- package/dist/routes.json +1 -1
- package/package.json +1 -1
- package/src/dashboard/stock-management-dashboard-side-nav.component.tsx +7 -7
- package/src/stock-operations/add-stock-operation/stock-operation-submission.component.tsx +12 -1
@@ -32,9 +32,9 @@
|
|
32
32
|
"initial": false,
|
33
33
|
"entry": false,
|
34
34
|
"recorded": false,
|
35
|
-
"size":
|
35
|
+
"size": 1033536,
|
36
36
|
"sizes": {
|
37
|
-
"javascript":
|
37
|
+
"javascript": 1033326,
|
38
38
|
"consume-shared": 210
|
39
39
|
},
|
40
40
|
"names": [],
|
@@ -48,7 +48,7 @@
|
|
48
48
|
"auxiliaryFiles": [
|
49
49
|
"39.js.map"
|
50
50
|
],
|
51
|
-
"hash": "
|
51
|
+
"hash": "3a8c1f8ac7e4767d",
|
52
52
|
"childrenByOrder": {}
|
53
53
|
},
|
54
54
|
{
|
@@ -110,10 +110,10 @@
|
|
110
110
|
"initial": true,
|
111
111
|
"entry": true,
|
112
112
|
"recorded": false,
|
113
|
-
"size":
|
113
|
+
"size": 4782585,
|
114
114
|
"sizes": {
|
115
115
|
"consume-shared": 252,
|
116
|
-
"javascript":
|
116
|
+
"javascript": 4760637,
|
117
117
|
"share-init": 252,
|
118
118
|
"runtime": 21444
|
119
119
|
},
|
@@ -130,7 +130,7 @@
|
|
130
130
|
"auxiliaryFiles": [
|
131
131
|
"main.js.map"
|
132
132
|
],
|
133
|
-
"hash": "
|
133
|
+
"hash": "79c41c9a15ce3cd5",
|
134
134
|
"childrenByOrder": {}
|
135
135
|
},
|
136
136
|
{
|
package/dist/routes.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"fhir2":">=1.2","webservices.rest":"^2.24.0"},"extensions":[{"name":"stock-management-dashboard","slot":"stock-management-dashboard-slot","component":"stockManagementDashboard"},{"name":"stock-management-admin-card-link","slot":"system-admin-page-card-link-slot","component":"stockManagementAdminCardLink"},{"name":"stock-operation-dialog","component":"stockOperationDialog"},{"name":"import-bulk-stock-items","component":"importBulkStockItemsDialog"},{"name":"delete-stock-modal","component":"deleteStockModal"},{"name":"delete-stock-user-scope-modal","component":"deleteUserScopeModal"},{"name":"stock-management-app-menu-item","component":"stockManagementAppMenuItem","slot":"app-menu-item-slot","meta":{"name":" Stock Management"}},{"name":"delete-stock-rule-modal","component":"deleteStockRuleModal"},{"name":"delete-packaging-unit-modal","component":"deletePackagingUnitModal"},{"name":"delete-packaging-unit-button","component":"deletePackagingUnitButton"}],"pages":[{"component":"stockManagement","route":"stock-management"}],"version":"1.0.1-pre.
|
1
|
+
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"fhir2":">=1.2","webservices.rest":"^2.24.0"},"extensions":[{"name":"stock-management-dashboard","slot":"stock-management-dashboard-slot","component":"stockManagementDashboard"},{"name":"stock-management-admin-card-link","slot":"system-admin-page-card-link-slot","component":"stockManagementAdminCardLink"},{"name":"stock-operation-dialog","component":"stockOperationDialog"},{"name":"import-bulk-stock-items","component":"importBulkStockItemsDialog"},{"name":"delete-stock-modal","component":"deleteStockModal"},{"name":"delete-stock-user-scope-modal","component":"deleteUserScopeModal"},{"name":"stock-management-app-menu-item","component":"stockManagementAppMenuItem","slot":"app-menu-item-slot","meta":{"name":" Stock Management"}},{"name":"delete-stock-rule-modal","component":"deleteStockRuleModal"},{"name":"delete-packaging-unit-modal","component":"deletePackagingUnitModal"},{"name":"delete-packaging-unit-button","component":"deletePackagingUnitButton"}],"pages":[{"component":"stockManagement","route":"stock-management"}],"version":"1.0.1-pre.404"}
|
package/package.json
CHANGED
@@ -13,31 +13,31 @@ const StockManagementDashboardSideNav = () => {
|
|
13
13
|
link: "overview",
|
14
14
|
},
|
15
15
|
{
|
16
|
-
name: t("stockManagementStockItems", "
|
16
|
+
name: t("stockManagementStockItems", "Items"),
|
17
17
|
link: "stock-items",
|
18
18
|
},
|
19
19
|
{
|
20
|
-
name: t("stockManagementOperations", "
|
20
|
+
name: t("stockManagementOperations", "Operations"),
|
21
21
|
link: "stock-operations",
|
22
22
|
},
|
23
23
|
{
|
24
|
-
name: t("stockManagementStockUserScopes", "
|
24
|
+
name: t("stockManagementStockUserScopes", "User Role Scopes"),
|
25
25
|
link: "stock-user-scopes",
|
26
26
|
},
|
27
27
|
{
|
28
|
-
name: t("stockManagementStockSources", "
|
28
|
+
name: t("stockManagementStockSources", "Sources"),
|
29
29
|
link: "stock-sources",
|
30
30
|
},
|
31
31
|
{
|
32
|
-
name: t("stockManagementLocations", "
|
32
|
+
name: t("stockManagementLocations", "Locations"),
|
33
33
|
link: "stock-locations",
|
34
34
|
},
|
35
35
|
{
|
36
|
-
name: t("stockManagementReports", "
|
36
|
+
name: t("stockManagementReports", "Reports"),
|
37
37
|
link: "stock-reports",
|
38
38
|
},
|
39
39
|
{
|
40
|
-
name: t("stockManagementSettings", "
|
40
|
+
name: t("stockManagementSettings", "Settings"),
|
41
41
|
link: `admin/maintenance/settings.list?show=Stockmanagement`,
|
42
42
|
},
|
43
43
|
];
|
@@ -133,7 +133,18 @@ const StockOperationSubmission: React.FC<StockOperationSubmissionProps> = ({
|
|
133
133
|
style={{ margin: "4px" }}
|
134
134
|
className="submitButton"
|
135
135
|
kind="primary"
|
136
|
-
onClick={
|
136
|
+
onClick={async () => {
|
137
|
+
delete model?.dateCreated;
|
138
|
+
delete model?.status;
|
139
|
+
setIsSaving(true);
|
140
|
+
await actions.onSave(model).then(() => {
|
141
|
+
delete model?.dateCreated;
|
142
|
+
model.status = "COMPLETED";
|
143
|
+
setIsSaving(true);
|
144
|
+
actions.onDispatch(model);
|
145
|
+
setIsSaving(false);
|
146
|
+
});
|
147
|
+
}}
|
137
148
|
renderIcon={Departure}
|
138
149
|
>
|
139
150
|
{t("dispatch", "Dispatch")}
|