@openmrs/esm-stock-management-app 1.0.1-pre.383 → 1.0.1-pre.390
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/39.js +1 -0
- package/dist/39.js.map +1 -0
- 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 +23 -23
- package/dist/routes.json +1 -1
- package/package.json +1 -1
- package/src/index.ts +18 -0
- package/src/routes.json +56 -51
- package/src/stock-items/add-stock-item/packaging-units/packaging-units-delete-modal-button.component.tsx +34 -0
- package/src/stock-items/add-stock-item/packaging-units/packaging-units-delete-modal.component.tsx +100 -0
- package/src/stock-items/add-stock-item/packaging-units/packaging-units.component.tsx +36 -79
- package/src/stock-items/add-stock-item/packaging-units/packaging-units.scss +25 -2
- package/src/stock-items/add-stock-item/packaging-units-concept-selector/packaging-units-concept-selector.component.tsx +1 -1
- package/src/stock-operations/add-stock-operation/stock-operation-submission.component.tsx +8 -3
- package/dist/56.js +0 -1
- package/dist/56.js.map +0 -1
@@ -111,10 +111,15 @@ const StockOperationSubmission: React.FC<StockOperationSubmissionProps> = ({
|
|
111
111
|
kind="primary"
|
112
112
|
onClick={async () => {
|
113
113
|
delete model?.dateCreated;
|
114
|
-
model
|
114
|
+
delete model?.status;
|
115
115
|
setIsSaving(true);
|
116
|
-
await actions.
|
117
|
-
|
116
|
+
await actions.onSave(model).then(() => {
|
117
|
+
delete model?.dateCreated;
|
118
|
+
model.status = "COMPLETED";
|
119
|
+
setIsSaving(true);
|
120
|
+
actions.onComplete(model);
|
121
|
+
setIsSaving(false);
|
122
|
+
});
|
118
123
|
}}
|
119
124
|
renderIcon={ListChecked}
|
120
125
|
>
|