LogiFlow
2bc1171328
Merge pull request #48 from R0m1k3/1.1
...
Fix customer order creation for employees assigned to different stores
2025-08-12 17:04:59 +02:00
michaelschal
8939b40bcc
Fix customer order creation for employees assigned to different stores
...
Correctly assigns the customer order's store based on the employee's assigned store, preventing orders from being misdirected.
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/z5Nx2ao
2025-08-12 15:04:05 +00:00
LogiFlow
36b9e092e0
Merge pull request #47 from R0m1k3/1.1
...
Fix product assignment for users in different stores to ensure correc…
2025-08-12 17:02:06 +02:00
michaelschal
00e3c98550
Fix product assignment for users in different stores to ensure correct placement
...
Implement backend logic to ensure correct product group assignment, resolving an issue where products were incorrectly placed in the wrong store due to missing group ID data from the frontend, and add detailed logging for better debugging.
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/PoPN0Ru
2025-08-12 15:00:29 +00:00
LogiFlow
f5028605c3
Merge pull request #46 from R0m1k3/1.1
...
Ensure all users can create customer orders by fixing group assignments
2025-08-12 16:58:56 +02:00
michaelschal
9f53d7b296
Ensure all users can create customer orders by fixing group assignments
...
Update customer order form to robustly handle group ID assignment, removing previous restrictions and adding fallbacks for all user 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/Kt5Wgjh
2025-08-12 14:57:35 +00:00
LogiFlow
92fc07a6f4
Merge pull request #45 from R0m1k3/1.1
...
Fix incorrect product assignment for store-assigned users
2025-08-12 16:52:54 +02:00
michaelschal
03d18b91e0
Fix incorrect product assignment for store-assigned users
...
Corrected the logic in `DlcPage.tsx` to properly assign the `groupId` for DLC products, ensuring users are associated with their correct store group.
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/W2tfZav
2025-08-12 14:52:21 +00:00
LogiFlow
ee54efa654
Merge pull request #44 from R0m1k3/1.1
...
Fix client order validation errors for production
2025-08-12 16:51:48 +02:00
michaelschal
4abe7f8cd1
Fix client order validation errors for production
...
Update Zod schemas and frontend form handling to correctly coerce string inputs to numbers for fields like supplierId and deposit, resolving server-side validation errors and improving data integrity.
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/W2tfZav
2025-08-12 14:49:30 +00:00
LogiFlow
c506136f41
Merge pull request #43 from R0m1k3/1.1
...
1.1
2025-08-12 16:45:17 +02:00
michaelschal
632eb8dd82
Enable employees to create customer orders and DLC products
...
Fixes production issues preventing employees from creating customer orders and DLC products by ensuring correct permissions, cache invalidation, and backend route configurations.
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/rEII9fE
2025-08-12 14:40:17 +00:00
michaelschal
4ca3c17bad
Improve DLC product data handling and cache management
...
Update DLC product fetching to include group filtering, implement precise cache invalidation for DLC-related queries using `exact: false`, and add detailed logging for API requests and responses to aid in debugging.
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/rEII9fE
2025-08-12 14:24:19 +00:00
LogiFlow
792745d007
Merge pull request #42 from R0m1k3/1.1
...
Fix customer order creation for employees by updating the schema
2025-08-12 16:20:22 +02:00
michaelschal
fcad53ae1d
Fix customer order creation for employees by updating the schema
...
Update the customer order schema and data mapping in the frontend to correctly handle employee role permissions when 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/qPpS8VH
2025-08-12 14:19:27 +00:00
LogiFlow
4b785417f6
Merge pull request #41 from R0m1k3/1.1
...
Improve order creation and retrieval for employees by adding logging
2025-08-12 16:15:45 +02:00
michaelschal
cf738cc49a
Improve order creation and retrieval for employees by adding logging
...
Add detailed logging to the order creation and retrieval processes to help diagnose potential issues with employee group assignments and access.
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/CBVNFjA
2025-08-12 14:14:56 +00:00
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