1405/01/22-fix bugs in gift card

This commit is contained in:
2026-04-11 17:53:21 +03:30
parent f4572575d7
commit 6c56a409e5
2 changed files with 3 additions and 3 deletions
@@ -124,7 +124,7 @@ export const cols: BaseTableColumn[] = [
key: 'name',
type: 'Text',
customRender: ({ record }) => {
return record.customer?.name ?? '-'
return record.name ?? '-'
}
},
// {
+2 -2
View File
@@ -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 = 'اطلاعات کارت هدیه'