Commit Graph
195 Commits
Author SHA1 Message Date
LogiFlow ef1d97d1eb Merge pull request #40 from R0m1k3/1.1
Improve customer order creation with a new frontend schema
2025-08-12 16:14:05 +02:00
michaelschal 9f00702fae Improve customer order creation with a new frontend schema
Introduce a frontend-compatible schema for customer order creation, allowing for more flexible data input and mapping to backend fields. This change also removes role restrictions for order creation and includes updated test scripts and cookie handling.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: b163d4c0-de5e-4f4e-a9c0-aed4c7049718
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/b163d4c0-de5e-4f4e-a9c0-aed4c7049718/CKKcmBc
2025-08-12 14:13:02 +00:00
LogiFlow bbdd4ba26d Merge pull request #39 from R0m1k3/1.1
Allow all users to create new DLC products
2025-08-12 16:07:44 +02:00
michaelschal bbdeb63b70 Allow all users to create new DLC products
Update API routes for DLC products to remove role-based permission checks for viewing and creating, aligning with the requirement that all roles can create DLCs.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: b163d4c0-de5e-4f4e-a9c0-aed4c7049718
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/b163d4c0-de5e-4f4e-a9c0-aed4c7049718/CiawheK
2025-08-12 14:07:07 +00:00
LogiFlow 599ada0ce8 Merge pull request #38 from R0m1k3/1.1
Allow all users to create customer orders without role restrictions
2025-08-12 16:06:31 +02:00
michaelschal 176f3acbc0 Allow all users to create customer orders without role restrictions
Remove role-based access control checks for creating customer orders, granting all roles the ability to create them.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: b163d4c0-de5e-4f4e-a9c0-aed4c7049718
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/b163d4c0-de5e-4f4e-a9c0-aed4c7049718/sxyKRlS
2025-08-12 14:05:38 +00:00
LogiFlow be4547834f Merge pull request #37 from R0m1k3/1.1
Allow employees to create customer orders on the production server
2025-08-12 16:02:40 +02:00
michaelschal 25b937aa6a Allow employees to create customer orders on the production server
Modify route protection logic in `server/routes.ts` to allow 'employee' role users to create customer orders and deliveries, aligning with the user's report that all roles should have this capability. Also, remove extensive debugging script and replace with a streamlined test script in `test-employee-customer-orders-production.js`.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: b163d4c0-de5e-4f4e-a9c0-aed4c7049718
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/b163d4c0-de5e-4f4e-a9c0-aed4c7049718/KcBoGui
2025-08-12 14:01:26 +00:00
LogiFlow 9d37abafb6 Merge pull request #36 from R0m1k3/1.1
Improve order and delivery management with refined user permissions
2025-08-12 15:58:59 +02:00
michaelschal 61c002f8be Improve order and delivery management with refined user permissions
Update routes in server/routes.ts to implement granular role-based access control for editing, deleting, and validating orders and deliveries using the `hasPermission` function, addressing permission issues for users attempting these actions.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: b163d4c0-de5e-4f4e-a9c0-aed4c7049718
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/b163d4c0-de5e-4f4e-a9c0-aed4c7049718/KcBoGui
2025-08-12 13:56:48 +00:00
LogiFlow f84e748486 Merge pull request #35 from R0m1k3/1.1
Enable employees to create and edit customer orders with correct perm…
2025-08-12 15:55:44 +02:00
michaelschal aa63fdcbe2 Enable employees to create and edit customer orders with correct permissions
Update permission checks for creating and editing customer orders in the backend, ensuring role-based access control is correctly enforced for employee roles.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: b163d4c0-de5e-4f4e-a9c0-aed4c7049718
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/b163d4c0-de5e-4f4e-a9c0-aed4c7049718/zYx3zXF
2025-08-12 13:55:00 +00:00
LogiFlow 8957b34fa1 Merge pull request #34 from R0m1k3/1.1
Fix order creation for employees and improve permission handling
2025-08-12 15:50:15 +02:00
michaelschal 7239b97c8c Fix order creation for employees and improve permission handling
Remove specific permission checks from route handlers in `server/routes.ts` and adjust the `delete` operation to use the shared permission system. Add a new debugging script `debug-employee-customer-orders.js` to diagnose issues with employee roles creating customer orders.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: b163d4c0-de5e-4f4e-a9c0-aed4c7049718
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/b163d4c0-de5e-4f4e-a9c0-aed4c7049718/rppGAOc
2025-08-12 13:49:10 +00:00
LogiFlow 5fe7b377a9 Merge pull request #33 from R0m1k3/1.1
Grant order editing and deletion access to directors
2025-08-12 15:48:22 +02:00
michaelschal 4b87d4e4f8 Grant order editing and deletion access to directors
Update permission checks in the order detail modal to grant directors the ability to edit and delete orders, aligning their permissions with administrators.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: b163d4c0-de5e-4f4e-a9c0-aed4c7049718
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/b163d4c0-de5e-4f4e-a9c0-aed4c7049718/M15WfkP
2025-08-12 13:46:38 +00:00
LogiFlow 09eb222fe3 Merge pull request #32 from R0m1k3/1.1
1.1
2025-08-12 15:43:56 +02:00
michaelschal 8cb0b3dffc Update order and delivery views to allow director access
Remove specific permission checks from order and delivery API endpoints, relying on a centralized permission system.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: b163d4c0-de5e-4f4e-a9c0-aed4c7049718
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/b163d4c0-de5e-4f4e-a9c0-aed4c7049718/50k5WjY
2025-08-12 13:43:16 +00:00
michaelschal 55b3aaa9e1 Improve access for director role to calendar features in production
Add permission checks to /api/orders and /api/deliveries routes and create a diagnostic script to debug production calendar access issues for the director role.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: b163d4c0-de5e-4f4e-a9c0-aed4c7049718
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/b163d4c0-de5e-4f4e-a9c0-aed4c7049718/lOTIEjy
2025-08-12 13:41:51 +00:00
michaelschal c1718f2f1f Enforce granular permissions for DLC product management operations
Implement role-based access control for all DLC product API endpoints, ensuring users only have access to actions they are authorized for (view, create, edit, validate, delete).

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: b163d4c0-de5e-4f4e-a9c0-aed4c7049718
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/b163d4c0-de5e-4f4e-a9c0-aed4c7049718/unrxPjo
2025-08-12 13:38:52 +00:00
michaelschal 82fe7abd05 Grant employees permission to create and manage customer orders
Implement role-based access control for customer order creation, editing, and deletion, resolving permission issues for employee roles.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: b163d4c0-de5e-4f4e-a9c0-aed4c7049718
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/b163d4c0-de5e-4f4e-a9c0-aed4c7049718/2frIorO
2025-08-12 13:36:32 +00:00
LogiFlow d51d50af8d Merge pull request #31 from R0m1k3/1.1
Fix issues for employee role in customer order management
2025-08-12 15:32:39 +02:00
michaelschal e4556fb1e5 Fix issues for employee role in customer order management
Correct data fetching and mutation invalidation logic in CustomerOrders page and address permission issues for employee role.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: b163d4c0-de5e-4f4e-a9c0-aed4c7049718
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/b163d4c0-de5e-4f4e-a9c0-aed4c7049718/deqBkyU
2025-08-12 13:30:54 +00:00
LogiFlow 904d442c36 Merge pull request #30 from R0m1k3/1.1
Allow directors to delete orders and deliveries across modules
2025-08-12 15:30:32 +02:00
michaelschal 2aa9d82dbd Allow directors to delete orders and deliveries across modules
Update permission checks to enable 'directeur' role for deleting orders and deliveries in Order, Delivery, and Calendar modules, aligning with user requirements.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: b163d4c0-de5e-4f4e-a9c0-aed4c7049718
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/b163d4c0-de5e-4f4e-a9c0-aed4c7049718/x9HQyBS
2025-08-12 13:28:54 +00:00
LogiFlow 04525fbf64 Merge pull request #29 from R0m1k3/1.1
Update reconciliation logic to correctly filter deliveries
2025-08-12 14:49:16 +02:00
michaelschal 2bfa0d2a12 Update reconciliation logic to correctly filter deliveries
Adjusted `isAutoReconciliation` to `automaticReconciliation` in BLReconciliation.tsx for accurate delivery filtering based on supplier reconciliation settings.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: b163d4c0-de5e-4f4e-a9c0-aed4c7049718
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/b163d4c0-de5e-4f4e-a9c0-aed4c7049718/hD9QaEy
2025-08-12 12:48:54 +00:00
LogiFlow dded2da6fb Merge pull request #28 from R0m1k3/1.1
Align amounts to the right and remove debugging logs from reconciliation
2025-08-12 14:46:48 +02:00
michaelschal d73b48d678 Align amounts to the right and remove debugging logs from reconciliation
Remove development logs and adjust financial data display alignment.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: b163d4c0-de5e-4f4e-a9c0-aed4c7049718
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/b163d4c0-de5e-4f4e-a9c0-aed4c7049718/AafoTqs
2025-08-12 12:46:18 +00:00
LogiFlow 39e9af32d0 Merge pull request #27 from R0m1k3/1.1
1.1
2025-08-12 14:42:14 +02:00
michaelschal d3ccc96bb9 Fix supplier display on manual reconciliation tab
Adjust the logic in BLReconciliation.tsx to correctly display suppliers in the manual reconciliation tab, resolving an issue where auto-reconciliation suppliers were incorrectly grouped.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: b163d4c0-de5e-4f4e-a9c0-aed4c7049718
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/b163d4c0-de5e-4f4e-a9c0-aed4c7049718/OknisSd
2025-08-12 12:37:20 +00:00
michaelschal fd61487d53 Center the 'difference' column and align its numeric values to the left
Update the `BLReconciliation.tsx` component to center the header of the 'Écart' column and align the numeric values within that column to the left.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: b163d4c0-de5e-4f4e-a9c0-aed4c7049718
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/b163d4c0-de5e-4f4e-a9c0-aed4c7049718/zxtWIfz
2025-08-12 12:35:25 +00:00
LogiFlow 65ef2910b0 Merge pull request #26 from R0m1k3/1.1
Add a thin grey border around validation icons
2025-08-12 14:32:04 +02:00
michaelschal 09ff19cda0 Add a thin grey border around validation icons
Apply a border to various check and check circle icons across different modals and pages to visually distinguish them.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: b163d4c0-de5e-4f4e-a9c0-aed4c7049718
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/b163d4c0-de5e-4f4e-a9c0-aed4c7049718/93Mucz1
2025-08-12 12:31:42 +00:00
LogiFlow 38069fd38b Merge pull request #25 from R0m1k3/1.1
Refine reconciliation view by removing manual title and aligning data
2025-08-12 14:30:16 +02:00
michaelschal aa0a900732 Refine reconciliation view by removing manual title and aligning data
Remove "Rapprochements Manuels" title and icon from the reconciliation view, bold BL numbers for unvalidated lines, and right-align the discrepancy column.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: b163d4c0-de5e-4f4e-a9c0-aed4c7049718
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/b163d4c0-de5e-4f4e-a9c0-aed4c7049718/l9FV9ZH
2025-08-12 12:29:40 +00:00
LogiFlow 0559f1aab4 Merge pull request #24 from R0m1k3/1.1
Allow directors and managers to validate deliveries in the system
2025-08-12 14:24:58 +02:00
michaelschal b3386eb6b9 Allow directors and managers to validate deliveries in the system
Update permissions in `shared/permissions.ts` and UI logic in `OrderDetailModal.tsx` and `Deliveries.tsx` to grant 'validate' permission to 'directeur' and 'manager' roles for deliveries.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: b163d4c0-de5e-4f4e-a9c0-aed4c7049718
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/b163d4c0-de5e-4f4e-a9c0-aed4c7049718/1jHchFx
2025-08-12 12:24:01 +00:00
LogiFlow 3256f9adee Merge pull request #23 from R0m1k3/1.1
1.1
2025-08-12 14:22:49 +02:00
michaelschal d32710ee3c Add debugging logs for reconciliation data on the reconciliation page
Add console logs to BLReconciliation.tsx for debugging reconciliation data, including total deliveries, suppliers, selected store ID, user role, and detailed delivery/supplier information.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: b163d4c0-de5e-4f4e-a9c0-aed4c7049718
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/b163d4c0-de5e-4f4e-a9c0-aed4c7049718/dpkQu60
2025-08-12 12:20:54 +00:00
michaelschal 836152024a Simplify reconciliation by filtering only suppliers with auto-reconciliation enabled.
Refactor BL reconciliation logic in `BLReconciliation.tsx` to only filter deliveries where `supplier.isAutoReconciliation` is explicitly true, simplifying the manual reconciliation filter.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: b163d4c0-de5e-4f4e-a9c0-aed4c7049718
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/b163d4c0-de5e-4f4e-a9c0-aed4c7049718/HZmju0j
2025-08-12 12:20:03 +00:00
michaelschal b625077cae Improve automatic reconciliation logic to include deliveries already reconciled
Fixes an issue where some deliveries were not appearing in automatic reconciliation due to an incorrect filter condition. The logic now correctly identifies automatically reconciled deliveries based on supplier settings or existing reconciled status, aligning with the user's report of auto-reconciliation showing zero when data exists.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: b163d4c0-de5e-4f4e-a9c0-aed4c7049718
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/b163d4c0-de5e-4f4e-a9c0-aed4c7049718/rzSRfN7
2025-08-12 12:19:15 +00:00
LogiFlow 8b8f66109f Merge pull request #22 from R0m1k3/1.1
Improve display for unreconciled delivery items
2025-08-12 14:17:59 +02:00
michaelschal 66c7fd3e46 Improve display for unreconciled delivery items
Update the UI to show unreconciled delivery items in white with bold text for supplier name, BL amount, invoice reference, and invoice amount in `BLReconciliation.tsx`.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: b163d4c0-de5e-4f4e-a9c0-aed4c7049718
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/b163d4c0-de5e-4f4e-a9c0-aed4c7049718/5adUZHZ
2025-08-12 12:16:35 +00:00
LogiFlow b8d6b44963 Merge pull request #21 from R0m1k3/1.1
Fix issue preventing users from editing reconciliation data
2025-08-12 14:15:49 +02:00
michaelschal a1d6cab167 Fix issue preventing users from editing reconciliation data
Adjusted ReconciliationModal to correctly display and handle edit modal opening when the edit icon is clicked, resolving a bug where the modal would not appear.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: b163d4c0-de5e-4f4e-a9c0-aed4c7049718
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/b163d4c0-de5e-4f4e-a9c0-aed4c7049718/wlAjxK8
2025-08-12 12:14:39 +00:00
LogiFlow 6914b4998d Merge pull request #20 from R0m1k3/1.1
Add pagination and card design to the reconciliation page
2025-08-12 14:11:24 +02:00
michaelschal aee6f7cf5c Add pagination and card design to the reconciliation page
Update the BLReconciliation page to include pagination controls at the top and bottom of the table, limit to 20 items per page, and refactor the UI to use a card-based layout.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: b163d4c0-de5e-4f4e-a9c0-aed4c7049718
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/b163d4c0-de5e-4f4e-a9c0-aed4c7049718/pf3Qeu9
2025-08-12 12:10:40 +00:00
LogiFlow 5605604279 Merge pull request #19 from R0m1k3/1.1
Allow employees to create customer orders and DLCs
2025-08-12 14:04:06 +02:00
michaelschal 0fa48697a1 Allow employees to create customer orders and DLCs
Refactor server routes to use the shared permission system for employee access to customer orders and DLC creation, resolving hardcoded restrictions.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: b163d4c0-de5e-4f4e-a9c0-aed4c7049718
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/b163d4c0-de5e-4f4e-a9c0-aed4c7049718/2NIL7kU
2025-08-12 12:03:19 +00:00