cvs: pear /Payment_DTA DTAZV.php
| From: | Martin Schütte | Date: | Wed, 13 May 2009 15:29:33 +0000 |
| Subject: | cvs: pear /Payment_DTA DTAZV.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-56086@lists.php.net to get a copy of this message | ||
mschuett Wed May 13 15:29:33 2009 UTC
Modified files:
/pear/Payment_DTA DTAZV.php
Log:
fixed formatting bug (amounts)
http://cvs.php.net/viewvc.cgi/pear/Payment_DTA/DTAZV.php?r1=1.4&r2=1.5&diff_format=u
Index: pear/Payment_DTA/DTAZV.php
diff -u pear/Payment_DTA/DTAZV.php:1.4 pear/Payment_DTA/DTAZV.php:1.5
--- pear/Payment_DTA/DTAZV.php:1.4 Wed Feb 25 23:21:25 2009
+++ pear/Payment_DTA/DTAZV.php Wed May 13 15:29:33 2009
@@ -63,7 +63,7 @@
* @copyright 2008 Martin Schütte
* @copyright 2003-2005 Hermann Stainer, Web-Gear
* @license http://www.debian.org/misc/bsd.license BSD
License (3 Clause)
- * @version CVS: $Id: DTAZV.php,v 1.4 2009/02/25 23:21:25 mschuett Exp $
+ * @version CVS: $Id: DTAZV.php,v 1.5 2009/05/13 15:29:33 mschuett Exp $
* @link http://pear.php.net/package/Payment_DTA
*/
@@ -412,7 +412,7 @@
// T13 currency
$content .= "EUR";
// T14a amount (integer)
- $content .= str_pad($exchange['amount']/100, 14, "0",
STR_PAD_LEFT);
+ $content .= str_pad(intval($exchange['amount']/100), 14, "0",
STR_PAD_LEFT);
// T14b amount (decimal places)
$content .= str_pad(($exchange['amount']%100)*10, 3, "0",
STR_PAD_LEFT);
// T15 purpose
@@ -451,7 +451,7 @@
$content .= "Z";
// Z03 sum of amounts (integers)
assert($sum_amounts == $this->sum_amounts);
- $content .= str_pad($sum_amounts, 15, "0", STR_PAD_LEFT);
+ $content .= str_pad(intval($sum_amounts/100), 15, "0", STR_PAD_LEFT);
// Z04 number of records type T
$content .= str_pad(count($this->exchanges), 15, "0", STR_PAD_LEFT);
// Z05 reserve