Commit Graph
813 Commits
Author SHA1 Message Date
LogiFlow 4f70e00ee3 Merge pull request #302 from R0m1k3/1.1
Show linkage badges on daily delivery and order items
2025-09-01 14:19:04 +02:00
michaelschal a77a596880 Show linkage badges on daily delivery and order items
Add conditional rendering for linkage badges in `CalendarGrid.tsx` when an order has deliveries or a delivery is associated with an order.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 98f01874-e00c-4bbe-9d71-b0b338001848
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/98f01874-e00c-4bbe-9d71-b0b338001848/747GbQM
2025-09-01 12:18:16 +00:00
LogiFlow dafc31430d Merge pull request #301 from R0m1k3/1.1
Add visual indicator for orders linked to deliveries
2025-09-01 14:14:32 +02:00
michaelschal c0d3714aac Add visual indicator for orders linked to deliveries
Adds a blue badge to `CalendarItem` component in `CalendarGrid.tsx` to visually indicate when an order is linked to deliveries, utilizing a `Link` icon and styling.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 98f01874-e00c-4bbe-9d71-b0b338001848
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/98f01874-e00c-4bbe-9d71-b0b338001848/HSHfb0Z
2025-09-01 12:13:56 +00:00
LogiFlow 3c4e8ff336 Merge pull request #300 from R0m1k3/1.1
Add visual indicator for deliveries linked to orders on the calendar
2025-09-01 14:07:30 +02:00
michaelschal a39b71ab39 Add visual indicator for deliveries linked to orders on the calendar
Imports the `Link` icon from `lucide-react` and adds a conditional badge displaying a link icon to `CalendarItem` components when `item.orderId` is present, indicating a delivery linked to an order.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 98f01874-e00c-4bbe-9d71-b0b338001848
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/98f01874-e00c-4bbe-9d71-b0b338001848/PAgei8r
2025-09-01 12:06:54 +00:00
LogiFlow be4c7a750c Merge pull request #299 from R0m1k3/1.1
1.1
2025-09-01 13:58:23 +02:00
michaelschal c09388c0aa Make delivery validation require a mandatory delivery note number
Enforce the requirement for a delivery note number (blNumber) during delivery validation on both the delivery and calendar modules. This change updates the frontend validation schema to make blNumber a required field with a minimum length, modifies the backend logic to reject validations without a blNumber, and integrates a new modal component for handling this validation process within the Deliveries page.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 98f01874-e00c-4bbe-9d71-b0b338001848
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/98f01874-e00c-4bbe-9d71-b0b338001848/yaZkPAT
2025-09-01 11:57:55 +00:00
michaelschal 6dca340c45 Saved your changes before starting work
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 98f01874-e00c-4bbe-9d71-b0b338001848
Replit-Commit-Checkpoint-Type: full_checkpoint
2025-09-01 11:53:14 +00:00
LogiFlow e205be08c2 Merge pull request #298 from R0m1k3/1.1
1.1
2025-08-31 09:56:48 +02:00
michaelschal 8dec1c46ba Improve reconciliation process by skipping already validated deliveries
Update client-side logic in BLReconciliation to exclude deliveries with a 'reconciled' status from automatic verification. Modify server-side InvoiceVerificationService to implement permanent caching for reconciled invoices, preventing redundant checks.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: daf3525c-b971-454a-b0c0-7a9845e786cc
Replit-Commit-Checkpoint-Type: full_checkpoint
2025-08-31 07:56:20 +00:00
michaelschal aef303b709 Improve reconciliation process by skipping already processed deliveries
Optimize the reconciliation page by pre-populating results for already reconciled deliveries and skipping them in the auto-verification loop. Also, add an API endpoint for administrators to diagnose cache status for reconciled deliveries.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: daf3525c-b971-454a-b0c0-7a9845e786cc
Replit-Commit-Checkpoint-Type: full_checkpoint
2025-08-31 07:54:35 +00:00
LogiFlow 445ba11971 Merge pull request #297 from R0m1k3/1.1
Improve task management by optimizing cache updates for reconciled in…
2025-08-31 09:49:39 +02:00
michaelschal 9ed380a279 Improve task management by optimizing cache updates for reconciled invoices
Add new functionality to update invoice verification cache to permanent status after reconciliation. Introduce a new API endpoint for admins to trigger bulk updates of existing reconciled caches, addressing potential performance issues with repeated checks on verified items.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: daf3525c-b971-454a-b0c0-7a9845e786cc
Replit-Commit-Checkpoint-Type: full_checkpoint
2025-08-31 07:49:05 +00:00
LogiFlow ec2f61cf6f Merge pull request #296 from R0m1k3/1.1
1.1
2025-08-31 09:42:52 +02:00
michaelschal 97b63b61e8 Improve invoice verification caching with permanent storage for reconciled items
Introduce adaptive caching durations for invoice verification: permanent caching for reconciled invoices, temporary caching for found invoices, and longer temporary caching for not-found invoices.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: daf3525c-b971-454a-b0c0-7a9845e786cc
Replit-Commit-Checkpoint-Type: full_checkpoint
2025-08-31 07:39:11 +00:00
michaelschal 6c853052f1 Update development server configuration for better integration
Remove Javascript database integration from the .replit file to align with current project setup.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: daf3525c-b971-454a-b0c0-7a9845e786cc
Replit-Commit-Checkpoint-Type: full_checkpoint
2025-08-31 07:18:17 +00:00
michaelschal 7826f44c40 Saved your changes before starting work
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: daf3525c-b971-454a-b0c0-7a9845e786cc
Replit-Commit-Checkpoint-Type: full_checkpoint
2025-08-31 07:17:08 +00:00
LogiFlow e8d92fbc11 Merge pull request #295 from R0m1k3/1.1
Streamline invoice sending by removing document type selection
2025-08-22 12:12:06 +02:00
michaelschal e396cbd096 Streamline invoice sending by removing document type selection
Simplify the BL reconciliation process by removing the option to select between invoice or credit note and defaulting to 'Facture', improving user experience and reducing complexity.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 72798e04-65c2-4587-bc41-77a3d4984153
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/72798e04-65c2-4587-bc41-77a3d4984153/QaTgrBu
2025-08-22 10:04:10 +00:00
LogiFlow fd35e6547b Merge pull request #294 from R0m1k3/1.1
Update modal to align action buttons to the right
2025-08-22 11:44:26 +02:00
michaelschal 514272c6f6 Update modal to align action buttons to the right
Modify ReconciliationModal.tsx to change flex justify-between to flex justify-end for the actions div.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 72798e04-65c2-4587-bc41-77a3d4984153
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/72798e04-65c2-4587-bc41-77a3d4984153/QaTgrBu
2025-08-22 09:43:54 +00:00
LogiFlow 7a6b84e4c1 Merge pull request #293 from R0m1k3/1.1
Remove the validation button from the reconciliation modal
2025-08-22 11:41:28 +02:00
michaelschal a04dc123a3 Remove the validation button from the reconciliation modal
Remove the "Valider le rapprochement" button and associated logic from the ReconciliationModal component in client/src/components/modals/ReconciliationModal.tsx.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 72798e04-65c2-4587-bc41-77a3d4984153
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/72798e04-65c2-4587-bc41-77a3d4984153/QaTgrBu
2025-08-22 09:39:55 +00:00
LogiFlow e38a86e436 Merge pull request #292 from R0m1k3/1.1
1.1
2025-08-22 09:42:55 +02:00
michaelschal 6a2457ca68 Enable task creation with selected store for administrators
Update TaskFormInline to accept selectedStoreId and user, passing them to the backend for task creation.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 72798e04-65c2-4587-bc41-77a3d4984153
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/72798e04-65c2-4587-bc41-77a3d4984153/rxmoj25
2025-08-22 07:32:16 +00:00
michaelschal 2418e308c9 Saved your changes before starting work
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 72798e04-65c2-4587-bc41-77a3d4984153
Replit-Commit-Checkpoint-Type: full_checkpoint
2025-08-22 07:29:32 +00:00
LogiFlow 747b41aaa5 Merge pull request #291 from R0m1k3/1.1
1.1
2025-08-21 13:37:40 +02:00
LogiFlow a65276028e Merge pull request #290 from R0m1k3/1.1
1.1
2025-08-21 13:37:10 +02:00
michaelschal 1a7f284cc6 Extend year selection to include a decade of future options
Update `Publicities.tsx` to generate year options from 2025 to 2035, modifying the `yearOptions` array generation logic.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 0ec86cdf-a5be-4b0e-84a3-07b926f5cc80
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/0ec86cdf-a5be-4b0e-84a3-07b926f5cc80/0gylnen
2025-08-21 11:37:01 +00:00
michaelschal cbf2eed63a Update how the current year is displayed in the publicities section
Remove defaultValue and placeholder for the year select component in Publicities.tsx.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 0ec86cdf-a5be-4b0e-84a3-07b926f5cc80
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/0ec86cdf-a5be-4b0e-84a3-07b926f5cc80/0gylnen
2025-08-21 11:36:09 +00:00
michaelschal 393ee4a231 Set default year selection to the current year for better usability
Update the year selector component in Publicities.tsx to default to the current year, improving the user experience by pre-selecting the most relevant year.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 0ec86cdf-a5be-4b0e-84a3-07b926f5cc80
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/0ec86cdf-a5be-4b0e-84a3-07b926f5cc80/0gylnen
2025-08-21 11:34:41 +00:00
michaelschal bac38b76d7 Update year selector in advertising module to show current year and next five
Adjusts the year selection range in the advertising module to display the current year and the following five years, setting the current year as the default.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 0ec86cdf-a5be-4b0e-84a3-07b926f5cc80
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/0ec86cdf-a5be-4b0e-84a3-07b926f5cc80/0gylnen
2025-08-21 11:33:23 +00:00
LogiFlow c84c61bb15 Merge pull request #289 from R0m1k3/1.1
Improve how advertisements are displayed by fixing sorting
2025-08-21 13:30:40 +02:00
michaelschal 1aa3069d89 Improve how advertisements are displayed by fixing sorting
Adjust the advertisement retrieval to use direct column ordering instead of SQL CAST for better production compatibility and logging.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 0ec86cdf-a5be-4b0e-84a3-07b926f5cc80
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/0ec86cdf-a5be-4b0e-84a3-07b926f5cc80/0gylnen
2025-08-21 11:29:53 +00:00
LogiFlow d82563c496 Merge pull request #288 from R0m1k3/1.1
Fix display issues and adjust year range for publicities
2025-08-21 13:26:47 +02:00
michaelschal 6cf7631bdf Fix display issues and adjust year range for publicities
Correctly display publicities by fixing an issue that prevented data from rendering, and expand the selectable year range to include years from 2020 onwards.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 0ec86cdf-a5be-4b0e-84a3-07b926f5cc80
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/0ec86cdf-a5be-4b0e-84a3-07b926f5cc80/bg09zFa
2025-08-21 11:25:56 +00:00
LogiFlow ef9f9b4dc4 Merge pull request #287 from R0m1k3/1.1
1.1
2025-08-21 13:23:02 +02:00
michaelschal 19c41f11c3 Improve handling of yearly data to correctly process all years
Update year calculations to accurately reflect week and month assignments, particularly for transitional periods between years, and enhance API logging for debugging.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 0ec86cdf-a5be-4b0e-84a3-07b926f5cc80
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/0ec86cdf-a5be-4b0e-84a3-07b926f5cc80/ZJYssQp
2025-08-21 11:22:14 +00:00
michaelschal 55afb8eb70 Improve year week calculation for accurate display of past and future events
Refactor the `getYearWeeks` function to use a safer `Date` constructor and limit the number of weeks generated, addressing an issue with the year 2025 calculation.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 0ec86cdf-a5be-4b0e-84a3-07b926f5cc80
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/0ec86cdf-a5be-4b0e-84a3-07b926f5cc80/ZJYssQp
2025-08-21 11:20:58 +00:00
LogiFlow 6df45d7138 Merge pull request #286 from R0m1k3/1.1
Sort advertisements by number on the frontend
2025-08-21 13:17:14 +02:00
michaelschal df061adf7a Sort advertisements by number on the frontend
Fixes an issue where advertisements were not consistently sorted by their publication number on the frontend by implementing a client-side sort function in `Publicities.tsx`.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 0ec86cdf-a5be-4b0e-84a3-07b926f5cc80
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/0ec86cdf-a5be-4b0e-84a3-07b926f5cc80/nmin1YE
2025-08-21 11:16:02 +00:00
LogiFlow 7f487940bf Merge pull request #285 from R0m1k3/1.1
1.1
2025-08-21 13:10:36 +02:00
michaelschal 172541c2b7 Make managers see orders from their assigned store automatically
Update manager role logic in routes.ts to automatically use the first assigned store for orders and deliveries, and handle cases where no stores are assigned.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 0ec86cdf-a5be-4b0e-84a3-07b926f5cc80
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/0ec86cdf-a5be-4b0e-84a3-07b926f5cc80/PHXoZau
2025-08-21 11:10:06 +00:00
michaelschal 1a21876978 Grant director access to all orders and refine manager order visibility
Update route logic to include 'directeur' role for admin-like access and adjust manager role to display orders from all accessible groups, while enforcing explicit store selection for employees.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 0ec86cdf-a5be-4b0e-84a3-07b926f5cc80
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/0ec86cdf-a5be-4b0e-84a3-07b926f5cc80/PHXoZau
2025-08-21 11:03:41 +00:00
LogiFlow 268abbb239 Merge pull request #284 from R0m1k3/1.1
Ensure task list sorts correctly by number from smallest to largest
2025-08-21 12:54:31 +02:00
michaelschal ceebe73b91 Ensure task list sorts correctly by number from smallest to largest
Fix task sorting by casting the publication number to an integer for accurate numerical ordering and update logging for better debugging insight.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 2e1318c6-77b3-4174-b8c7-432d781590ed
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/2e1318c6-77b3-4174-b8c7-432d781590ed/sW3Ppp1
2025-08-21 10:53:36 +00:00
LogiFlow fda94000d0 Merge pull request #283 from R0m1k3/1.1
Improve task sorting by user role and creation date
2025-08-21 12:50:32 +02:00
michaelschal 372b67429b Improve task sorting by user role and creation date
Update task sorting logic to prioritize user roles and creation dates for better organization.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 2e1318c6-77b3-4174-b8c7-432d781590ed
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/2e1318c6-77b3-4174-b8c7-432d781590ed/EyDMIMl
2025-08-21 10:47:14 +00:00
LogiFlow fc77185b50 Merge pull request #282 from R0m1k3/1.1
Update how advertisements are displayed to show smallest numbers first
2025-08-21 12:44:55 +02:00