From 390e43fbdd44a80985d7e08fdfb7e31e65d1ac63 Mon Sep 17 00:00:00 2001 From: Colin Campbell Date: Mon, 10 Jul 2017 16:24:06 +0100 Subject: [PATCH 5/7] 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 --- t/EdiInvoice.t | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/t/EdiInvoice.t b/t/EdiInvoice.t index 14e7596486..6ed0dbb04d 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.13.3