}
if ($::form->round_amount($bt_sum + $bb_sum, 2) != 0) {
- push @errors, t8('Out of balance!');
+ push @errors, t8('Out of balance!'), t8('Sum of bank #1 and sum of bookings #2',$bt_sum, $bb_sum);
}
$self->{ELEMENTS} = \@elements;
# 1. step: set AccTrans and BankTransactions to 'cleared'
foreach my $element (@{ $self->{ELEMENTS} }) {
$element->cleared('1');
- $element->invoice_amount($element->amount) if $element->isa('SL::DB::BankTransaction');
+ # veto either invoice_amount is fully assigned or not! No state tricks in later workflow!
+ # invoice_amount should be a distinct sign, that some bookings were really made from a bank transaction
+ # $element->invoice_amount($element->amount) if $element->isa('SL::DB::BankTransaction');
$element->save;
}
'Sum for #1' => 'Summe für #1',
'Sum for section' => 'Summe für Abschnitt',
'Sum of all amounts' => 'Summe aller Beträge',
+ 'Sum of bank #1 and sum of bookings #2' => 'Summe der Bank #1 und Summe der Buchungen #2',
'Sum open amount' => 'Summierter offener Betrag',
'Sum per' => 'Summe per',
'Summen- und Saldenliste' => 'Summen- und Saldenliste',