mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 12:50:38 +00:00
fix: customer/vendor drawer new transaction link.
This commit is contained in:
@@ -126,6 +126,7 @@ const BankAccountTitle = styled.div`
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
margin: 0px;
|
||||
padding-right: 24px;
|
||||
`;
|
||||
|
||||
const BnakAccountCode = styled.div`
|
||||
|
||||
@@ -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 });
|
||||
};
|
||||
|
||||
@@ -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');
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user