Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Business-Tax-VAT CPAN distribution.

Report information
The Basics
Id: 16941
Status: resolved
Priority: 0/
Queue: Business-Tax-VAT

People
Owner: jonasbn [...] cpan.org
Requestors: tom.kirkpatrick [...] virusbtn.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



To: bug-Business-Tax-VAT [...] rt.cpan.org
Subject: Business::Tax::VAT
From: tom.kirkpatrick [...] virusbtn.com
Date: Fri, 6 Jan 2006 16:47:26 +0000
I'd like to use this module, but you have used different country codes to me. For example, my code for the UK is 'GB', not 'uk'. I have tried to set up the new country code by doing: $Business::Tax::VAT::Price::RATE{'GB'} = 17.5; but it doesn't seem to work... Any ideas how I can go about adding new codes to the module? thanks -- Tom Kirkpatrick Web Developer - Virus Bulletin
Hi Tom, Thanks for the bug report, I did some testing and all you have to do to make your example work is the following: my $vat = Business::Tax::VAT->new(qw/gb/); $Business::Tax::VAT::Price::RATE{'gb'} = 20; my $price = $vat->item(102 => 'gb'); is $price->full, 102, "Full price correct - GB consumer"; is $price->vat, 17, "VAT correct - GB consumer"; is $price->net, 85, "Net price correct - GB consumer"; Your example has been added to the test suite from where this was taken. Take care, jonasbn