feat(webapp): dynamic columns of sales by items sheet

This commit is contained in:
Ahmed Bouhuolia
2024-01-18 14:39:56 +02:00
parent 4a920176f4
commit 471ce1b7af
8 changed files with 277 additions and 50 deletions

View File

@@ -19,6 +19,7 @@ import withSalesByItemsActions from './withSalesByItemsActions';
import { compose, saveInvoke } from '@/utils';
import { useSalesByItemsContext } from './SalesByItemProvider';
import { SalesByItemsSheetExportMenu } from './components';
function SalesByItemsActionsBar({
// #withSalesByItems
@@ -108,11 +109,18 @@ function SalesByItemsActionsBar({
icon={<Icon icon="print-16" iconSize={16} />}
text={<T id={'print'} />}
/>
<Button
className={Classes.MINIMAL}
icon={<Icon icon="file-export-16" iconSize={16} />}
text={<T id={'export'} />}
/>
<Popover
content={<SalesByItemsSheetExportMenu />}
interactionKind={PopoverInteractionKind.CLICK}
placement="bottom-start"
minimal
>
<Button
className={Classes.MINIMAL}
icon={<Icon icon="file-export-16" iconSize={16} />}
text={<T id={'export'} />}
/>
</Popover>
</NavbarGroup>
</DashboardActionsBar>
);