From 2383091b6ef22ccdaf54f5ddaf797060fe07d995 Mon Sep 17 00:00:00 2001 From: Ahmed Bouhuolia Date: Wed, 12 Nov 2025 21:34:30 +0200 Subject: [PATCH] wip --- .../ManualJournalActionsBar.tsx | 23 ++++++++- .../ManualJournalsDataTable.tsx | 13 +++-- .../JournalsLanding/withManualJournals.tsx | 3 ++ .../withManualJournalsActions.tsx | 3 ++ .../Accounts/AccountsActionsBar.tsx | 51 ++++++++++--------- .../ExpensesLanding/ExpenseActionsBar.tsx | 22 +++++++- .../ExpensesLanding/ExpenseDataTable.tsx | 12 ++++- .../Expenses/ExpensesLanding/withExpenses.tsx | 3 ++ .../ExpensesLanding/withExpensesActions.tsx | 3 ++ .../src/containers/Items/ItemsActionsBar.tsx | 27 ++++++---- .../Bills/BillsLanding/BillsActionsBar.tsx | 25 ++++++++- .../Bills/BillsLanding/BillsTable.tsx | 8 +++ .../Bills/BillsLanding/withBills.tsx | 3 ++ .../Bills/BillsLanding/withBillsActions.tsx | 3 ++ .../withVendorsCreditNotes.tsx | 3 +- .../withVendorsCreditNotesActions.tsx | 3 ++ .../EstimatesLanding/EstimatesActionsBar.tsx | 29 +++++++---- .../EstimatesLanding/withEstimates.tsx | 4 +- .../InvoicesLanding/InvoicesActionsBar.tsx | 30 ++++++----- .../Invoices/InvoicesLanding/withInvoices.tsx | 4 +- .../ReceiptsLanding/ReceiptActionsBar.tsx | 23 ++++++++- .../Receipts/ReceiptsLanding/withReceipts.tsx | 3 ++ .../src/store/Bills/bills.selectors.tsx | 7 +++ .../store/Estimate/estimates.selectors.tsx | 6 +++ .../src/store/Invoice/invoices.selector.tsx | 17 +++++-- .../VendorCredit/vendorCredit.selector.tsx | 6 +++ .../src/store/expenses/expenses.selectors.tsx | 8 ++- .../manualJournals.selectors.tsx | 8 ++- .../src/store/receipts/receipts.selector.tsx | 7 +++ 29 files changed, 279 insertions(+), 78 deletions(-) diff --git a/packages/webapp/src/containers/Accounting/JournalsLanding/ManualJournalActionsBar.tsx b/packages/webapp/src/containers/Accounting/JournalsLanding/ManualJournalActionsBar.tsx index 5861febfb..39a451c6d 100644 --- a/packages/webapp/src/containers/Accounting/JournalsLanding/ManualJournalActionsBar.tsx +++ b/packages/webapp/src/containers/Accounting/JournalsLanding/ManualJournalActionsBar.tsx @@ -8,6 +8,7 @@ import { Intent, Alignment, } from '@blueprintjs/core'; +import { isEmpty } from 'lodash'; import { useHistory } from 'react-router-dom'; import { Icon, @@ -43,6 +44,7 @@ function ManualJournalActionsBar({ // #withManualJournals manualJournalsFilterConditions, + manualJournalsSelectedRows, // #withSettings manualJournalsTableSize, @@ -70,7 +72,7 @@ function ManualJournalActionsBar({ history.push('/make-journal-entry'); }; // Handle delete button click. - const handleBulkDelete = () => {}; + const handleBulkDelete = () => { }; // Handle tab change. const handleTabChange = (view) => { @@ -100,6 +102,22 @@ function ManualJournalActionsBar({ downloadExportPdf({ resource: 'ManualJournal' }); }; + if (!isEmpty(manualJournalsSelectedRows)) { + return ( + + +