]> wagnertech.de Git - mfinanz.git/blobdiff - t/db_helper/payment.t
Merge branch 'b-3.6.1' of ../kivitendo-erp_20220811
[mfinanz.git] / t / db_helper / payment.t
index 30ac115da6d77cf7972537e84399fad9ded5f8e5..154e48c290258079f4d5f61ff34bd46780fb5f8b 100644 (file)
@@ -995,10 +995,12 @@ sub test_default_invoice_four_items_19_7_tax_with_skonto_4x_25_multiple {
                          chart_id     => $bank_account->chart_id,
                          transdate => $transdate1,
                        );
-  $invoice->pay_invoice( payment_type => 'difference_as_skonto',
+  $invoice->pay_invoice( payment_type => 'free_skonto',
                          chart_id     => $bank_account->chart_id,
                          transdate    => $transdate1,
-                         bt_id     => $bt->id,
+                         bt_id        => $bt->id,
+                         skonto_amount => $invoice->open_amount,
+                         amount        => 0,
                        );
 
   my ($number_of_payments, $paid_amount) = number_of_payments($invoice);