Changed Price units to Rial

This commit is contained in:
SepehrYahyaee
2026-09-14 16:48:34 +03:30
parent e7103a9408
commit 152250a387
2 changed files with 6 additions and 6 deletions

View File

@@ -11,8 +11,8 @@ type ExpertReplyPricingPart = {
daghi?: { option?: unknown; price?: unknown };
};
export const EXPERT_REPLY_MIN_AMOUNT_TOMAN = 100_000;
export const EXPERT_REPLY_MAX_AMOUNT_TOMAN = 10_000_000_000;
export const EXPERT_REPLY_MIN_AMOUNT_TOMAN = 1_000_000; // It is Rial from now on but we managed to keep the variables named as *Toman so that we won't have conflicts elsewhere.
export const EXPERT_REPLY_MAX_AMOUNT_TOMAN = 100_000_000_000; // It it Rial from now on
export type ExpertReplyPricingValidationError = {
message: string;
@@ -150,7 +150,7 @@ export function getExpertReplyPricingValidationError(
? "دستمزد"
: "مبلغ کل";
return localizedError(
`${fieldName} قطعه ${String(part.partId)} باید به‌صورت مبلغ صحیح و غیرمنفی (تومان) وارد شود.`,
`${fieldName} قطعه ${String(part.partId)} باید به‌صورت مبلغ صحیح و غیرمنفی (ریال) وارد شود.`,
`parts[${index}].${field}`,
"invalid_amount",
String(part.partId),