IO-1497 Ability to delete parts orders.

This commit is contained in:
Patrick Fic
2021-11-09 16:31:57 -08:00
parent 6afcf82cc4
commit 4e3c659b6d
6 changed files with 29 additions and 4 deletions

View File

@@ -7,6 +7,7 @@ import {
Drawer,
Grid,
Input,
notification,
PageHeader,
Popconfirm,
Space,
@@ -119,7 +120,7 @@ export function PartsOrderListTableComponent({
</Button>
<Popconfirm
title={t("parts_orders.labels.confirmdelete")}
disabled={jobRO || !record.return}
disabled={jobRO}
onConfirm={async () => {
//Delete the parts return.!
@@ -139,7 +140,7 @@ export function PartsOrderListTableComponent({
});
}}
>
<Button disabled={jobRO || !record.return}>
<Button disabled={jobRO}>
<DeleteFilled />
</Button>
</Popconfirm>