From 166717223d15d16b1e0f7b45571f9ab15ff39f1a Mon Sep 17 00:00:00 2001 From: Reinhold Kainhofer <reinhold@kainhofer.com> Date: Fri, 1 Jan 2016 15:27:31 +0100 Subject: [PATCH] V0.4: Add automatic plugin updates, round amounts for Austrian XML --- Makefile | 2 +- eurecap.xml | 10 +++++++--- views/eurecap/tmpl/export_at_xml.php | 2 +- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index d3da598..f2e200f 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ BASE=eurecap PLUGINTYPE=vmextended -VERSION=0.3 +VERSION=0.4 PLUGINFILES=$(BASE).php $(BASE).script.php $(BASE).xml index.html # $(BASE)/ diff --git a/eurecap.xml b/eurecap.xml index e29889e..4298645 100644 --- a/eurecap.xml +++ b/eurecap.xml @@ -7,9 +7,9 @@ <authorUrl>http://www.open-tools.net/</authorUrl> <copyright>Copyright (C) 2015 Reinhold Kainhofer. All rights reserved.</copyright> <license>http://www.gnu.org/licenses/gpl-3.0.html GNU/GPLv3</license> - <version>0.3</version> - <releaseDate>2015-04-01</releaseDate> - <releaseType>Initial Release</releaseType> + <version>0.4</version> + <releaseDate>2016-01-01</releaseDate> + <releaseType>Update</releaseType> <downloadUrl>http://www.open-tools.net</downloadUrl> <description>VMEXT_EU_RECAP_DESC</description> @@ -103,5 +103,9 @@ <param name="vendor_vatid" type="text" scope="com_virtuemart" default="" label="VMEXT_EU_RECAP_VENDOR_VATID" description="VMEXT_EU_RECAP_VENDOR_VATID_DESC"/> <param name="taxnr" type="text" scope="com_virtuemart" default="" label="VMEXT_EU_RECAP_TAXNR" description="VMEXT_EU_RECAP_TAXNR_DESC"/> </params> + + <updateservers> + <server type="extension" name="VM EU Recapitulative Statements Updates"><![CDATA[http://open-tools.net/UpdateServer/index.php?package=Joomla&extension=EURecap]]></server> + </updateservers> </extension> diff --git a/views/eurecap/tmpl/export_at_xml.php b/views/eurecap/tmpl/export_at_xml.php index 3780078..d37c0ab 100644 --- a/views/eurecap/tmpl/export_at_xml.php +++ b/views/eurecap/tmpl/export_at_xml.php @@ -48,7 +48,7 @@ foreach ($this->report as $r) { ?> <ZM> <UID_MS><?php echo $vatid; ?></UID_MS> - <SUM_BGL type="kz"><?php echo $r['sum_order_total']; ?></SUM_BGL> + <SUM_BGL type="kz"><?php echo floor($r['sum_order_total']); ?></SUM_BGL> <?php // <DREIECK>0</DREIECK> ?> <SOLEI>1</SOLEI> </ZM> -- GitLab