Stückkosten
This commit is contained in:
1 parent
c816ea3ac9
commit
d7c55d444b
5 files changed
+321
-6
No files matched your search
@@ -66,9 +66,14 @@ No bundler — keep everything in global scope as the file already does.
|
||||
`query` selects the dataset. The datasets are large, so **exactly one dataset is
|
||||
requested per call**, for the dashboard currently shown (no prefetching).
|
||||
- Query keys: `"Summe je Abgangsland"` (Umsatz je Abgangsland), `"VAT Summary"`,
|
||||
`"ODOO Rechnungen pro Monat"`, `"Alle Rechnungen pro Monat"` and `"Quartal Schweiz"`.
|
||||
Each view's `query` lives in the `VIEWS` map, which maps the active dashboard to its
|
||||
`normalize` function; `quarter: true` marks the dashboards that use a quarter period.
|
||||
`"ODOO Rechnungen pro Monat"`, `"Alle Rechnungen pro Monat"`, `"Quartal Schweiz"`,
|
||||
`"FIFO Lager Bewertung"` and `"Produkt Materialkosten"`. Each view's `query` lives in
|
||||
the `VIEWS` map, which maps the active dashboard to its `normalize` function;
|
||||
`quarter: true` marks the dashboards that use a quarter period. The FIFO and
|
||||
Produkt-Materialkosten responses are `[{ id, query, row_count, data: [...] }]`
|
||||
(unwrapped in `normalizeFifo` / `normalizeMaterialkosten`). In *Produkt Materialkosten*,
|
||||
`remaining_qty` is the remaining quantity of that cost bracket (the last cost bracket, not FIFO),
|
||||
not the product total.
|
||||
- `extractArray` accepts the dataset either as a bare array or wrapped under the
|
||||
query key (case-insensitive). If the shape changes upstream, adjust the normalizers.
|
||||
- The webhook returns **German-formatted strings**, e.g. `"90.717,93 €"` and
|
||||
|
||||
Reference in new issue
Block a user