GO-Gastro-Stand: herstellerneutral, lokale Anmeldung, synthetische Daten
- Alle Bezuege auf den bisherigen Kunden entfernt (Logo, Farben, Gesellschaft, Texte, Tests); Marke Alpenwerk HR neutral - Lokale Anmeldung ohne Passwort fuer den Betrieb auf dem eigenen Rechner (LOKALE_ANMELDUNG, nie auf einem Server setzen) - Kollektivvertrag Gastgewerbe - scripts/seed-go-gastro.mjs: synthetische Testdaten in Struktur und Groesse von GO Gastro, keine Echtdaten - CSP ohne eval-Fehler; Datenkatalog und Workshop-Rueckfragen unter docs/ Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -39,7 +39,7 @@ function person(teil: Partial<LolyoQuelle> = {}): LolyoQuelle {
|
||||
};
|
||||
}
|
||||
|
||||
const KETTE = ["Linie 1", "Waffel", "Produktion", "Manner AG"];
|
||||
const KETTE = ["Linie 1", "Montage", "Produktion", "Muster AG"];
|
||||
|
||||
const zeile = (teil: Partial<LolyoQuelle> = {}) => baueLolyoZeile(person(teil), STARTWERT, KETTE);
|
||||
|
||||
@@ -118,13 +118,13 @@ describe("Die Zuordnung", () => {
|
||||
|
||||
describe("Gruppen", () => {
|
||||
it("sind die Org-Struktur von unten nach oben, durch Komma getrennt", () => {
|
||||
expect(zeile().Gruppen).toBe("Linie 1,Waffel,Produktion,Manner AG");
|
||||
expect(zeile().Gruppen).toBe("Linie 1,Montage,Produktion,Muster AG");
|
||||
});
|
||||
|
||||
it("kommen aus der Aufbauorganisation, über orgKette", () => {
|
||||
const einheit = (id: string, name: string, parent_id: string | null) => ({ id, name, parent_id }) as unknown as OrgUnit;
|
||||
const maps = buildOrgMaps([einheit("a", "Manner AG", null), einheit("p", "Produktion", "a"), einheit("w", "Waffel", "p")], []);
|
||||
expect(baueLolyoZeile(person(), STARTWERT, orgKette(maps, "w")).Gruppen).toBe("Waffel,Produktion,Manner AG");
|
||||
const maps = buildOrgMaps([einheit("a", "Muster AG", null), einheit("p", "Produktion", "a"), einheit("w", "Montage", "p")], []);
|
||||
expect(baueLolyoZeile(person(), STARTWERT, orgKette(maps, "w")).Gruppen).toBe("Montage,Produktion,Muster AG");
|
||||
});
|
||||
|
||||
it("haben ohne Einheit einen Ersatz — Gruppen ist ein Pflichtfeld", () => {
|
||||
@@ -133,11 +133,11 @@ describe("Gruppen", () => {
|
||||
});
|
||||
|
||||
it("machen aus einem Komma im Namen keine zweite Gruppe", () => {
|
||||
expect(lolyoGruppen(["Einkauf, Logistik", "Manner AG"])).toBe("Einkauf - Logistik,Manner AG");
|
||||
expect(lolyoGruppen(["Einkauf, Logistik", "Muster AG"])).toBe("Einkauf - Logistik,Muster AG");
|
||||
});
|
||||
|
||||
it("nennen einen Namen nur einmal", () => {
|
||||
expect(lolyoGruppen(["Vertrieb", "Vertrieb", "Manner AG"])).toBe("Vertrieb,Manner AG");
|
||||
expect(lolyoGruppen(["Vertrieb", "Vertrieb", "Muster AG"])).toBe("Vertrieb,Muster AG");
|
||||
});
|
||||
|
||||
it("weichen typografischen Zeichen wie jede Zelle", () => {
|
||||
@@ -146,7 +146,7 @@ describe("Gruppen", () => {
|
||||
|
||||
it("stehen in der Datei als eine Zelle", () => {
|
||||
const csv = toCsv([zeile()], lolyoSpalten(), LOLYO_CSV);
|
||||
expect(csv).toContain(";Linie 1,Waffel,Produktion,Manner AG;");
|
||||
expect(csv).toContain(";Linie 1,Montage,Produktion,Muster AG;");
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user