fix: customer/vendor drawer new transaction link.

This commit is contained in:
a.bouhuolia
2023-01-26 23:08:19 +02:00
parent 24407bd744
commit e900966cb2
3 changed files with 10 additions and 9 deletions

View File

@@ -126,6 +126,7 @@ const BankAccountTitle = styled.div`
overflow: hidden;
text-overflow: ellipsis;
margin: 0px;
padding-right: 24px;
`;
const BnakAccountCode = styled.div`

View File

@@ -57,34 +57,34 @@ function CustomerDetailsActionsBar({
// Handle new invoice button click.
const handleNewInvoiceClick = () => {
history.push('invoices/new');
history.push('/invoices/new');
closeDrawer('customer-detail-drawer');
};
// Handle new receipt button click.
const handleNewReceiptClick = () => {
history.push('receipts/new');
history.push('/receipts/new');
closeDrawer('customer-detail-drawer');
};
// Handle new payment receive button click.
const handleNewPaymentClick = () => {
history.push('payment-receives/new');
history.push('/payment-receives/new');
closeDrawer('customer-detail-drawer');
};
// Handle new estimate button click.
const handleNewEstimateClick = () => {
history.push('estimates/new');
history.push('/estimates/new');
closeDrawer('customer-detail-drawer');
};
// Handles delete customer click.
const handleDeleteCustomer = () => {
openAlert(`customer-delete`, { contactId: customerId });
};
// Handles edit customer click.
const handleEditContact = () => {
history.push(`/customers/${customerId}/edit`);
closeDrawer('customer-details-drawer');
};
// Handle edit opening balance click.
const handleEditOpeningBalance = () => {
openDialog('customer-opening-balance', { customerId });
};

View File

@@ -64,12 +64,12 @@ function VendorDetailsActionsBar({
};
const handleNewInvoiceClick = () => {
history.push('bills/new');
history.push('/bills/new');
closeDrawer('vendor-detail-drawer');
};
const handleNewPaymentClick = () => {
history.push('payment-mades/new');
history.push('/payment-mades/new');
closeDrawer('vendor-detail-drawer');
};