Files
tfm_ainventory/backend
Daniel Bedeleanu ade8dcde78 fix: prevent duplicate item creation with barcode conflict detection
Backend:
- Added UNIQUE constraint check on barcode before item creation
- Returns 409 Conflict with user-friendly message if duplicate exists
- Prevents sqlite3.IntegrityError crashes

Frontend:
- Improved error handling for cloud sync failures
- Detects 409 status code (duplicate barcode)
- Shows specific error message to user
- Gracefully falls back to local-only save

Example error message: 'Item already exists. Item with barcode P66093-002 already exists (ID: 42). Update it instead or use a different barcode.'
2026-04-17 12:29:53 +03:00
..
2026-04-14 22:54:19 +03:00
2026-04-14 20:44:01 +03:00
2026-04-15 15:20:45 +03:00
2026-04-15 17:54:21 +03:00
2026-04-15 15:20:45 +03:00
2026-04-14 20:44:01 +03:00
2026-04-15 17:31:58 +03:00
2026-04-15 17:54:21 +03:00
2026-04-15 17:54:21 +03:00
2026-04-14 20:44:01 +03:00
2026-04-14 20:44:01 +03:00