{
  "format": "partuvo-import",
  "version": 1,
  "batch": {
    "id": "7f3d2c1e-5b8a-4e6f-9a1b-2c3d4e5f6a7b",
    "createdAt": "2026-10-28T06:00:00Z",
    "mode": "historical",
    "sourceSystem": "altsystem-demo",
    "sourceAccount": "filiale-kiel",
    "timezone": "Europe/Berlin",
    "currency": "EUR",
    "priceBasis": "net",
    "description": "Synthetischer Beispielbetrieb: alle vier Lagerstrategien, Mischformen, Handelsware, Außenlager, historische Verkäufe und ein eBay-Kanalverkauf. Keine echten Personen, Fahrzeuge oder Konten."
  },
  "entities": {
    "partners": [
      { "externalId": "P-SUP-001", "name": "Autoverwertung Küstenland GmbH", "roles": ["supplier"], "email": "einkauf@kuestenland.example", "phone": "+49 431 000000", "address": "Werftstraße 12\n24143 Kiel", "vatId": "DE000000001" },
      { "externalId": "P-SUP-002", "name": "Fuhrpark Nordlicht AG", "roles": ["supplier", "customer"], "address": "Fuhrparkweg 3\n24106 Kiel", "notes": "Liefert Flottenfahrzeuge und kauft Ersatzteile zurück." },
      { "externalId": "P-CUS-001", "name": "Werkstatt Meier & Sohn", "roles": ["customer"], "email": "werkstatt@meier-sohn.example", "address": "Reparaturgasse 7\n24118 Kiel" },
      { "externalId": "P-CUS-002", "name": "Teilehandel Rhein-Main e.K.", "roles": ["customer"], "vatId": "DE000000002", "address": "Lagerstraße 99\n60386 Frankfurt am Main" },
      { "externalId": "P-CUS-003", "name": "eBay-Käufer k***r (Pseudonym)", "roles": ["customer"], "notes": "Marktplatzkäufer; Adressdaten liegen nur im Kanal." },
      { "externalId": "P-CUS-004", "name": "Altkunde Nordstrand", "roles": ["customer"], "active": false, "notes": "Seit 2024 inaktiv; nur historisch." }
    ],
    "vehicles": [
      { "externalId": "V-2024-0007", "reference": "FZ-2407", "vin": "WVWZZZAUZGW123456", "make": "Volkswagen", "model": "Golf VII 1.6 TDI", "modelCode": "AU", "status": "dismantling", "supplierRef": "P-SUP-001", "registration": "KI-XX 2407", "year": 2016, "firstRegistration": "2016-05-12", "modelYear": 2016, "hsn": "0603", "tsn": "BGR", "fuel": "Diesel", "powerKw": "81", "displacementCc": 1598, "mileage": 187450, "purchasePriceCents": 85000, "notes": "Unfallfahrzeug, Front links." },
      { "externalId": "V-2024-0012", "reference": "FZ-2412", "vin": "WBA3D11000F123457", "make": "BMW", "model": "320d", "modelCode": "F30", "status": "received", "supplierRef": "P-SUP-002", "year": 2014, "firstRegistration": "2014-09-03", "fuel": "Diesel", "powerKw": "135", "displacementCc": 1995, "mileage": 243100, "purchasePriceCents": 120000 },
      { "externalId": "V-2023-0099", "reference": "FZ-2399", "historicalChassisNumber": "ASTRA-19-00042", "make": "Opel", "model": "Astra G Caravan", "status": "closed", "year": 1999, "fuel": "Benzin", "mileage": 301000, "purchasePriceCents": 15000, "notes": "Abgeschlossen; Restteile im Türenbereich." }
    ],
    "locations": [
      { "externalId": "L-SITE", "label": "Betriebsgelände Kiel", "kind": "site" },
      { "externalId": "L-EXT", "label": "Außenlager Hafenstraße", "kind": "site", "external": true },
      { "externalId": "L-HALLE-A", "label": "Halle A", "kind": "warehouse", "parentRef": "L-SITE" },
      { "externalId": "L-HALLE-B", "label": "Halle B", "kind": "warehouse", "parentRef": "L-SITE" },
      { "externalId": "L-A-SENS", "label": "Sensoren", "kind": "zone", "level": "area", "parentRef": "L-HALLE-A" },
      { "externalId": "L-A-MOT", "label": "Motoren", "kind": "zone", "level": "area", "parentRef": "L-HALLE-A" },
      { "externalId": "L-A-TUER", "label": "Türen", "kind": "zone", "level": "area", "parentRef": "L-HALLE-A" },
      { "externalId": "L-A-R03", "label": "Regal 03", "kind": "zone", "level": "shelf", "parentRef": "L-A-SENS" },
      { "externalId": "L-A-R03-F1", "label": "Fach 1", "kind": "bin", "parentRef": "L-A-R03" },
      { "externalId": "L-A-R03-F2", "label": "Fach 2", "kind": "bin", "parentRef": "L-A-R03" },
      { "externalId": "L-B-FREI-01", "label": "Freiplatz 01", "kind": "bin", "parentRef": "L-HALLE-B" },
      { "externalId": "L-B-FREI-02", "label": "Freiplatz 02", "kind": "bin", "parentRef": "L-HALLE-B" },
      { "externalId": "L-B-FREI-03", "label": "Freiplatz 03 (gesperrt)", "kind": "bin", "parentRef": "L-HALLE-B", "active": false },
      { "externalId": "L-FZ-2407-AREA", "label": "Fahrzeugteile FZ-2407", "kind": "vehicle_area", "parentRef": "L-HALLE-B", "vehicleRef": "V-2024-0007" },
      { "externalId": "L-FZ-2407-K1", "label": "Kiste K1 · FZ-2407", "kind": "container", "containerMode": "vehicle", "vehicleRef": "V-2024-0007", "parentRef": "L-FZ-2407-AREA" },
      { "externalId": "L-FZ-2407-K2", "label": "Kiste K2 · FZ-2407", "kind": "container", "containerMode": "vehicle", "vehicleRef": "V-2024-0007", "parentRef": "L-HALLE-B" },
      { "externalId": "L-MIX-K9", "label": "Mischkiste K9", "kind": "container", "containerMode": "mixed", "parentRef": "L-HALLE-B" },
      { "externalId": "L-FZ-2412-STELLPLATZ", "label": "Stellplatz FZ-2412", "kind": "vehicle", "level": "parking", "vehicleRef": "V-2024-0012", "parentRef": "L-EXT" },
      { "externalId": "L-EXT-REGAL", "label": "Außenregal 1", "kind": "zone", "level": "shelf", "parentRef": "L-EXT" }
    ],
    "storage_rules": [
      { "externalId": "R-SENS", "label": "Sensoren in den Sensorbereich", "strategy": "part_category", "category": "Sensoren", "allowedLocationRefs": ["L-A-SENS"], "reason": "Teilegruppenbezogene Lagerung für Kleinteile." },
      { "externalId": "R-MOT", "label": "Motoren in den Motorenbereich", "strategy": "part_category", "category": "Motoren", "allowedLocationRefs": ["L-A-MOT"], "reason": "Teilegruppenbezogene Lagerung für Großteile." },
      { "externalId": "R-FZ-2407", "label": "Fahrzeugbereich FZ-2407", "strategy": "vehicle_area", "scopeLocationRef": "L-FZ-2407-AREA", "reason": "Fahrzeugbezogene Lagerung ausgebauter Teile." },
      { "externalId": "R-DYN-B", "label": "Freie Plätze Halle B", "strategy": "dynamic_slot", "scopeLocationRef": "L-HALLE-B", "reason": "Chaotische Lagerung mit dokumentiertem Platz." },
      { "externalId": "R-HYBRID", "label": "Kisten für Kleinteile, Großteile getrennt", "strategy": "hybrid_vehicle_container", "scopeLocationRef": "L-SITE", "reason": "Mischform: Kleinteile je Fahrzeug in Kisten, Großteile in Bereichen." }
    ],
    "parts": [
      { "externalId": "T-0001", "sku": "VW-5Q0919275", "name": "PDC-Sensor hinten", "vehicleRef": "V-2024-0007", "condition": "used", "category": "Sensoren", "brand": "Volkswagen", "oemNumbers": ["5Q0919275", "5Q0 919 275"], "salePriceCents": 2490, "costPriceCents": 500 },
      { "externalId": "T-0002", "sku": "VW-04L906056", "name": "Motorsteuergerät", "vehicleRef": "V-2024-0007", "condition": "used", "category": "Elektronik", "oemNumbers": ["04L906056HK"], "salePriceCents": 18900, "costPriceCents": 4000 },
      { "externalId": "T-0003", "sku": "VW-5G4831055", "name": "Tür vorn links", "vehicleRef": "V-2024-0007", "condition": "used", "category": "Türen", "oemNumbers": ["5G4831055"], "salePriceCents": 18000, "costPriceCents": 3000, "notes": "Leichter Kratzer unten." },
      { "externalId": "T-0004", "sku": "VW-CRKB", "name": "Motor CRKB 1.6 TDI", "vehicleRef": "V-2024-0007", "condition": "used", "category": "Motoren", "oemNumbers": ["04L100090"], "salePriceCents": 95000, "costPriceCents": 20000 },
      { "externalId": "T-0005", "sku": "VW-5Q0407271", "name": "Gelenkwelle vorn links", "vehicleRef": "V-2024-0007", "condition": "used", "category": "Großteile", "oemNumbers": ["5Q0407271"], "salePriceCents": 9900, "costPriceCents": 1500 },
      { "externalId": "T-0006", "sku": "BMW-8507624", "name": "Lichtmaschine 180 A", "vehicleRef": "V-2024-0012", "condition": "used", "category": "Elektrik", "oemNumbers": ["12318507624"], "salePriceCents": 14900, "costPriceCents": 2500, "notes": "Noch eingebaut; Ausbau nach Verkauf." },
      { "externalId": "T-0007", "sku": "BMW-63117338712", "name": "Scheinwerfer rechts Xenon", "vehicleRef": "V-2024-0012", "condition": "used", "category": "Beleuchtung", "oemNumbers": ["63117338712"], "salePriceCents": 24900, "costPriceCents": 6000 },
      { "externalId": "T-0008", "sku": "TRW-GDB1550", "name": "Bremsbelagsatz vorn", "condition": "new", "category": "Bremse", "brand": "TRW", "oemNumbers": ["GDB1550"], "salePriceCents": 3490, "costPriceCents": 1900, "minimumStock": 4, "notes": "Handelsware ohne Herkunftsfahrzeug." },
      { "externalId": "T-0009", "sku": "OPEL-13330713", "name": "Heckklappe", "vehicleRef": "V-2023-0099", "condition": "used", "category": "Karosserie", "oemNumbers": ["13330713"], "salePriceCents": 12000, "costPriceCents": 1000 },
      { "externalId": "T-0010", "sku": "OPEL-1300283", "name": "Kühler", "vehicleRef": "V-2023-0099", "condition": "used", "category": "Kühlung", "locationText": "Halle A (historisch, vollständig verkauft)", "oemNumbers": ["1300283"], "salePriceCents": 12000, "costPriceCents": 800 },
      { "externalId": "T-0011", "sku": "VW-KT-2407-01", "name": "Kleinteile-Set Innenraum", "vehicleRef": "V-2024-0007", "condition": "used", "category": "Innenraum", "salePriceCents": 900, "costPriceCents": 100 },
      { "externalId": "T-0012", "sku": "UNI-ZL-001", "name": "Zierleiste universal", "condition": "new", "category": "Zubehör", "brand": "Universal", "salePriceCents": 1500, "costPriceCents": 400 }
    ],
    "stocks": [
      { "externalId": "S-001", "partRef": "T-0001", "quantity": 2, "locationRef": "L-A-R03-F1", "physicalState": "removed", "countedAt": "2026-10-27T15:00:00Z" },
      { "externalId": "S-002", "partRef": "T-0001", "quantity": 1, "locationRef": "L-FZ-2407-K1", "physicalState": "removed", "countedAt": "2026-10-27T15:00:00Z", "overrideReason": "Kleinteil des Fahrzeugs bewusst in der Fahrzeugkiste statt im Sensorbereich." },
      { "externalId": "S-003", "partRef": "T-0001", "quantity": 1, "physicalState": "removed", "countedAt": "2026-10-27T15:00:00Z", "note": "Noch ohne Platz, Zählung offen." },
      { "externalId": "S-004", "partRef": "T-0002", "quantity": 1, "locationRef": "L-FZ-2407-K1", "countedAt": "2026-10-27T15:05:00Z" },
      { "externalId": "S-005", "partRef": "T-0003", "quantity": 1, "locationRef": "L-A-TUER", "countedAt": "2026-10-27T15:05:00Z" },
      { "externalId": "S-006", "partRef": "T-0004", "quantity": 1, "locationRef": "L-A-MOT", "countedAt": "2026-10-27T15:10:00Z", "note": "Bestätigt verkauft (SO-2026-0102), noch nicht versandt." },
      { "externalId": "S-007", "partRef": "T-0005", "quantity": 1, "locationRef": "L-B-FREI-01", "countedAt": "2026-10-27T15:10:00Z" },
      { "externalId": "S-008", "partRef": "T-0006", "quantity": 1, "locationRef": "L-FZ-2412-STELLPLATZ", "physicalState": "installed", "countedAt": "2026-10-27T15:20:00Z" },
      { "externalId": "S-009", "partRef": "T-0007", "quantity": 1, "locationRef": "L-EXT-REGAL", "countedAt": "2026-10-27T15:20:00Z" },
      { "externalId": "S-010", "partRef": "T-0007", "quantity": 1, "locationRef": "L-EXT-REGAL", "physicalState": "quarantine", "countedAt": "2026-10-27T15:20:00Z", "note": "Steinschlag, Qualitätsprüfung offen." },
      { "externalId": "S-011", "partRef": "T-0008", "quantity": 12, "locationRef": "L-B-FREI-02", "countedAt": "2026-10-27T15:30:00Z" },
      { "externalId": "S-012", "partRef": "T-0009", "quantity": 1, "locationRef": "L-A-TUER", "countedAt": "2026-10-27T15:30:00Z" },
      { "externalId": "S-013", "partRef": "T-0011", "quantity": 6, "locationRef": "L-FZ-2407-K1", "countedAt": "2026-10-27T15:35:00Z" },
      { "externalId": "S-014", "partRef": "T-0011", "quantity": 2, "locationRef": "L-FZ-2407-K2", "countedAt": "2026-10-27T15:35:00Z" },
      { "externalId": "S-015", "partRef": "T-0012", "quantity": 4, "locationRef": "L-MIX-K9", "countedAt": "2026-10-27T15:40:00Z" }
    ],
    "sales": [
      { "externalId": "SO-2026-0101", "customerRef": "P-CUS-001", "status": "shipped", "createdAt": "2026-03-02T09:15:00Z", "confirmedAt": "2026-03-02T09:40:00Z", "shippedAt": "2026-03-03T14:05:00Z", "carrier": "DHL", "trackingNumber": "00340434161234567890", "totalCents": 14490, "notes": "Historischer Verkauf; Bestand bereits im Altsystem abgebucht." },
      { "externalId": "SO-2026-0102", "customerRef": "P-CUS-002", "status": "confirmed", "createdAt": "2026-04-10T07:00:00+02:00", "confirmedAt": "2026-04-10T07:30:00+02:00", "totalCents": 95000, "shippingAddress": "Lagerstraße 99\n60386 Frankfurt am Main" },
      { "externalId": "SO-2026-0103", "customerName": "Barverkauf Werkstatt Nord", "status": "cancelled", "createdAt": "2026-05-05T10:00:00Z", "cancelledAt": "2026-05-05T10:20:00Z", "cancelReason": "Kunde hat abgesagt", "totalCents": 18000 },
      { "externalId": "SO-2026-0104", "customerRef": "P-CUS-003", "status": "shipped", "createdAt": "2026-09-14T18:22:10Z", "confirmedAt": "2026-09-14T18:22:10Z", "shippedAt": "2026-09-15T11:00:00Z", "carrier": "Hermes", "trackingNumber": "H1000000000000000001", "totalCents": 8480, "channelProvider": "gobecom", "channelAccount": "nordwerk-teile", "channelOrderId": "12-34567-89012", "shippingAddress": "Musterweg 1\n20095 Hamburg" },
      { "externalId": "SO-2026-0105", "customerRef": "P-SUP-002", "status": "draft", "createdAt": "2026-10-20T08:00:00Z", "totalCents": 24900, "notes": "Offener Entwurf zum Zeitpunkt der Übernahme." }
    ],
    "sale_lines": [
      { "externalId": "1", "saleRef": "SO-2026-0101", "partRef": "T-0010", "quantity": 1, "unitPriceCents": 12000, "totalCents": 12000 },
      { "externalId": "2", "saleRef": "SO-2026-0101", "partRef": "T-0001", "quantity": 1, "unitPriceCents": 2490, "totalCents": 2490 },
      { "externalId": "1", "saleRef": "SO-2026-0102", "partRef": "T-0004", "quantity": 1, "unitPriceCents": 95000 },
      { "externalId": "1", "saleRef": "SO-2026-0103", "partRef": "T-0003", "quantity": 1, "unitPriceCents": 18000 },
      { "externalId": "1", "saleRef": "SO-2026-0104", "partRef": "T-0008", "quantity": 2, "unitPriceCents": 3490, "totalCents": 6980, "channelLineItemId": "10012345678901" },
      { "externalId": "2", "saleRef": "SO-2026-0104", "partRef": "T-0012", "quantity": 1, "unitPriceCents": 1500, "totalCents": 1500, "channelLineItemId": "10012345678902" },
      { "externalId": "1", "saleRef": "SO-2026-0105", "partRef": "T-0007", "quantity": 1, "unitPriceCents": 24900 }
    ]
  }
}
