Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision cecc0509

Von Jan Büren vor etwa 5 Jahren hinzugefügt

  • ID cecc0509e2a2abeaca123ab95a2364eb98d0a380
  • Vorgänger 5401e8ea
  • Nachfolger b11c7ad5

Reconciliation: Veto, kein invoice_amount nachträglich setzen.

Im Fehlerfall die Summe der Bank gegenüber der Buchungen
an Benutzer (testfall) übergeben.

Unterschiede anzeigen:

SL/Controller/Reconciliation.pm
344 344
  }
345 345

  
346 346
  if ($::form->round_amount($bt_sum + $bb_sum, 2) != 0) {
347
    push @errors, t8('Out of balance!');
347
    push @errors, t8('Out of balance!'), t8('Sum of bank #1 and sum of bookings #2',$bt_sum, $bb_sum);
348 348
  }
349 349

  
350 350
  $self->{ELEMENTS} = \@elements;
......
360 360
  # 1. step: set AccTrans and BankTransactions to 'cleared'
361 361
  foreach my $element (@{ $self->{ELEMENTS} }) {
362 362
    $element->cleared('1');
363
    $element->invoice_amount($element->amount) if $element->isa('SL::DB::BankTransaction');
363
    # veto either invoice_amount is fully assigned or not! No state tricks in later workflow!
364
    # invoice_amount should be a distinct sign, that some bookings were really made from a bank transaction
365
    # $element->invoice_amount($element->amount) if $element->isa('SL::DB::BankTransaction');
364 366
    $element->save;
365 367
  }
366 368

  

Auch abrufbar als: Unified diff