discount ccustomer

This commit is contained in:
hamid zarghami
2025-05-08 10:25:19 +03:30
parent 0b01ee8569
commit bf711dfe24
7 changed files with 58 additions and 26 deletions
+2
View File
@@ -85,6 +85,7 @@ const DiscountList: FC = () => {
<tr>
<Td text={t('discount.title')} />
<Td text={t('discount.type')} />
<Td text={t('discount.customer')} />
<Td text={t('discount.code')} />
<Td text={t('discount.startDate')} />
<Td text={t('discount.endDate')} />
@@ -100,6 +101,7 @@ const DiscountList: FC = () => {
<tr key={item.id} className='tr'>
<Td text={item.title} />
<Td text={t(`discount.${item.type}`)} />
<Td text={item.user ? item.user.firstName + ' ' + item.user.lastName : '-'} />
<Td text={item.code} />
<Td text={moment(item.startDate, 'jYYYY-jMM-jDD').format('jYYYY-jMM-jDD')} />
<Td text={moment(item.endDate, 'jYYYY-jMM-jDD').format('jYYYY-jMM-jDD')} />