bug fix in cheques
This commit is contained in:
parent
b474a9817b
commit
f37aca7c6e
|
@ -475,8 +475,10 @@ class Explore
|
||||||
return null;
|
return null;
|
||||||
$jdate = new Jdate;
|
$jdate = new Jdate;
|
||||||
$label = '';
|
$label = '';
|
||||||
if ($cheque->getType() == 'input')
|
if ($cheque->getType() == 'input') {
|
||||||
$label = 'چک شماره ' . $cheque->getNumber() . ' مربوط به ' . $cheque->getPerson()->getNikename() . ' با مبلغ ' . $cheque->getAmount();
|
$personName = $cheque->getPerson() ? $cheque->getPerson()->getNikename() : 'نامشخص';
|
||||||
|
$label = 'چک شماره ' . $cheque->getNumber() . ' مربوط به ' . $personName . ' با مبلغ ' . $cheque->getAmount();
|
||||||
|
}
|
||||||
return [
|
return [
|
||||||
'id' => $cheque->getId(),
|
'id' => $cheque->getId(),
|
||||||
'number' => $cheque->getNumber(),
|
'number' => $cheque->getNumber(),
|
||||||
|
@ -727,4 +729,4 @@ class Explore
|
||||||
'upper' => $item->getUpper()
|
'upper' => $item->getUpper()
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue