Add thousand separators to all CRM price and amount inputs.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-05 02:13:39 +03:30
co-authored by Cursor
parent 36e47e8af3
commit 20a9ac0d34
9 changed files with 239 additions and 25 deletions
+2 -1
View File
@@ -3,6 +3,7 @@ import { onMounted, ref } from 'vue';
import axios from 'axios';
import { api } from '@/lib/api';
import { formatMoney } from '@/lib/money';
import MoneyInput from '@/components/MoneyInput.vue';
import type {
CreateProductRequest,
OrganizationDto,
@@ -122,7 +123,7 @@ onMounted(load);
</div>
<div class="field">
<label for="p-price">قیمت واحد</label>
<input id="p-price" v-model="unitPrice" type="number" min="0" step="1" />
<MoneyInput id="p-price" v-model="unitPrice" :decimals="0" />
</div>
<div class="field">
<label for="p-currency">ارز</label>