]> wagnertech.de Git - mfinanz.git/blobdiff - SL/DB/Helper/Payment.pm
SuSa - vergessene Hidden für department_id
[mfinanz.git] / SL / DB / Helper / Payment.pm
index c35b12c63c7fef6a71c539a6a6b2b2899180bfb4..a034fcfef708d26dcf32b2f213cb8c580708245a 100644 (file)
@@ -107,7 +107,7 @@ sub pay_invoice {
 
   # account where money is paid to/from: bank account or cash
   my $account_bank = SL::DB::Manager::Chart->find_by(id => $params{chart_id});
-  croak "can't find bank account" unless ref $account_bank;
+  croak "can't find bank account with id " . $params{chart_id} unless ref $account_bank;
 
   my $reference_account = $self->reference_account;
   croak "can't find reference account (link = AR/AP) for invoice" unless ref $reference_account;
@@ -791,7 +791,7 @@ or in a certain currency:
                    transdate     => DateTime->now->to_kivitendo,
                    memo          => 'foobar',
                    source        => 'barfoo',
-                   payment_type  => 'with_skonto',
+                   payment_type  => 'with_skonto_pt',
                   );
 
 Allowed payment types are: