BIG-96: remove payment receive paper.

This commit is contained in:
elforjani13
2021-09-21 19:44:42 +02:00
parent 903e769bff
commit 9ba0859325
2 changed files with 1 additions and 12 deletions

View File

@@ -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,
}} }}
/> />

View File

@@ -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}