mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-20 14:50:32 +00:00
BIG-96: remove payment receive paper.
This commit is contained in:
@@ -59,11 +59,6 @@ function PaymentReceivesDataTable({
|
|||||||
openAlert('payment-receive-delete', { paymentReceiveId: id });
|
openAlert('payment-receive-delete', { paymentReceiveId: id });
|
||||||
};
|
};
|
||||||
|
|
||||||
// Handle drawer payment receive.
|
|
||||||
const handleDrawerPaymentReceive = ({ id }) => {
|
|
||||||
openDrawer('payment-receive-drawer', { paymentReceiveId: id });
|
|
||||||
};
|
|
||||||
|
|
||||||
// Handle view detail payment receive..
|
// Handle view detail payment receive..
|
||||||
const handleViewDetailPaymentReceive = ({ id }) => {
|
const handleViewDetailPaymentReceive = ({ id }) => {
|
||||||
openDrawer('payment-receive-detail-drawer', { paymentReceiveId: id });
|
openDrawer('payment-receive-detail-drawer', { paymentReceiveId: id });
|
||||||
@@ -123,7 +118,6 @@ function PaymentReceivesDataTable({
|
|||||||
payload={{
|
payload={{
|
||||||
onDelete: handleDeletePaymentReceive,
|
onDelete: handleDeletePaymentReceive,
|
||||||
onEdit: handleEditPaymentReceive,
|
onEdit: handleEditPaymentReceive,
|
||||||
onDrawer: handleDrawerPaymentReceive,
|
|
||||||
onViewDetails: handleViewDetailPaymentReceive,
|
onViewDetails: handleViewDetailPaymentReceive,
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ import { CLASSES } from '../../../../common/classes';
|
|||||||
*/
|
*/
|
||||||
export function ActionsMenu({
|
export function ActionsMenu({
|
||||||
row: { original: paymentReceive },
|
row: { original: paymentReceive },
|
||||||
payload: { onEdit, onDelete, onDrawer, onViewDetails },
|
payload: { onEdit, onDelete, onViewDetails },
|
||||||
}) {
|
}) {
|
||||||
return (
|
return (
|
||||||
<Menu>
|
<Menu>
|
||||||
@@ -35,11 +35,6 @@ export function ActionsMenu({
|
|||||||
text={intl.get('edit_payment_receive')}
|
text={intl.get('edit_payment_receive')}
|
||||||
onClick={safeCallback(onEdit, paymentReceive)}
|
onClick={safeCallback(onEdit, paymentReceive)}
|
||||||
/>
|
/>
|
||||||
<MenuItem
|
|
||||||
icon={<Icon icon={'receipt-24'} iconSize={16} />}
|
|
||||||
text={intl.get('payment_receive_paper')}
|
|
||||||
onClick={safeCallback(onDrawer, paymentReceive)}
|
|
||||||
/>
|
|
||||||
<MenuItem
|
<MenuItem
|
||||||
text={intl.get('delete_payment_receive')}
|
text={intl.get('delete_payment_receive')}
|
||||||
intent={Intent.DANGER}
|
intent={Intent.DANGER}
|
||||||
|
|||||||
Reference in New Issue
Block a user