feat(ui): raw material lots and production inputs
- Pages for raw material lots (beeswax, propolis): list, create in grams
with optional apiary, detail with stock card (harvested / used in
production / withdrawn / remaining) and "used in" batches.
- Production batch form takes the raw material used (lot + grams) and the
batch page shows what it was made from - traceability both ways.
- Sidebar entry "Rohstoffe".
- Removes backend files that were committed into ApiCore-Frontend/src by
mistake in e52a605 (copies of ApiCore-Backend/src/raw-materials).
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
This commit is contained in:
1 parent
f9899d5621
commit
569a43d247
22 files changed
+803
-412
No files matched your search
@@ -0,0 +1,13 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { formatGrams } from "./labels";
|
||||
|
||||
describe("formatGrams", () => {
|
||||
it("shows kilograms from 1000 g on", () => {
|
||||
expect(formatGrams(4200)).toBe("4,2 kg");
|
||||
expect(formatGrams(1000)).toBe("1 kg");
|
||||
});
|
||||
|
||||
it("keeps grams below a kilogram", () => {
|
||||
expect(formatGrams(180)).toBe("180 g");
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user