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

@@ -30627,6 +30627,27 @@
<folder_node>
<name>errors</name>
<children>
<concept_node>
<name>associatedbills</name>
<definition_loaded>false</definition_loaded>
<description></description>
<comment></comment>
<default_text></default_text>
<translations>
<translation>
<language>en-US</language>
<approved>false</approved>
</translation>
<translation>
<language>es-MX</language>
<approved>false</approved>
</translation>
<translation>
<language>fr-CA</language>
<approved>false</approved>
</translation>
</translations>
</concept_node>
<concept_node>
<name>backordering</name>
<definition_loaded>false</definition_loaded>

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>

View File

@@ -2,7 +2,7 @@ import { gql } from "@apollo/client";
export const QUERY_EMPLOYEES = gql`
query QUERY_EMPLOYEES {
employees {
employees(order_by: { employee_number: asc }) {
last_name
id
first_name

View File

@@ -1824,6 +1824,7 @@
"receivebill": "Receive Bill"
},
"errors": {
"associatedbills": "This parts order cannot",
"backordering": "Error backordering part {{message}}.",
"creating": "Error encountered when creating parts order. "
},
@@ -1849,7 +1850,7 @@
},
"labels": {
"allpartsto": "All Parts Location",
"confirmdelete": "Are you sure you want to delete this item? It cannot be recovered. ",
"confirmdelete": "Are you sure you want to delete this item? It cannot be recovered. Job line statuses will not be updated and may require manual review. ",
"email": "Send by Email",
"inthisorder": "Parts in this Order",
"newpartsorder": "New Parts Order",

View File

@@ -1824,6 +1824,7 @@
"receivebill": ""
},
"errors": {
"associatedbills": "",
"backordering": "",
"creating": "Se encontró un error al crear el pedido de piezas."
},

View File

@@ -1824,6 +1824,7 @@
"receivebill": ""
},
"errors": {
"associatedbills": "",
"backordering": "",
"creating": "Erreur rencontrée lors de la création de la commande de pièces."
},