Use $object

This commit is contained in:
Alexandre SPANGARO 2025-11-26 06:46:30 +01:00
parent a54c233130
commit 2e9db19bed

View file

@ -1019,7 +1019,7 @@ if ($action == 'create') {
$total_debit += $line->debit;
$total_credit += $line->credit;
if ($action == 'update' && $line->id == $id && empty($line->date_validation)) {
if ($action == 'update' && $line->id == $id && empty($object->date_validation)) {
print '<tr class="oddeven" data-lineid="'.((int) $line->id).'">';
print '<!-- td columns in edit mode -->';
print '<td>';