X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=sql%2FGenerateData.php;h=7f6d0c7e18998a06afb3a5f087184ac3b2b15d85;hb=5143b9aafdaf23d140eafbe40e0664fa4606b2ac;hp=301e584e4260d48b113b49acd6faffd9a2bd2183;hpb=f51e0fa4e8fea4b20eeb53d2ccbe4769d3ac55f8;p=civicrm-core.git diff --git a/sql/GenerateData.php b/sql/GenerateData.php index 301e584e42..7f6d0c7e18 100644 --- a/sql/GenerateData.php +++ b/sql/GenerateData.php @@ -3,7 +3,7 @@ * +--------------------------------------------------------------------+ * | CiviCRM version 4.7 | * +--------------------------------------------------------------------+ - * | Copyright CiviCRM LLC (c) 2004-2016 | + * | Copyright CiviCRM LLC (c) 2004-2017 | * +--------------------------------------------------------------------+ * | This file is a part of CiviCRM. | * | | @@ -28,7 +28,7 @@ /** * * @package CRM - * @copyright CiviCRM LLC (c) 2004-2016 + * @copyright CiviCRM LLC (c) 2004-2017 * $Id$ * */ @@ -1843,7 +1843,7 @@ order by cc.id; "; $select = 'SELECT contribution.id contribution_id, cli.id as line_item_id, contribution.contact_id, contribution.receive_date, contribution.total_amount, contribution.currency, cli.label, cli.financial_type_id, cefa.financial_account_id, contribution.payment_instrument_id, contribution.check_number, contribution.trxn_id'; $where = 'WHERE cefa.account_relationship = 1'; - $financialAccountId = CRM_Financial_BAO_FinancialTypeAccount::getInstrumentFinancialAccount(); + $financialAccountId = CRM_Financial_BAO_FinancialTypeAccount::getInstrumentFinancialAccount(4); foreach ($components as $component) { if ($component == 'contribution') { $from = 'FROM `civicrm_contribution` contribution';