Kontaktadresse: Neues Feld Position, Filter-Funktionen null-sicher, Projektnamen-Spalte entfernt
- Server: Neue Spalte position in Kontaktadresse-Modell (String(200), nullable) - Server: Migration V01_04 (ALTER TABLE kontaktadressen ADD COLUMN position) - Server: position in Geschäftslogik create/update aufgenommen - Server: CLI-Musterdaten um Position ergänzt (Geschäftsführer, IT-Leiter etc.) - Client: position in iKontaktadresse-Interface, View nach Firma, Columnmapper, Filter - Client: Projektnamen-Spalte aus Kontaktadressenliste entfernt (steht in Überschrift) - Client: Filter-Funktionen in allen Listen null-sicher (kunde, kontakt, projekt, kontaktadresse, call_log) Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
1 parent
b510c50497
commit
e9a2f48ede
10 files changed
+59
-36
No files matched your search
@@ -164,11 +164,11 @@ def _seed_muster_kontaktadressen():
|
||||
|
||||
projekte = session.query(Projekt).order_by(Projekt.id).all()
|
||||
vorlagen = [
|
||||
("Herr", "Thomas Becker", "Becker Webdesign GmbH"),
|
||||
("Frau", "Sandra Klein", "Klein Marketing"),
|
||||
("Herr", "Michael Wagner", "Wagner Online Shop"),
|
||||
("Frau", "Julia Hoffmann", "Hoffmann Consulting"),
|
||||
("Herr", "Stefan Roth", "Roth IT Solutions"),
|
||||
("Herr", "Thomas Becker", "Becker Webdesign GmbH", "Geschäftsführer"),
|
||||
("Frau", "Sandra Klein", "Klein Marketing", "Marketingleiterin"),
|
||||
("Herr", "Michael Wagner", "Wagner Online Shop", "IT-Leiter"),
|
||||
("Frau", "Julia Hoffmann", "Hoffmann Consulting", "Beraterin"),
|
||||
("Herr", "Stefan Roth", "Roth IT Solutions", "Technischer Leiter"),
|
||||
]
|
||||
orte = [
|
||||
("Industriestr. 12", "45131", "Essen", "Deutschland"),
|
||||
@@ -181,7 +181,7 @@ def _seed_muster_kontaktadressen():
|
||||
for projekt in projekte:
|
||||
anzahl = rng.randint(1, 3)
|
||||
for _ in range(anzahl):
|
||||
anrede, name, firma = vorlagen[vorlagen_idx % len(vorlagen)]
|
||||
anrede, name, firma, position = vorlagen[vorlagen_idx % len(vorlagen)]
|
||||
vorlagen_idx += 1
|
||||
strasse, plz, ort, land = rng.choice(orte)
|
||||
ka = Kontaktadresse()
|
||||
@@ -189,6 +189,7 @@ def _seed_muster_kontaktadressen():
|
||||
ka.anrede = anrede
|
||||
ka.name = name
|
||||
ka.firma = firma
|
||||
ka.position = position
|
||||
ka.telefon = "+49 {vorwahl} {nummer}".format(
|
||||
vorwahl=rng.randint(100, 999),
|
||||
nummer=rng.randint(100000, 999999)
|
||||
|
||||
Reference in new issue
Block a user