From d301d97a6f7bc381567de16eff0ed271b5987e2c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20B=C3=BCren?= Date: Thu, 23 Mar 2017 14:37:07 +0100 Subject: [PATCH] =?utf8?q?Test:=20Lieferantengutschrift=20verbuchen,=20auc?= =?utf8?q?h=20die=20Gegenseite=20Banktransaktion=20pr=C3=BCfen?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Die Zahlung wurde korrekt gebucht, allerdings erwartet kivitendo jetzt auch Änderungen in der bank_transactions invoice_amount, in anderen Testfällen (test1) wird diese auch überprüft. --- t/bank/bank_transactions.t | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/t/bank/bank_transactions.t b/t/bank/bank_transactions.t index 7b482c4d5..ebecb3d26 100644 --- a/t/bank/bank_transactions.t +++ b/t/bank/bank_transactions.t @@ -1,4 +1,4 @@ -use Test::More tests => 74; +use Test::More tests => 75; use strict; @@ -477,10 +477,12 @@ sub test_neg_ap_transaction { save_btcontroller_to_string(); $invoice->load; + $bt->load; is($invoice->amount , '-23.80000', "$testname: amount ok"); is($invoice->netamount, '-20.00000', "$testname: netamount ok"); is($invoice->paid , '-23.80000', "$testname: paid ok"); + is($bt->invoice_amount, '23.80000', "$testname: bt invoice amount for ap was assigned"); return $invoice; }; -- 2.20.1