From 150b5c93f221913fb588dc31eb67e0a40d70c96a Mon Sep 17 00:00:00 2001 From: Colin Campbell Date: Mon, 10 Jul 2017 16:24:06 +0100 Subject: [PATCH] Bug 18267 Add test for new tax_rate method Test return for new method added to Edifact::Line Note tax rate is not specified in edifact quotes so tax_rate_on_ordering can not be set. Tax rate is only specified in invoice messages Signed-off-by: Kyle M Hall --- t/EdiInvoice.t | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/t/EdiInvoice.t b/t/EdiInvoice.t index 14e7596..6ed0dbb 100755 --- a/t/EdiInvoice.t +++ b/t/EdiInvoice.t @@ -3,7 +3,7 @@ use strict; use warnings; use FindBin qw( $Bin ); -use Test::More tests => 19; +use Test::More tests => 20; BEGIN { use_ok('Koha::Edifact') } @@ -73,3 +73,7 @@ is( $lineprice, 4.55, 'correct net line price returned' ); my $tax = $lines->[7]->tax; is( $tax, 0, 'correct tax amount returned' ); + +my $tax_rate = $lines->[7]->tax_rate; + +is( $tax_rate->{rate}, 0.0, 'correct tax rate returned' ); -- 2.10.2