Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 6a3ce09b

Von Bernd Bleßmann vor mehr als 3 Jahren hinzugefügt

  • ID 6a3ce09b35ef8994616392387e14edda64056c97
  • Vorgänger 8ae5d46d
  • Nachfolger 6b68cf88

Dialogbuchung: kleine Fixes bei Fehlermeldungen

Unterschiede anzeigen:

bin/mozilla/gl.pl
1363 1363
      die "No bank transaction found" unless $bt;
1364 1364

  
1365 1365
      $chart_id = SL::DB::Manager::BankAccount->find_by(id => $bt->local_bank_account_id)->chart_id;
1366
      die "no chart id:" unless $chart_id;
1366
      die "no chart id" unless $chart_id;
1367 1367

  
1368 1368
      $payment = SL::DB::Manager::AccTransaction->get_all(where => [ trans_id => $::form->{id},
1369 1369
                                                                     chart_link => { like => '%_paid%' },
......
1372 1372

  
1373 1373
      # credit/debit * -1 matches the sign for bt.amount and bt.invoice_amount
1374 1374

  
1375
      die "Can only assign the full (partial) bank amount to a single general ledger booking" . $bt->not_assigned_amount . " " .  ($payment->[0]->amount * -1)
1375
      die "Can only assign the full (partial) bank amount to a single general ledger booking: " . $bt->not_assigned_amount . " " .  ($payment->[0]->amount * -1)
1376 1376
        unless (abs($bt->not_assigned_amount - ($payment->[0]->amount * -1)) < 0.001);
1377 1377

  
1378 1378
      $bt->update_attributes(invoice_amount => $bt->invoice_amount + ($payment->[0]->amount * -1));

Auch abrufbar als: Unified diff