original price
This commit is contained in:
@@ -218,6 +218,7 @@
|
|||||||
"add_plan": "افزودن پلن",
|
"add_plan": "افزودن پلن",
|
||||||
"time": "مدت زمان",
|
"time": "مدت زمان",
|
||||||
"price": "قیمت",
|
"price": "قیمت",
|
||||||
|
"original_price": "قیمت اصلی",
|
||||||
"cancel": "لغو",
|
"cancel": "لغو",
|
||||||
"submit_plan": "ثبت پلن",
|
"submit_plan": "ثبت پلن",
|
||||||
"error_submit": "حداقل یک پلن باید اضافه شود",
|
"error_submit": "حداقل یک پلن باید اضافه شود",
|
||||||
|
|||||||
@@ -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} />
|
||||||
|
|||||||
@@ -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 = {
|
||||||
|
|||||||
Reference in New Issue
Block a user