Add thousand separators to all CRM price and amount inputs.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -6,6 +6,7 @@ import { api } from '@/lib/api';
|
||||
import { formatMoney as formatMoneyLib } from '@/lib/money';
|
||||
import { formatLocalDateInput } from '@/lib/jalali';
|
||||
import JalaliDateInput from '@/components/JalaliDateInput.vue';
|
||||
import MoneyInput from '@/components/MoneyInput.vue';
|
||||
import type {
|
||||
CompanyDto,
|
||||
CreateInvoiceRequest,
|
||||
@@ -476,11 +477,9 @@ onMounted(load);
|
||||
step="0.01"
|
||||
placeholder="تعداد"
|
||||
/>
|
||||
<input
|
||||
<MoneyInput
|
||||
v-model="line.unitPrice"
|
||||
type="number"
|
||||
min="0"
|
||||
step="1"
|
||||
:decimals="0"
|
||||
placeholder="قیمت واحد"
|
||||
/>
|
||||
<button
|
||||
@@ -515,12 +514,11 @@ onMounted(load);
|
||||
class="installment-row"
|
||||
>
|
||||
<JalaliDateInput v-model="item.dueDate" />
|
||||
<input
|
||||
<MoneyInput
|
||||
v-model="item.amount"
|
||||
type="number"
|
||||
min="0.01"
|
||||
step="1"
|
||||
:decimals="0"
|
||||
placeholder="مبلغ قسط"
|
||||
required
|
||||
/>
|
||||
<button
|
||||
class="btn btn-ghost no-print"
|
||||
@@ -553,7 +551,7 @@ onMounted(load);
|
||||
<section v-if="!isNew && invoice && !loading" class="pay-block no-print">
|
||||
<h3>ثبت پرداخت</h3>
|
||||
<div class="pay-form">
|
||||
<input v-model="payAmount" type="number" min="0.01" placeholder="مبلغ" />
|
||||
<MoneyInput v-model="payAmount" :decimals="0" placeholder="مبلغ" />
|
||||
<select v-model="payMethod">
|
||||
<option
|
||||
v-for="(label, key) in methodLabel"
|
||||
|
||||
Reference in New Issue
Block a user