Add ERP explorer
This commit is contained in:
@@ -100,6 +100,23 @@ articles = load_rollcalc_articles(Path("data/source/rollcalc/article-data.json")
|
||||
|
||||
Er validiert die bestehende RollCalc-JSON-Struktur strikt, erhält Artikelnummern als Strings und verändert die Quelldatei nicht. Details stehen in `docs/importers.md`.
|
||||
|
||||
## Interne Analysewerkzeuge
|
||||
|
||||
Der ERP Explorer profiliert einen ERP-CSV-Export, ohne daraus Import- oder Merge-Regeln abzuleiten:
|
||||
|
||||
```python
|
||||
from pathlib import Path
|
||||
|
||||
from article_data_manager.tools.erp_explorer import write_erp_profile_report
|
||||
|
||||
write_erp_profile_report(
|
||||
Path("data/source/erp/production-key-data.csv"),
|
||||
rollcalc_path=Path("data/source/rollcalc/article-data.json"),
|
||||
)
|
||||
```
|
||||
|
||||
Der Textreport wird standardmäßig unter `data/reports/erp_profile_report.txt` erzeugt. Die Quelldaten werden nicht verändert.
|
||||
|
||||
## Tests
|
||||
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user