mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-20 06:40:31 +00:00
feat: add refund transactions.
This commit is contained in:
@@ -42,6 +42,9 @@ function VendorCreditDetailActionsBar({
|
||||
closeDrawer('vendor-credit-detail-drawer');
|
||||
};
|
||||
|
||||
const handleRefundVendorCredit = () => {
|
||||
openDialog('refund-vendor-credit', { vendorCreditId });
|
||||
};
|
||||
// Handle delete credit note.
|
||||
const handleDeleteVendorCredit = () => {
|
||||
openAlert('vendor-credit-delete', { vendorCreditId });
|
||||
@@ -57,6 +60,14 @@ function VendorCreditDetailActionsBar({
|
||||
onClick={handleEditVendorCredit}
|
||||
/>
|
||||
<NavbarDivider />
|
||||
<Button
|
||||
className={Classes.MINIMAL}
|
||||
icon={<Icon icon="quick-payment-16" iconSize={16} />}
|
||||
text={'Refund'}
|
||||
// text={<T id={'add_payment'} />}
|
||||
onClick={handleRefundVendorCredit}
|
||||
/>
|
||||
<NavbarDivider />
|
||||
<Button
|
||||
className={Classes.MINIMAL}
|
||||
icon={<Icon icon={'trash-16'} iconSize={16} />}
|
||||
|
||||
Reference in New Issue
Block a user