Refactor cost calculation logic to prioritize spool usage history and update schema validation for cost_per_kg

This commit is contained in:
Matteo Parenti
2026-02-19 16:55:25 +01:00
parent 5cda70a62c
commit 8043bb18ba
4 changed files with 41 additions and 48 deletions
+1 -1
View File
@@ -140,7 +140,7 @@ const columnHeaders: Record<string, (t: TFn) => string> = {
data_origin: () => 'Data Origin',
tag_type: () => 'Linked Tag Type',
remaining: (t) => t('inventory.remaining'),
cost_per_kg: () => 'Cost/kg',
cost_per_kg: (t) => t('inventory.costPerKg'),
};
// Column cell renderers (25 columns — matching SpoolBuddy exactly)