Bugzilla – Attachment 68711 Details for
Bug 18267
Update price and tax fields in EDI to reflect DB changes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18267 Add test for new tax_rate method
Bug-18267-Add-test-for-new-taxrate-method.patch (text/plain), 1.07 KB, created by
Kyle M Hall
on 2017-10-27 13:53:07 UTC
(
hide
)
Description:
Bug 18267 Add test for new tax_rate method
Filename:
MIME Type:
Creator:
Kyle M Hall
Created:
2017-10-27 13:53:07 UTC
Size:
1.07 KB
patch
obsolete
>From 150b5c93f221913fb588dc31eb67e0a40d70c96a Mon Sep 17 00:00:00 2001 >From: Colin Campbell <colin.campbell@ptfs-europe.com> >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 <kyle@bywatersolutions.com> >--- > 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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 18267
:
61600
|
61601
|
61602
|
61605
|
61606
|
65244
|
65245
|
65246
|
65250
|
65251
|
65252
|
65253
|
65254
|
68536
|
68707
|
68708
|
68709
|
68710
|
68711
|
68712
|
68713
|
68714
|
113569
|
113597
|
113897