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