@openmrs/esm-stock-management-app 1.0.1-pre.484 → 1.0.1-pre.489
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/26.js +1 -1
- package/dist/26.js.LICENSE.txt +28 -20
- package/dist/26.js.map +1 -1
- package/dist/574.js +1 -1
- package/dist/647.js +1 -0
- package/dist/647.js.map +1 -0
- package/dist/764.js +2 -0
- package/dist/764.js.LICENSE.txt +32 -0
- package/dist/764.js.map +1 -0
- package/dist/793.js +2 -0
- package/dist/793.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 +70 -70
- package/dist/openmrs-esm-stock-management-app.js.map +1 -1
- package/dist/routes.json +1 -1
- package/package.json +1 -1
- package/src/stock-items/add-stock-item/stock-item-details/stock-item-details.component.tsx +2 -0
- package/src/stock-items/add-stock-item/stock-item-units-edit/stock-item-units-edit.component.tsx +2 -0
- package/src/stock-items/validationSchema.ts +2 -2
- package/src/stock-operations/add-stock-operation/add-stock-operation.component.tsx +8 -6
- package/src/stock-operations/add-stock-operation/stock-items-addition-row.component.tsx +1 -0
- package/src/stock-operations/add-stock-operation/stock-operation-submission.component.tsx +10 -18
- package/src/stock-operations/stock-operations-dialog/stock-operations-complete-button.component.tsx +3 -2
- package/src/stock-operations/stock-operations-dialog/stock-operations-completed-dispatch-button.component.tsx +3 -2
- package/src/stock-operations/stock-operations-table.component.tsx +19 -59
- package/src/stock-reports/generate-report/create-stock-report.component.tsx +2 -3
- package/translations/en.json +2 -2
- package/dist/474.js +0 -1
- package/dist/474.js.map +0 -1
- package/dist/800.js +0 -2
- package/dist/800.js.map +0 -1
- package/dist/876.js +0 -2
- package/dist/876.js.LICENSE.txt +0 -40
- package/dist/876.js.map +0 -1
- /package/dist/{800.js.LICENSE.txt → 793.js.LICENSE.txt} +0 -0
@@ -8,17 +8,18 @@ import { StockOperationDTO } from "../../core/api/types/stockOperation/StockOper
|
|
8
8
|
|
9
9
|
interface StockOperationCompleteDispatchButtonProps {
|
10
10
|
operation: StockOperationDTO;
|
11
|
+
reason: boolean;
|
11
12
|
}
|
12
13
|
|
13
14
|
const StockOperationCompleteDispatchButton: React.FC<
|
14
15
|
StockOperationCompleteDispatchButtonProps
|
15
|
-
> = ({ operation }) => {
|
16
|
+
> = ({ operation, reason }) => {
|
16
17
|
const { t } = useTranslation();
|
17
18
|
const launchcompletedDispatchModal = useCallback(() => {
|
18
19
|
const dispose = showModal("stock-operation-dialog", {
|
19
20
|
title: "Complete Dispatch",
|
20
21
|
operation: operation,
|
21
|
-
requireReason:
|
22
|
+
requireReason: reason,
|
22
23
|
closeModal: () => dispose(),
|
23
24
|
});
|
24
25
|
}, [operation]);
|
@@ -24,14 +24,14 @@ import {
|
|
24
24
|
StructuredListRow,
|
25
25
|
StructuredListCell,
|
26
26
|
StructuredListBody,
|
27
|
-
OverflowMenu,
|
28
|
-
OverflowMenuItem,
|
29
27
|
DatePickerInput,
|
30
28
|
DatePicker,
|
31
29
|
TableToolbarMenu,
|
32
30
|
TableToolbarAction,
|
31
|
+
Button,
|
33
32
|
} from "@carbon/react";
|
34
|
-
import { ArrowRight } from "@carbon/react/icons";
|
33
|
+
import { ArrowRight, Edit } from "@carbon/react/icons";
|
34
|
+
|
35
35
|
import { formatDisplayDate } from "../core/utils/datetimeUtils";
|
36
36
|
import styles from "../stock-items/stock-items-table.scss";
|
37
37
|
import {
|
@@ -341,22 +341,22 @@ const StockOperations: React.FC<StockOperationsTableProps> = () => {
|
|
341
341
|
</div>
|
342
342
|
),
|
343
343
|
actions: (
|
344
|
-
<
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
/>
|
359
|
-
|
344
|
+
<Button
|
345
|
+
kind="ghost"
|
346
|
+
size="md"
|
347
|
+
onClick={() => {
|
348
|
+
launchAddOrEditDialog(
|
349
|
+
t,
|
350
|
+
filteredItems[index],
|
351
|
+
true,
|
352
|
+
operation,
|
353
|
+
operations,
|
354
|
+
false
|
355
|
+
);
|
356
|
+
}}
|
357
|
+
iconDescription={t("editStockItem", "Edit Stock Item")}
|
358
|
+
renderIcon={(props) => <Edit size={16} {...props} />}
|
359
|
+
></Button>
|
360
360
|
),
|
361
361
|
}));
|
362
362
|
}, [handleOnComplete, filteredItems, operation, operations, t]);
|
@@ -520,10 +520,6 @@ const StockOperations: React.FC<StockOperationsTableProps> = () => {
|
|
520
520
|
<StructuredListCell head>
|
521
521
|
{t("dateCompleted", "Date Completed")}
|
522
522
|
</StructuredListCell>
|
523
|
-
<StructuredListCell head>
|
524
|
-
{t("batchNumber", "Batch Number")}
|
525
|
-
</StructuredListCell>
|
526
|
-
<StructuredListCell head>Qty</StructuredListCell>
|
527
523
|
</StructuredListRow>
|
528
524
|
</StructuredListHead>
|
529
525
|
<StructuredListBody>
|
@@ -556,24 +552,6 @@ const StockOperations: React.FC<StockOperationsTableProps> = () => {
|
|
556
552
|
? filteredItems[index]?.creatorFamilyName
|
557
553
|
: ""}
|
558
554
|
</StructuredListCell>
|
559
|
-
<StructuredListCell>
|
560
|
-
{filteredItems[index]?.stockOperationItems
|
561
|
-
? filteredItems[
|
562
|
-
index
|
563
|
-
].stockOperationItems?.map(
|
564
|
-
(item) => item.batchNo
|
565
|
-
)[0]
|
566
|
-
: ""}
|
567
|
-
</StructuredListCell>
|
568
|
-
<StructuredListCell>
|
569
|
-
{filteredItems[index]?.stockOperationItems
|
570
|
-
? filteredItems[
|
571
|
-
index
|
572
|
-
].stockOperationItems?.map(
|
573
|
-
(item) => item.quantity
|
574
|
-
)[0]
|
575
|
-
: ""}
|
576
|
-
</StructuredListCell>
|
577
555
|
</StructuredListRow>
|
578
556
|
<StructuredListRow>
|
579
557
|
<StructuredListCell noWrap>
|
@@ -618,24 +596,6 @@ const StockOperations: React.FC<StockOperationsTableProps> = () => {
|
|
618
596
|
? items[index]?.creatorFamilyName
|
619
597
|
: ""}
|
620
598
|
</StructuredListCell>
|
621
|
-
<StructuredListCell>
|
622
|
-
{filteredItems[index]?.stockOperationItems
|
623
|
-
? filteredItems[
|
624
|
-
index
|
625
|
-
].stockOperationItems?.map(
|
626
|
-
(item) => item.batchNo
|
627
|
-
)[1]
|
628
|
-
: ""}
|
629
|
-
</StructuredListCell>
|
630
|
-
<StructuredListCell>
|
631
|
-
{filteredItems[index]?.stockOperationItems
|
632
|
-
? filteredItems[
|
633
|
-
index
|
634
|
-
].stockOperationItems?.map(
|
635
|
-
(item) => item.quantity
|
636
|
-
)[1]
|
637
|
-
: ""}
|
638
|
-
</StructuredListCell>
|
639
599
|
</StructuredListRow>
|
640
600
|
</StructuredListBody>
|
641
601
|
</>
|
@@ -80,9 +80,7 @@ const CreateReport: React.FC<CreateReportProps> = ({ model }) => {
|
|
80
80
|
|
81
81
|
const { reportTypes, isLoading } = useReportTypes();
|
82
82
|
const { stockLocations } = useStockTagLocations();
|
83
|
-
const { items
|
84
|
-
stockItemCategoryUUID
|
85
|
-
);
|
83
|
+
const { items } = useConcept(stockItemCategoryUUID);
|
86
84
|
const [displayDate, setDisplayDate] = useState<boolean>(false);
|
87
85
|
const [displayStartDate, setDisplayStartDate] = useState<boolean>(false);
|
88
86
|
const [displayEndDate, setDisplayEndDate] = useState<boolean>(false);
|
@@ -644,6 +642,7 @@ const CreateReport: React.FC<CreateReportProps> = ({ model }) => {
|
|
644
642
|
<NumberInput
|
645
643
|
id="limitTop"
|
646
644
|
allowEmpty={true}
|
645
|
+
hideSteppers={true}
|
647
646
|
value={value}
|
648
647
|
onchange={onChange}
|
649
648
|
label={t("limit", "Limit")}
|
package/translations/en.json
CHANGED
@@ -52,8 +52,8 @@
|
|
52
52
|
"code": "Code",
|
53
53
|
"comingSoonUnderDev": "Exciting updates are on the way! In the meantime, use the link below to access Admin UI settings.",
|
54
54
|
"commonName": "Common Name",
|
55
|
-
"
|
56
|
-
"
|
55
|
+
"completedispatch": "Complete Dispatch ",
|
56
|
+
"complete": "Complete",
|
57
57
|
"continue": "Continue",
|
58
58
|
"created": "Created",
|
59
59
|
"createLocation": "Create Location",
|