original price

This commit is contained in:
hamid zarghami
2025-05-11 10:08:41 +03:30
parent acc2599c5d
commit 1447a64491
3 changed files with 4 additions and 0 deletions
+1
View File
@@ -218,6 +218,7 @@
"add_plan": "افزودن پلن",
"time": "مدت زمان",
"price": "قیمت",
"original_price": "قیمت اصلی",
"cancel": "لغو",
"submit_plan": "ثبت پلن",
"error_submit": "حداقل یک پلن باید اضافه شود",
+2
View File
@@ -36,6 +36,7 @@ const Plans: FC = () => {
<tr>
<Td text={t('title')} />
<Td text={t('plan.time')} />
<Td text={t('plan.original_price')} />
<Td text={t('plan.price')} />
<Td text={t('status')} />
<Td text={''} />
@@ -47,6 +48,7 @@ const Plans: FC = () => {
<tr key={item.id} className='tr'>
<Td text={item.name} />
<Td text={item.duration + ''} />
<Td text={NumberFormat(+item.originalPrice)} />
<Td text={NumberFormat(+item.price)} />
<Td text={''}>
<ToggleStatusPlan defaultActive={item.isActive} id={item.id} />
+1
View File
@@ -79,6 +79,7 @@ export type PlanItemType = {
price: string | number;
isActive: boolean;
createdAt: string;
originalPrice: string | number;
};
export type UpdatePlanType = {