Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision d94820d0

Von Moritz Bunkus vor mehr als 17 Jahren hinzugefügt

  • ID d94820d09f4848d06bf3b74bb85c2c52820fbc48
  • Vorgänger d50a9e20
  • Nachfolger b262a6e8

Debugmeldungen entfernt

Unterschiede anzeigen:

SL/IR.pm
1255 1255

  
1256 1256
  my (%payments, $old_form, $row, $item, $query, %keep_vars);
1257 1257

  
1258

  
1259
  my @prior;
1260
  push @prior, selectall_hashref_query($form, $dbh, qq|SELECT id, paid, datepaid FROM ap WHERE id = ?|, $form->{id});
1261
  push @prior, selectall_hashref_query($form, $dbh, qq|SELECT * FROM acc_trans WHERE trans_id = ? ORDER BY oid|, $form->{id});
1262

  
1263

  
1264

  
1265

  
1266 1258
  $old_form = save_form();
1267 1259

  
1268 1260
  # Delete all entries in acc_trans from prior payments.
......
1313 1305

  
1314 1306
  restore_form($old_form);
1315 1307

  
1316
  my @after;
1317
  push @after, selectall_hashref_query($form, $dbh, qq|SELECT id, paid, datepaid FROM ap WHERE id = ?|, $form->{id});
1318
  push @after, selectall_hashref_query($form, $dbh, qq|SELECT * FROM acc_trans WHERE trans_id = ? ORDER BY oid|, $form->{id});
1319

  
1320
  foreach my $rows (@prior, @after) {
1321
    map { delete @{$_}{qw(itime mtime)} } @{ $rows };
1322
  }
1323

  
1324
  map { $main::lxdebug->dump_sql_result(0, 'davor ', $_) } @prior;
1325
  map { $main::lxdebug->dump_sql_result(0, 'danach', $_) } @after;
1326

  
1327
  my $rc = 1;
1328 1308
  my $rc = $dbh->commit();
1329 1309
  $dbh->disconnect();
1330 1310

  

Auch abrufbar als: Unified diff