mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 14:20:31 +00:00
fix: customer/vendor drawer new transaction link.
This commit is contained in:
@@ -126,6 +126,7 @@ const BankAccountTitle = styled.div`
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
|
padding-right: 24px;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const BnakAccountCode = styled.div`
|
const BnakAccountCode = styled.div`
|
||||||
|
|||||||
@@ -57,34 +57,34 @@ function CustomerDetailsActionsBar({
|
|||||||
|
|
||||||
// Handle new invoice button click.
|
// Handle new invoice button click.
|
||||||
const handleNewInvoiceClick = () => {
|
const handleNewInvoiceClick = () => {
|
||||||
history.push('invoices/new');
|
history.push('/invoices/new');
|
||||||
closeDrawer('customer-detail-drawer');
|
closeDrawer('customer-detail-drawer');
|
||||||
};
|
};
|
||||||
// Handle new receipt button click.
|
// Handle new receipt button click.
|
||||||
const handleNewReceiptClick = () => {
|
const handleNewReceiptClick = () => {
|
||||||
history.push('receipts/new');
|
history.push('/receipts/new');
|
||||||
closeDrawer('customer-detail-drawer');
|
closeDrawer('customer-detail-drawer');
|
||||||
};
|
};
|
||||||
// Handle new payment receive button click.
|
// Handle new payment receive button click.
|
||||||
const handleNewPaymentClick = () => {
|
const handleNewPaymentClick = () => {
|
||||||
history.push('payment-receives/new');
|
history.push('/payment-receives/new');
|
||||||
closeDrawer('customer-detail-drawer');
|
closeDrawer('customer-detail-drawer');
|
||||||
};
|
};
|
||||||
// Handle new estimate button click.
|
// Handle new estimate button click.
|
||||||
const handleNewEstimateClick = () => {
|
const handleNewEstimateClick = () => {
|
||||||
history.push('estimates/new');
|
history.push('/estimates/new');
|
||||||
closeDrawer('customer-detail-drawer');
|
closeDrawer('customer-detail-drawer');
|
||||||
};
|
};
|
||||||
|
// Handles delete customer click.
|
||||||
const handleDeleteCustomer = () => {
|
const handleDeleteCustomer = () => {
|
||||||
openAlert(`customer-delete`, { contactId: customerId });
|
openAlert(`customer-delete`, { contactId: customerId });
|
||||||
};
|
};
|
||||||
|
// Handles edit customer click.
|
||||||
const handleEditContact = () => {
|
const handleEditContact = () => {
|
||||||
history.push(`/customers/${customerId}/edit`);
|
history.push(`/customers/${customerId}/edit`);
|
||||||
closeDrawer('customer-details-drawer');
|
closeDrawer('customer-details-drawer');
|
||||||
};
|
};
|
||||||
|
// Handle edit opening balance click.
|
||||||
const handleEditOpeningBalance = () => {
|
const handleEditOpeningBalance = () => {
|
||||||
openDialog('customer-opening-balance', { customerId });
|
openDialog('customer-opening-balance', { customerId });
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -64,12 +64,12 @@ function VendorDetailsActionsBar({
|
|||||||
};
|
};
|
||||||
|
|
||||||
const handleNewInvoiceClick = () => {
|
const handleNewInvoiceClick = () => {
|
||||||
history.push('bills/new');
|
history.push('/bills/new');
|
||||||
closeDrawer('vendor-detail-drawer');
|
closeDrawer('vendor-detail-drawer');
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleNewPaymentClick = () => {
|
const handleNewPaymentClick = () => {
|
||||||
history.push('payment-mades/new');
|
history.push('/payment-mades/new');
|
||||||
closeDrawer('vendor-detail-drawer');
|
closeDrawer('vendor-detail-drawer');
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user