This commit is contained in:
seb
2026-10-04 22:47:26 +02:00
parent 8b401fa50b
commit a90069d340
44 changed files with 994 additions and 268 deletions

View File

@@ -1,3 +1,17 @@
/**
* @file deliveryEditorAutomat.js
* @description State engine for inbound goods receipt creation and invoice
* reconciliation (lineitems, attachments, PDF/receipt OCR, and supplier article matching).
*
* Upstream Triggers:
* - UI / Delivery Editor: User actions in `/lieferung/neu` or `/lieferung/:id`
* (`addLine`, `updateLine`, `removeLine`, `fetchSupplierArticles`,
* `addAttachment`, `resetDelivery`, etc.).
*
* Downstream Triggers:
* - Navigation badges in `src/nav.js` subscribe to draft line counts.
*/
import { Automat } from 'react-automat';
import { article as articleApi, supplier as supplierApi } from '../api';