From a7f343545f6d24a3ebd3dc1f9a230d59de8e6a77 Mon Sep 17 00:00:00 2001 From: Victor Turgeon Date: Fri, 25 Nov 2022 12:19:02 -0500 Subject: [PATCH] =?UTF-8?q?afficher=20le=20x=20que=20lorsque=20la=20comman?= =?UTF-8?q?de=20est=20confirm=C3=A9=20ou=20en=20pr=C3=A9paration=20et=20fi?= =?UTF-8?q?x=20de=20la=20page=20Invoice=20d'admin?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/InvoiceItem.js | 5 +++-- .../grosses-mitaines-ui/src/pages/Invoices.js | 12 ++++++------ .../grosses-mitaines-ui/src/pages/MyInvoices.js | 6 +++--- 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/GrossesMitaines/grosses-mitaines-ui/src/components/InvoiceItem.js b/GrossesMitaines/grosses-mitaines-ui/src/components/InvoiceItem.js index 4b21cbe..678e525 100644 --- a/GrossesMitaines/grosses-mitaines-ui/src/components/InvoiceItem.js +++ b/GrossesMitaines/grosses-mitaines-ui/src/components/InvoiceItem.js @@ -105,8 +105,9 @@ const InvoiceItem = ({ invoice, onCancel }) => {

Produits

-

onCancel(invoice.id)} />

+ {(invoice.status == 0 || invoice.status == 2 )&& +

onCancel(invoice.id)} />

}