forked from Yara724/api
Changed Price units to Rial
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user