From a40029ba1d9bc912f8d7574714dbcdd28c67ecca Mon Sep 17 00:00:00 2001 From: "a.bouhuolia" Date: Sat, 11 Sep 2021 14:24:08 +0200 Subject: [PATCH] fix: remove estimate paper button action. --- .../Sales/Estimates/EstimatesLanding/EstimatesDataTable.js | 6 ------ .../Sales/Estimates/EstimatesLanding/components.js | 5 ----- .../Sales/Invoices/InvoicesLanding/InvoicesDataTable.js | 6 ------ .../containers/Sales/Invoices/InvoicesLanding/components.js | 5 ----- .../Sales/Receipts/ReceiptsLanding/ReceiptsTable.js | 6 ------ .../containers/Sales/Receipts/ReceiptsLanding/components.js | 5 ----- 6 files changed, 33 deletions(-) diff --git a/client/src/containers/Sales/Estimates/EstimatesLanding/EstimatesDataTable.js b/client/src/containers/Sales/Estimates/EstimatesLanding/EstimatesDataTable.js index 6b15bed93..55207752b 100644 --- a/client/src/containers/Sales/Estimates/EstimatesLanding/EstimatesDataTable.js +++ b/client/src/containers/Sales/Estimates/EstimatesLanding/EstimatesDataTable.js @@ -70,11 +70,6 @@ function EstimatesDataTable({ openAlert('estimate-reject', { estimateId: id }); }; - // Handle drawer estimate. - const handleDrawerEstimate = ({ id }) => { - openDrawer('estimate-drawer', { estimateId: id }); - }; - // Handle convent to invoice. const handleConvertToInvoice = ({ id }) => { history.push(`/invoices/new?from_estimate_id=${id}`, { action: id }); @@ -137,7 +132,6 @@ function EstimatesDataTable({ onReject: handleRejectEstimate, onDeliver: handleDeliverEstimate, onDelete: handleDeleteEstimate, - onDrawer: handleDrawerEstimate, onConvert: handleConvertToInvoice, onViewDetails: handleViewDetailEstimate, onPrint: handlePrintEstimate, diff --git a/client/src/containers/Sales/Estimates/EstimatesLanding/components.js b/client/src/containers/Sales/Estimates/EstimatesLanding/components.js index 87141ddcc..88a0d39e3 100644 --- a/client/src/containers/Sales/Estimates/EstimatesLanding/components.js +++ b/client/src/containers/Sales/Estimates/EstimatesLanding/components.js @@ -115,11 +115,6 @@ export function ActionsMenu({ /> - } - text={intl.get('estimate_paper')} - onClick={safeCallback(onDrawer, original)} - /> } text={intl.get('print')} diff --git a/client/src/containers/Sales/Invoices/InvoicesLanding/InvoicesDataTable.js b/client/src/containers/Sales/Invoices/InvoicesLanding/InvoicesDataTable.js index e758e6e13..081964ee4 100644 --- a/client/src/containers/Sales/Invoices/InvoicesLanding/InvoicesDataTable.js +++ b/client/src/containers/Sales/Invoices/InvoicesLanding/InvoicesDataTable.js @@ -66,11 +66,6 @@ function InvoicesDataTable({ history.push(`/invoices/${invoice.id}/edit`); }; - // Handle drawer invoice. - const handleDrawerInvoice = ({ id }) => { - openDrawer('invoice-drawer', { invoiceId: id }); - }; - // handle quick payment receive. const handleQuickPaymentReceive = ({ id }) => { openDialog('quick-payment-receive', { invoiceId: id }); @@ -134,7 +129,6 @@ function InvoicesDataTable({ onDelete: handleDeleteInvoice, onDeliver: handleDeliverInvoice, onEdit: handleEditInvoice, - onDrawer: handleDrawerInvoice, onQuick: handleQuickPaymentReceive, onViewDetails: handleViewDetailInvoice, onPrint: handlePrintInvoice, diff --git a/client/src/containers/Sales/Invoices/InvoicesLanding/components.js b/client/src/containers/Sales/Invoices/InvoicesLanding/components.js index 8af13011e..066c45bd9 100644 --- a/client/src/containers/Sales/Invoices/InvoicesLanding/components.js +++ b/client/src/containers/Sales/Invoices/InvoicesLanding/components.js @@ -131,11 +131,6 @@ export function ActionsMenu({ onClick={safeCallback(onQuick, original)} /> - } - text={intl.get('invoice_paper')} - onClick={safeCallback(onDrawer, original)} - /> } text={intl.get('print')} diff --git a/client/src/containers/Sales/Receipts/ReceiptsLanding/ReceiptsTable.js b/client/src/containers/Sales/Receipts/ReceiptsLanding/ReceiptsTable.js index d08a16c6e..3f405a68c 100644 --- a/client/src/containers/Sales/Receipts/ReceiptsLanding/ReceiptsTable.js +++ b/client/src/containers/Sales/Receipts/ReceiptsLanding/ReceiptsTable.js @@ -60,11 +60,6 @@ function ReceiptsDataTable({ openAlert('receipt-delete', { receiptId: receipt.id }); }; - // Handle drawer receipts. - const handleDrawerReceipt = ({ id }) => { - openDrawer('receipt-drawer', { receiptId: id }); - }; - // Handles receipt close action. const handleCloseReceipt = (receipt) => { openAlert('receipt-close', { receiptId: receipt.id }); @@ -127,7 +122,6 @@ function ReceiptsDataTable({ onEdit: handleEditReceipt, onDelete: handleDeleteReceipt, onClose: handleCloseReceipt, - onDrawer: handleDrawerReceipt, onViewDetails: handleViewDetailReceipt, onPrint: handlePrintInvoice, }} diff --git a/client/src/containers/Sales/Receipts/ReceiptsLanding/components.js b/client/src/containers/Sales/Receipts/ReceiptsLanding/components.js index 25d972141..df7b70448 100644 --- a/client/src/containers/Sales/Receipts/ReceiptsLanding/components.js +++ b/client/src/containers/Sales/Receipts/ReceiptsLanding/components.js @@ -39,11 +39,6 @@ export function ActionsMenu({ onClick={safeCallback(onClose, receipt)} /> - } - text={intl.get('receipt_paper')} - onClick={safeCallback(onDrawer, receipt)} - /> } text={intl.get('print')}