BT(save_single_invoice) valutadate anstelle transdate an pay_invoice
authorJan Büren <jan@kivitendo.de>
Tue, 5 Mar 2019 12:40:51 +0000 (13:40 +0100)
committerJan Büren <jan@kivitendo.de>
Tue, 5 Mar 2019 12:47:19 +0000 (13:47 +0100)
Der Tag der Buchung ist in diesem Fall der Tag der
Wertstellung, entsprechend "richtigeren" wert an pay_invoice
übergeben.

SL/Controller/BankTransaction.pm

index c7215b2..ee6d90d 100644 (file)
@@ -663,7 +663,7 @@ sub save_single_bank_transaction {
                           payment_type => $payment_type,
                           source       => $source,
                           memo         => $memo,
-                          transdate    => $bank_transaction->transdate->to_kivitendo);
+                          transdate    => $bank_transaction->valutadate->to_kivitendo);
     # ... and record the origin via BankTransactionAccTrans
     if (scalar(@acc_ids) < 2) {
       return {