1405/01/22-fix bugs in gift card
This commit is contained in:
@@ -124,7 +124,7 @@ export const cols: BaseTableColumn[] = [
|
|||||||
key: 'name',
|
key: 'name',
|
||||||
type: 'Text',
|
type: 'Text',
|
||||||
customRender: ({ record }) => {
|
customRender: ({ record }) => {
|
||||||
return record.customer?.name ?? '-'
|
return record.name ?? '-'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// {
|
// {
|
||||||
|
|||||||
@@ -546,8 +546,8 @@ function info(val: Giftcard) {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
infoParams.title = 'اطلاعات کارت هدیه'
|
infoParams.title = 'اطلاعات کارت هدیه'
|
||||||
infoParams.name = val.customer?.name ?? '-'
|
infoParams.name = val.name ?? '-'
|
||||||
infoParams.type = val.customer?.mobile ?? '-'
|
// infoParams.type = val.customer?.mobile ?? '-'
|
||||||
infoParams.date = toJalaliNoTime(val.created_at)
|
infoParams.date = toJalaliNoTime(val.created_at)
|
||||||
infoParams.time = toTime(val.created_at)
|
infoParams.time = toTime(val.created_at)
|
||||||
infoParams.itemsTitle = 'اطلاعات کارت هدیه'
|
infoParams.itemsTitle = 'اطلاعات کارت هدیه'
|
||||||
|
|||||||
Reference in New Issue
Block a user