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": "افزودن پلن", "add_plan": "افزودن پلن",
"time": "مدت زمان", "time": "مدت زمان",
"price": "قیمت", "price": "قیمت",
"original_price": "قیمت اصلی",
"cancel": "لغو", "cancel": "لغو",
"submit_plan": "ثبت پلن", "submit_plan": "ثبت پلن",
"error_submit": "حداقل یک پلن باید اضافه شود", "error_submit": "حداقل یک پلن باید اضافه شود",
+2
View File
@@ -36,6 +36,7 @@ const Plans: FC = () => {
<tr> <tr>
<Td text={t('title')} /> <Td text={t('title')} />
<Td text={t('plan.time')} /> <Td text={t('plan.time')} />
<Td text={t('plan.original_price')} />
<Td text={t('plan.price')} /> <Td text={t('plan.price')} />
<Td text={t('status')} /> <Td text={t('status')} />
<Td text={''} /> <Td text={''} />
@@ -47,6 +48,7 @@ const Plans: FC = () => {
<tr key={item.id} className='tr'> <tr key={item.id} className='tr'>
<Td text={item.name} /> <Td text={item.name} />
<Td text={item.duration + ''} /> <Td text={item.duration + ''} />
<Td text={NumberFormat(+item.originalPrice)} />
<Td text={NumberFormat(+item.price)} /> <Td text={NumberFormat(+item.price)} />
<Td text={''}> <Td text={''}>
<ToggleStatusPlan defaultActive={item.isActive} id={item.id} /> <ToggleStatusPlan defaultActive={item.isActive} id={item.id} />
+1
View File
@@ -79,6 +79,7 @@ export type PlanItemType = {
price: string | number; price: string | number;
isActive: boolean; isActive: boolean;
createdAt: string; createdAt: string;
originalPrice: string | number;
}; };
export type UpdatePlanType = { export type UpdatePlanType = {