Compare commits

..

4 Commits

Author SHA1 Message Date
a287d26b93 fix gitignore and install bat 2026-06-17 18:06:29 +05:00
d4cba18017 Merge branch 'master' of https://gitea.rareobj.com/dab/avtoambor 2026-06-17 18:05:04 +05:00
66e15dee1f 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
2026-05-23 16:43:39 +05:00
aac71becfc 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.
2026-05-23 16:16:49 +05:00
6 changed files with 4 additions and 21 deletions

3
.gitignore vendored
View File

@ -12,4 +12,5 @@ backups/
*.sw? *.sw?
.session.vim .session.vim
.claude/settings.local.json .claude/settings.local.json
~* *~
/*.bat

View File

@ -6,16 +6,6 @@ chcp 65001 >nul
setlocal setlocal
cd /d "%~dp0" cd /d "%~dp0"
if exist "%ProgramFiles%\nodejs\node.exe" (
echo Node.js уже установлен в %ProgramFiles%\nodejs.
echo Пропускаем установку.
goto :done
)
if exist "%ProgramFiles(x86)%\nodejs\node.exe" (
echo Node.js уже установлен в %ProgramFiles(x86)%\nodejs.
echo Пропускаем установку.
goto :done
)
set "MSI=node-v16.20.2-x64.msi" set "MSI=node-v16.20.2-x64.msi"
if /i "%PROCESSOR_ARCHITECTURE%"=="x86" if not defined PROCESSOR_ARCHITEW6432 set "MSI=node-v16.20.2-x86.msi" if /i "%PROCESSOR_ARCHITECTURE%"=="x86" if not defined PROCESSOR_ARCHITEW6432 set "MSI=node-v16.20.2-x86.msi"

View File

@ -146,7 +146,6 @@
"active_skus": "Active parts", "active_skus": "Active parts",
"units_on_hand": "Units on hand", "units_on_hand": "Units on hand",
"cost_value": "Value (at cost)", "cost_value": "Value (at cost)",
"sale_value": "Value (at sale)",
"low_stock": "Low stock", "low_stock": "Low stock",
"out_of_stock": "Out of stock", "out_of_stock": "Out of stock",
"top_parts": "Top selling parts", "top_parts": "Top selling parts",

View File

@ -146,7 +146,6 @@
"active_skus": "Қисмҳои фаъол", "active_skus": "Қисмҳои фаъол",
"units_on_hand": "Дар анбор", "units_on_hand": "Дар анбор",
"cost_value": "Арзиш (бо нархи харид)", "cost_value": "Арзиш (бо нархи харид)",
"sale_value": "Арзиш (бо нархи фурӯш)",
"low_stock": "Захираи кам", "low_stock": "Захираи кам",
"out_of_stock": "Тамом шуд", "out_of_stock": "Тамом шуд",
"top_parts": "Қисмҳои серфурӯш", "top_parts": "Қисмҳои серфурӯш",

View File

@ -56,13 +56,7 @@
<span class="cur">{$t('common.currency_short')}</span> <span class="cur">{$t('common.currency_short')}</span>
</div> </div>
</div> </div>
<div class="card stat"> <div></div>
<div class="label">{$t('reports.sale_value')}</div>
<div class="value">
{formatMoney(inventory.sale_value_dirams, lang)}
<span class="cur">{$t('common.currency_short')}</span>
</div>
</div>
<div class="card stat"> <div class="card stat">
<div class="label">{$t('reports.low_stock')}</div> <div class="label">{$t('reports.low_stock')}</div>
<div class="value" class:warn={inventory.lowStockCount > 0}>{inventory.lowStockCount}</div> <div class="value" class:warn={inventory.lowStockCount > 0}>{inventory.lowStockCount}</div>

View File

@ -54,7 +54,7 @@
<div class="row"> <div class="row">
<label> <label>
{$t('parts.unit')} {$t('parts.unit')}
<input name="unit" value={values.unit ?? 'pcs'} /> <input name="unit" value={values.unit ?? 'liter'} />
</label> </label>
<label> <label>
{$t('parts.reorder_level')} {$t('parts.reorder_level')}