Merge pull request #1875 from amitsharma322/gli-3220

Fixed: fatal error when generating a voucher with zero amount and prevent credit slip generation with zero amount in the back office
This commit is contained in:
Rohit Jain
2026-10-06 18:24:12 +05:30
committed by GitHub

View File

@@ -121,7 +121,7 @@ class HTMLTemplateOrderSlipCore extends HTMLTemplateInvoice
}
}
} else {
$this->order->products = null;
$this->order->products = array();
}
unset($product); // remove reference