projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
83a78ee
)
Tests: 2 Tests in db_helper/payment.t auf TODO gesetzt
author
Sven Schöling
<s.schoeling@linet-services.de>
Fri, 29 May 2015 15:27:48 +0000
(17:27 +0200)
committer
Sven Schöling
<s.schoeling@linet-services.de>
Fri, 29 May 2015 15:27:48 +0000
(17:27 +0200)
t/db_helper/payment.t
patch
|
blob
|
history
diff --git
a/t/db_helper/payment.t
b/t/db_helper/payment.t
index
18da821
..
0d29156
100644
(file)
--- a/
t/db_helper/payment.t
+++ b/
t/db_helper/payment.t
@@
-427,7
+427,9
@@
sub test_default_invoice_two_items_19_7_tax_with_skonto_tax_included() {
is($paid_amount, -17.51, "${title}: paid amount");
is($invoice->paid, 17.51, "${title}: paid");
is($number_of_payments, 3, "${title}: 3 AR_paid bookings");
is($paid_amount, -17.51, "${title}: paid amount");
is($invoice->paid, 17.51, "${title}: paid");
is($number_of_payments, 3, "${title}: 3 AR_paid bookings");
+ { local $TODO = "currently this test fails because the code writing the invoice is buggy, the calculation of skonto is correct";
is($total, 0, "${title}: even balance");
is($total, 0, "${title}: even balance");
+ }
}
# test 3 : two items, without skonto
}
# test 3 : two items, without skonto
@@
-953,8
+955,9
@@
sub test_default_invoice_four_items_19_7_tax_with_skonto_4x_25_tax_included() {
is($paid_amount, -100, "${title}: paid amount");
is($invoice->paid, 100, "${title}: paid");
is($number_of_payments, 3, "${title}: 3 AR_paid bookings");
is($paid_amount, -100, "${title}: paid amount");
is($invoice->paid, 100, "${title}: paid");
is($number_of_payments, 3, "${title}: 3 AR_paid bookings");
-# currently this test fails because the code writing the invoice is buggy, the calculation of skonto is correct
- is($total, 0, "${title}: even balance: this will fail due to rounding error in invoice post, not the skonto");
+ { local $TODO = "currently this test fails because the code writing the invoice is buggy, the calculation of skonto is correct";
+ is($total, 0, "${title}: even balance");
+ }
}
sub test_default_invoice_four_items_19_7_tax_with_skonto_4x_25_multiple() {
}
sub test_default_invoice_four_items_19_7_tax_with_skonto_4x_25_multiple() {