projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revert "_replace_special_chars in Helper ausgelagert."
[kivitendo-erp.git]
/
t
/
bank
/
bank_transactions.t
diff --git
a/t/bank/bank_transactions.t
b/t/bank/bank_transactions.t
index
69028b1
..
a85a72f
100644
(file)
--- a/
t/bank/bank_transactions.t
+++ b/
t/bank/bank_transactions.t
@@
-1,4
+1,4
@@
-use Test::More tests => 13
0
;
+use Test::More tests => 13
7
;
use strict;
use strict;
@@
-76,7
+76,8
@@
test_two_invoices();
test_partial_payment();
test_credit_note();
test_ap_transaction();
test_partial_payment();
test_credit_note();
test_ap_transaction();
-test_neg_ap_transaction();
+test_neg_ap_transaction(invoice => 0);
+test_neg_ap_transaction(invoice => 1);
test_ap_payment_transaction();
test_ap_payment_part_transaction();
test_neg_sales_invoice();
test_ap_payment_transaction();
test_ap_payment_part_transaction();
test_neg_sales_invoice();
@@
-448,11
+449,11
@@
sub test_credit_note {
sub test_neg_ap_transaction {
my (%params) = @_;
sub test_neg_ap_transaction {
my (%params) = @_;
- my $testname = 'test_neg_ap_transaction';
+ my $testname = 'test_neg_ap_transaction'
. $params{invoice} ? ' invoice booking' : ' credit booking'
;
my $netamount = -20;
my $amount = $::form->round_amount($netamount * 1.19,2);
my $invoice = SL::DB::PurchaseInvoice->new(
my $netamount = -20;
my $amount = $::form->round_amount($netamount * 1.19,2);
my $invoice = SL::DB::PurchaseInvoice->new(
- invoice => 0,
+ invoice =>
$params{invoice} //
0,
invnumber => $params{invnumber} || 'test_neg_ap_transaction',
amount => $amount,
netamount => $netamount,
invnumber => $params{invnumber} || 'test_neg_ap_transaction',
amount => $amount,
netamount => $netamount,