Add flexible date pickers and export options to stock dashboard

Introduces a reusable date picker component with support for single date, date range, and month selection. Updates the stock management page to allow exporting reports by daily, weekly, monthly, or custom date ranges using the new pickers. Refactors promotion form to use the new date picker for start and end dates. Adds more business quotes to the quotes config.
This commit is contained in:
NotII
2025-07-30 00:38:25 +02:00
parent 48cfd45fb1
commit 1b51f29c24
5 changed files with 575 additions and 39 deletions

View File

@@ -75,7 +75,6 @@ export default function BroadcastDialog({ open, setOpen }: BroadcastDialogProps)
const newText = textarea.value.substring(0, start) + insertText + textarea.value.substring(end);
setBroadcastMessage(newText);
// Set cursor position after the inserted text
const newCursorPos = start + insertText.length;
textarea.focus();
textarea.setSelectionRange(newCursorPos, newCursorPos);