From aac71becfc2345720d6bb1ee58725c68a582f2db Mon Sep 17 00:00:00 2001 From: harry Date: Sat, 23 May 2026 16:16:19 +0500 Subject: [PATCH 1/5] remove the invetory sale value from report Since product prices can be negotiated with every client, the inventory value at sale cannot be determined. Removing the number from the report but keeping the placeholder. --- src/lib/i18n/en.json | 1 - src/lib/i18n/tg.json | 1 - src/routes/admin/reports/+page.svelte | 8 +------- 3 files changed, 1 insertion(+), 9 deletions(-) diff --git a/src/lib/i18n/en.json b/src/lib/i18n/en.json index e20f7aa..ef33f3c 100644 --- a/src/lib/i18n/en.json +++ b/src/lib/i18n/en.json @@ -146,7 +146,6 @@ "active_skus": "Active parts", "units_on_hand": "Units on hand", "cost_value": "Value (at cost)", - "sale_value": "Value (at sale)", "low_stock": "Low stock", "out_of_stock": "Out of stock", "top_parts": "Top selling parts", diff --git a/src/lib/i18n/tg.json b/src/lib/i18n/tg.json index e1aa969..6494ba0 100644 --- a/src/lib/i18n/tg.json +++ b/src/lib/i18n/tg.json @@ -146,7 +146,6 @@ "active_skus": "Қисмҳои фаъол", "units_on_hand": "Дар анбор", "cost_value": "Арзиш (бо нархи харид)", - "sale_value": "Арзиш (бо нархи фурӯш)", "low_stock": "Захираи кам", "out_of_stock": "Тамом шуд", "top_parts": "Қисмҳои серфурӯш", diff --git a/src/routes/admin/reports/+page.svelte b/src/routes/admin/reports/+page.svelte index 9e3483a..497a407 100644 --- a/src/routes/admin/reports/+page.svelte +++ b/src/routes/admin/reports/+page.svelte @@ -56,13 +56,7 @@ {$t('common.currency_short')} -
-
{$t('reports.sale_value')}
-
- {formatMoney(inventory.sale_value_dirams, lang)} - {$t('common.currency_short')} -
-
+
{$t('reports.low_stock')}
0}>{inventory.lowStockCount}
From 66e15dee1f804003d764ebf7288acb311f0bcf30 Mon Sep 17 00:00:00 2001 From: harry Date: Sat, 23 May 2026 16:43:39 +0500 Subject: [PATCH 2/5] change default unit to liter Since the inventory is mostly containing enginge oils, which are sold per liter, the default unit for a new part is set to liter --- src/routes/parts/new/+page.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/parts/new/+page.svelte b/src/routes/parts/new/+page.svelte index 5165b8c..1e2a4f9 100644 --- a/src/routes/parts/new/+page.svelte +++ b/src/routes/parts/new/+page.svelte @@ -54,7 +54,7 @@