mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-20 14:50:32 +00:00
fix: remove estimate paper button action.
This commit is contained in:
@@ -70,11 +70,6 @@ function EstimatesDataTable({
|
|||||||
openAlert('estimate-reject', { estimateId: id });
|
openAlert('estimate-reject', { estimateId: id });
|
||||||
};
|
};
|
||||||
|
|
||||||
// Handle drawer estimate.
|
|
||||||
const handleDrawerEstimate = ({ id }) => {
|
|
||||||
openDrawer('estimate-drawer', { estimateId: id });
|
|
||||||
};
|
|
||||||
|
|
||||||
// Handle convent to invoice.
|
// Handle convent to invoice.
|
||||||
const handleConvertToInvoice = ({ id }) => {
|
const handleConvertToInvoice = ({ id }) => {
|
||||||
history.push(`/invoices/new?from_estimate_id=${id}`, { action: id });
|
history.push(`/invoices/new?from_estimate_id=${id}`, { action: id });
|
||||||
@@ -137,7 +132,6 @@ function EstimatesDataTable({
|
|||||||
onReject: handleRejectEstimate,
|
onReject: handleRejectEstimate,
|
||||||
onDeliver: handleDeliverEstimate,
|
onDeliver: handleDeliverEstimate,
|
||||||
onDelete: handleDeleteEstimate,
|
onDelete: handleDeleteEstimate,
|
||||||
onDrawer: handleDrawerEstimate,
|
|
||||||
onConvert: handleConvertToInvoice,
|
onConvert: handleConvertToInvoice,
|
||||||
onViewDetails: handleViewDetailEstimate,
|
onViewDetails: handleViewDetailEstimate,
|
||||||
onPrint: handlePrintEstimate,
|
onPrint: handlePrintEstimate,
|
||||||
|
|||||||
@@ -115,11 +115,6 @@ export function ActionsMenu({
|
|||||||
/>
|
/>
|
||||||
</Choose.When>
|
</Choose.When>
|
||||||
</Choose>
|
</Choose>
|
||||||
<MenuItem
|
|
||||||
icon={<Icon icon={'receipt-24'} iconSize={16} />}
|
|
||||||
text={intl.get('estimate_paper')}
|
|
||||||
onClick={safeCallback(onDrawer, original)}
|
|
||||||
/>
|
|
||||||
<MenuItem
|
<MenuItem
|
||||||
icon={<Icon icon={'print-16'} iconSize={16} />}
|
icon={<Icon icon={'print-16'} iconSize={16} />}
|
||||||
text={intl.get('print')}
|
text={intl.get('print')}
|
||||||
|
|||||||
@@ -66,11 +66,6 @@ function InvoicesDataTable({
|
|||||||
history.push(`/invoices/${invoice.id}/edit`);
|
history.push(`/invoices/${invoice.id}/edit`);
|
||||||
};
|
};
|
||||||
|
|
||||||
// Handle drawer invoice.
|
|
||||||
const handleDrawerInvoice = ({ id }) => {
|
|
||||||
openDrawer('invoice-drawer', { invoiceId: id });
|
|
||||||
};
|
|
||||||
|
|
||||||
// handle quick payment receive.
|
// handle quick payment receive.
|
||||||
const handleQuickPaymentReceive = ({ id }) => {
|
const handleQuickPaymentReceive = ({ id }) => {
|
||||||
openDialog('quick-payment-receive', { invoiceId: id });
|
openDialog('quick-payment-receive', { invoiceId: id });
|
||||||
@@ -134,7 +129,6 @@ function InvoicesDataTable({
|
|||||||
onDelete: handleDeleteInvoice,
|
onDelete: handleDeleteInvoice,
|
||||||
onDeliver: handleDeliverInvoice,
|
onDeliver: handleDeliverInvoice,
|
||||||
onEdit: handleEditInvoice,
|
onEdit: handleEditInvoice,
|
||||||
onDrawer: handleDrawerInvoice,
|
|
||||||
onQuick: handleQuickPaymentReceive,
|
onQuick: handleQuickPaymentReceive,
|
||||||
onViewDetails: handleViewDetailInvoice,
|
onViewDetails: handleViewDetailInvoice,
|
||||||
onPrint: handlePrintInvoice,
|
onPrint: handlePrintInvoice,
|
||||||
|
|||||||
@@ -131,11 +131,6 @@ export function ActionsMenu({
|
|||||||
onClick={safeCallback(onQuick, original)}
|
onClick={safeCallback(onQuick, original)}
|
||||||
/>
|
/>
|
||||||
</If>
|
</If>
|
||||||
<MenuItem
|
|
||||||
icon={<Icon icon={'receipt-24'} iconSize={16} />}
|
|
||||||
text={intl.get('invoice_paper')}
|
|
||||||
onClick={safeCallback(onDrawer, original)}
|
|
||||||
/>
|
|
||||||
<MenuItem
|
<MenuItem
|
||||||
icon={<Icon icon={'print-16'} iconSize={16} />}
|
icon={<Icon icon={'print-16'} iconSize={16} />}
|
||||||
text={intl.get('print')}
|
text={intl.get('print')}
|
||||||
|
|||||||
@@ -60,11 +60,6 @@ function ReceiptsDataTable({
|
|||||||
openAlert('receipt-delete', { receiptId: receipt.id });
|
openAlert('receipt-delete', { receiptId: receipt.id });
|
||||||
};
|
};
|
||||||
|
|
||||||
// Handle drawer receipts.
|
|
||||||
const handleDrawerReceipt = ({ id }) => {
|
|
||||||
openDrawer('receipt-drawer', { receiptId: id });
|
|
||||||
};
|
|
||||||
|
|
||||||
// Handles receipt close action.
|
// Handles receipt close action.
|
||||||
const handleCloseReceipt = (receipt) => {
|
const handleCloseReceipt = (receipt) => {
|
||||||
openAlert('receipt-close', { receiptId: receipt.id });
|
openAlert('receipt-close', { receiptId: receipt.id });
|
||||||
@@ -127,7 +122,6 @@ function ReceiptsDataTable({
|
|||||||
onEdit: handleEditReceipt,
|
onEdit: handleEditReceipt,
|
||||||
onDelete: handleDeleteReceipt,
|
onDelete: handleDeleteReceipt,
|
||||||
onClose: handleCloseReceipt,
|
onClose: handleCloseReceipt,
|
||||||
onDrawer: handleDrawerReceipt,
|
|
||||||
onViewDetails: handleViewDetailReceipt,
|
onViewDetails: handleViewDetailReceipt,
|
||||||
onPrint: handlePrintInvoice,
|
onPrint: handlePrintInvoice,
|
||||||
}}
|
}}
|
||||||
|
|||||||
@@ -39,11 +39,6 @@ export function ActionsMenu({
|
|||||||
onClick={safeCallback(onClose, receipt)}
|
onClick={safeCallback(onClose, receipt)}
|
||||||
/>
|
/>
|
||||||
</If>
|
</If>
|
||||||
<MenuItem
|
|
||||||
icon={<Icon icon={'receipt-24'} iconSize={16} />}
|
|
||||||
text={intl.get('receipt_paper')}
|
|
||||||
onClick={safeCallback(onDrawer, receipt)}
|
|
||||||
/>
|
|
||||||
<MenuItem
|
<MenuItem
|
||||||
icon={<Icon icon={'print-16'} iconSize={16} />}
|
icon={<Icon icon={'print-16'} iconSize={16} />}
|
||||||
text={intl.get('print')}
|
text={intl.get('print')}
|
||||||
|
|||||||
Reference in New Issue
Block a user