- Implement upsert logic in import_phone() function - Check for existing (id, phone) combinations before insert - Track duplicates within CSV to skip gracefully - Update existing records instead of failing on duplicates - Add detailed statistics: inserted, updated, skipped counts - Align with upsert pattern used in other import functions - Add documentation in docs/PHONE_IMPORT_FIX.md Fixes: UNIQUE constraint failed: phone.id, phone.phone error when re-importing or uploading CSV with duplicate entries
306 B
306 B
| 1 | F_Code | F_Footer |
|---|---|---|
| 2 | 1 | TERMS: BALANCE DUE UPON RECEIPT - THANK YOU |
| 3 | 2 | THIS ACCOUNT IS PAST DUE. PLEASE PAY THE BALANCE DUE IMMEDIATELY! |
| 4 | 3 | PAYMENT IN FULL REQUIRED PRIOR TO RELEASING WORK PRODUCT |
| 5 | 4 | PAYMENT IN FULL REQUIRED PRIOR TO RELEASING WORK PRODUCT |
| 6 | 5 | EACH PARTY RESPONSIBLE FOR ONE HALF OF TOTAL FEE |