Add check for defined SUBTOTALS_SPECIAL_CODE (#37666)

Bugfix for #37663
This commit is contained in:
support-accellier 2026-03-30 22:49:49 +05:30 committed by GitHub
parent 6c70652d29
commit 81aaba6e86
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5958,7 +5958,7 @@ abstract class CommonObject
$this->tpl['strike'] = 0;
if ($restrictlist == 'services' && $line->product_type != Product::TYPE_SERVICE) {
$this->tpl['strike'] = 1;
} elseif ($line->special_code == SUBTOTALS_SPECIAL_CODE) {
} elseif (defined('SUBTOTALS_SPECIAL_CODE') && $line->special_code == SUBTOTALS_SPECIAL_CODE) {
$this->tpl['strike'] = 1;
}