From bd92bed902fe76ddce7c71a837844979842afb48 Mon Sep 17 00:00:00 2001 From: Dominic Tubach Date: Wed, 8 Jan 2025 15:33:24 +0100 Subject: [PATCH] Add withdrawable funds to drawdown controlling table --- .github/workflows/phpunit.yml | 2 +- ci/composer.json | 2 +- info.xml | 4 ++-- ...ch_Drawdowns_by_Recipient_and_Funding_Program.mgd.php | 9 +++++++++ 4 files changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/phpunit.yml b/.github/workflows/phpunit.yml index 9ab7ed90..ae210805 100644 --- a/.github/workflows/phpunit.yml +++ b/.github/workflows/phpunit.yml @@ -18,7 +18,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - civicrm-image-tags: [ '5-drupal', '5.72-drupal-php8.0' ] + civicrm-image-tags: [ '5-drupal', '5.80-drupal-php8.1' ] name: PHPUnit with Docker image michaelmcandrew/civicrm:${{ matrix.civicrm-image-tags }} env: CIVICRM_IMAGE_TAG: ${{ matrix.civicrm-image-tags }} diff --git a/ci/composer.json b/ci/composer.json index 6ec24403..eadc9538 100644 --- a/ci/composer.json +++ b/ci/composer.json @@ -10,6 +10,6 @@ "sort-packages": true }, "require": { - "civicrm/civicrm-core": "^5.72" + "civicrm/civicrm-core": "^5.80" } } diff --git a/info.xml b/info.xml index f0884709..ba5dfeab 100644 --- a/info.xml +++ b/info.xml @@ -14,11 +14,11 @@ https://github.com/systopia/funding/issues https://www.gnu.org/licenses/agpl-3.0.html - + 0.17-dev dev - 5.72 + 5.80 diff --git a/managed/SavedSearch_Drawdowns_by_Recipient_and_Funding_Program.mgd.php b/managed/SavedSearch_Drawdowns_by_Recipient_and_Funding_Program.mgd.php index 925ae7d6..4b008eb5 100644 --- a/managed/SavedSearch_Drawdowns_by_Recipient_and_Funding_Program.mgd.php +++ b/managed/SavedSearch_Drawdowns_by_Recipient_and_Funding_Program.mgd.php @@ -137,6 +137,15 @@ 'tally' => [ 'fn' => 'SUM', ], + 'rewrite' => '', + ], + [ + 'type' => 'field', + 'key' => 'COUNT_id', + 'dataType' => 'Integer', + 'label' => E::ts('Withdrawable Funds'), + 'sortable' => TRUE, + 'rewrite' => '{($SUM_amount_approved - $SUM_FundingCase_FundingPayoutProcess_funding_case_id_01_FundingPayoutProcess_FundingDrawdown_payout_process_id_01_amount_paid_out)|crmMoney:$currency}', ], [ 'type' => 'field',