feat(sync): Anschrift je Kontaktquelle mitführen
Beleg-, Liefer-, Rechnungsadresse, Ansprechpartner und Kundenstamm tragen jetzt neben Namensblock und Kanälen auch ihre Anschrift (Straße, Nr., PLZ, Ort, Land aus dem Länderstamm, Adresszusatz), sofern im ERP gepflegt. Migration 0035 ergänzt die Spalten an delivery_contact_sources; ContactSource.address in der API. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
14
migrations/0035_contact_source_address.sql
Normal file
14
migrations/0035_contact_source_address.sql
Normal file
@ -0,0 +1,14 @@
|
||||
-- Anschrift je Kontaktquelle (Beleg-, Liefer-, Rechnungsadresse,
|
||||
-- Ansprechpartner, Kundenstamm). Bisher trug eine Quelle nur Namensblock
|
||||
-- und Kanäle; die App zeigt unter „Alle Kontaktinfos" jetzt auch die
|
||||
-- Anschrift, sofern im ERP gepflegt. Alles NULL = keine Anschrift.
|
||||
-- Felder wie bei `customers` / `deliveries.snap_*`: `country` aus dem
|
||||
-- ERP-Länderstamm, `address_addition` = ERP-Freitext `Adressen.Land`.
|
||||
|
||||
ALTER TABLE delivery_contact_sources
|
||||
ADD COLUMN street TEXT,
|
||||
ADD COLUMN house_number TEXT,
|
||||
ADD COLUMN postal_code TEXT,
|
||||
ADD COLUMN city TEXT,
|
||||
ADD COLUMN country TEXT,
|
||||
ADD COLUMN address_addition TEXT;
|
||||
Reference in New Issue
Block a user