XBS EU VAT Xoops Module Help (c) A Kitson <http://xoobs.net>, UK, 2005 Installation----------------------
You must install the XBS Code Data management module (CDM) prior to installing EUVAT. You can find this at http://xoobs.net
Install the EUVAT module as per any normal Xoops module. Copy files into modules/xbs_vat directory and install via the Xoops module administration screen.
If you are installing this module on Xoops V2.2.x then set the module order to 0 (zero) in modules admin to prevent a menu option appearing on the user side menu. This is part of a workaround for Xoops 2.2.
What EUVAT provides-------------------------------------------
EUVAT does not provide any main page, menu or admin menu. It provides one block for allowing a user to check a VAT number on the VIES database. This is configured in the normal way via the Xoops block administration facilities.
The block is included as a facility for your users and also to demonstrate how to use EUVAT in your own module. Check out the euvat_block_lookup.php and vatlookup.php scripts to be found in the xbs_vat/blocks directory.
This documentation gives details on the public interface to EUVAT for developers. Using EUVAT in your own code------------------------------------------------------------
The following construct should be enough to demonstrate the use of the EUVAT system in your own code:
include_once(XOOPS_ROOT_PATH.”/modules/xbs_vat/include/functions.php”);
$vcntry = 'GB';
$vnum = '876500706';
$test = EUVATCheckNumber($vcntry, $vnum);
//Do something on basis of $test which will be True or False
EUVAT relies on the default language setting (EN – English Base) of the CDM module to find its codes in the CDM system. If you have installed CDM without changing the default language, EUVAT should work. If you change the default language, you will have to generate a set of codes for EUVAT in the CDM system for your chosen language. Getting help and reporting bugs----------------------------------------------------------------
The code for this module is maintained via the Xoobs.net website
facility. Use the facilities there to report and track bugs, get latest downloads and request support. Licensing------------------
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
You may not change or alter any portion of this comment or credits of supporting developers from this source code or any supporting source code which is considered copyrighted (c) material of the original comment or credit authors.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA or see http://www.gnu.org/copyleft/gpl.html
|