mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-11 17:27:31 +02:00
Ensure order taker information is provided for customer orders
Update the customer order form to include the order taker's name and other previously missing fields, and add backend logging for debugging failed submissions related to the 'order_taker' column. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 31f9bd88-0285-4787-81b3-31ceeea5a08b Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/31f9bd88-0285-4787-81b3-31ceeea5a08b/5hCjnif
This commit is contained in:
1 parent
cd436070cd
commit
483dfc4936
4 files changed
+220
-8
No files matched your search
@@ -1384,6 +1384,11 @@ export async function registerRoutes(app: Express): Promise<Server> {
|
||||
createdBy: user.id,
|
||||
};
|
||||
|
||||
// DEBUG: Log what we received and what we're about to save
|
||||
console.log('🔍 CUSTOMER ORDER - Received data from frontend:', req.body);
|
||||
console.log('🔍 CUSTOMER ORDER - Final data for DB:', data);
|
||||
console.log('🔍 CUSTOMER ORDER - orderTaker value:', data.orderTaker, 'type:', typeof data.orderTaker);
|
||||
|
||||
// Check if user has access to the group - PRODUCTION DEBUG
|
||||
console.log('🔍 CUSTOMER ORDER PERMISSION DEBUG:', {
|
||||
userRole: user.role,
|
||||
|
||||
Reference in new issue
Block a user