Change null check format for getPromo #143
This commit is contained in:
parent
c9d6b232ee
commit
f41dafd293
1 changed files with 1 additions and 1 deletions
|
|
@ -2069,7 +2069,7 @@ class JobOrderController extends BaseController
|
|||
|
||||
$pdf->SetXY($col1_x, $y);
|
||||
$pdf->Cell($label_width, $line_height, 'Discount Type:');
|
||||
$pdf->MultiCell($val_width, $line_height, !empty($invoice->getPromo()) ? $invoice->getPromo()->getName() : '', 0, 'L');
|
||||
$pdf->MultiCell($val_width, $line_height, $invoice->getPromo() ? $invoice->getPromo()->getName() : '', 0, 'L');
|
||||
|
||||
$pdf->SetXY($col2_x, $y);
|
||||
$pdf->SetFont($font_face, 'B');
|
||||
|
|
|
|||
Loading…
Reference in a new issue