/dev/core#716 - Add decimals in Contribution Amount on Repeat Contributions Report
authorfrancescbassas <francesc@babu.cat>
Thu, 21 Feb 2019 22:33:32 +0000 (23:33 +0100)
committerGitHub <noreply@github.com>
Thu, 21 Feb 2019 22:33:32 +0000 (23:33 +0100)
CRM/Report/Form/Contribute/Repeat.php

index 8fc1786ae996675f6b737bd26655a792141e527d..e9f0d418212ff82c25bd0e8b1c4cf952fc0a0740 100644 (file)
@@ -1035,7 +1035,7 @@ GROUP BY contribution2.{$this->contributionJoinTableColumn}, currency";
 CREATE TEMPORARY TABLE $this->tempTableRepeat1 (
 {$create}
 {$this->contributionJoinTableColumn} int unsigned,
-total_amount_sum int,
+total_amount_sum decimal(20,2),
 total_amount_count int
 ) ENGINE=HEAP {$this->_databaseAttributes}";
     $this->executeReportQuery($sql);
@@ -1050,7 +1050,7 @@ total_amount_count int
 CREATE TEMPORARY TABLE  $this->tempTableRepeat2 (
 {$create}
 {$this->contributionJoinTableColumn} int unsigned,
-total_amount_sum int,
+total_amount_sum decimal(20,2),
 total_amount_count int,
 currency varchar(3)
 ) ENGINE=HEAP {$this->_databaseAttributes}";