X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=t%2Fdb_helper%2Fpayment.t;h=154e48c290258079f4d5f61ff34bd46780fb5f8b;hb=24d1656ebd75cc1125b15b1c9727cae0fb4417d1;hp=30ac115da6d77cf7972537e84399fad9ded5f8e5;hpb=b49dd24d85c5a2e1683e32da92ea2160367c4cf3;p=kivitendo-erp.git diff --git a/t/db_helper/payment.t b/t/db_helper/payment.t index 30ac115da..154e48c29 100644 --- a/t/db_helper/payment.t +++ b/t/db_helper/payment.t @@ -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);