mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 06:10:31 +00:00
feat(webapp): add mark as delivered to action bar of invoice details drawer
This commit is contained in:
@@ -57,6 +57,11 @@ function InvoiceDetailActionsBar({
|
||||
closeDrawer(DRAWERS.INVOICE_DETAILS);
|
||||
};
|
||||
|
||||
// Hanlde deliver sale invoice.
|
||||
const handleDeliverInvoice = ({ id }) => {
|
||||
openAlert('invoice-deliver', { invoiceId });
|
||||
};
|
||||
|
||||
// Handle convert to invoice.
|
||||
const handleConvertToCreitNote = () => {
|
||||
history.push(`/credit-notes/new?from_invoice_id=${invoiceId}`, {
|
||||
@@ -153,6 +158,7 @@ function InvoiceDetailActionsBar({
|
||||
onCancelBadDebt: handleCancelBadDebtInvoice,
|
||||
onNotifyViaSMS: handleNotifyViaSMS,
|
||||
onConvert: handleConvertToCreitNote,
|
||||
onDeliver: handleDeliverInvoice,
|
||||
}}
|
||||
/>
|
||||
</Can>
|
||||
|
||||
Reference in New Issue
Block a user