Commit b3c53959 authored by Klaas Eikelboom's avatar Klaas Eikelboom
Browse files

Renamed the calculation Percentage to Percentage change (to avoid confusion)

parent de733c94
# Version 1.37 (not yet released)
* Fixed #94. Renamed the calculation Percentage to Percentage change (to avoid confusion).
* Fixed #91. Duplicate column name 'participant_payment_participant_id' when a Data Processor is configured to use two or more Pariticipant Sources by !85
# Version 1.36
......
......@@ -34,4 +34,14 @@ class CRM_Dataprocessor_Upgrader extends CRM_Dataprocessor_Upgrader_Base {
return TRUE;
}
/**
* Rename field type calculations_percentage to calculations_percentage_change
*
* @return bool
*/
public function upgrade_1002() {
CRM_Core_DAO::executeQuery("UPDATE `civicrm_data_processor_field` SET `type`='calculations_percentage_change' WHERE `type` = 'calculations_percentage';");
return TRUE;
}
}
......@@ -187,7 +187,7 @@ class Factory {
$this->addOutputHandler('contribution_count', new Definition('Civi\DataProcessor\FieldOutputHandler\ContributionCountFieldOutputHandler'), E::ts('Contribution Count'));
$this->addOutputHandler('calculations_substract', new Definition('Civi\DataProcessor\FieldOutputHandler\Calculations\SubtractFieldOutputHandler'), E::ts('Calculations (on multiple fields): Subtract'));
$this->addOutputHandler('calculations_total', new Definition('Civi\DataProcessor\FieldOutputHandler\Calculations\TotalFieldOutputHandler'), E::ts('Calculations (on multiple fields): Adding up'));
$this->addOutputHandler('calculations_percentage', new Definition('Civi\DataProcessor\FieldOutputHandler\Calculations\PercentageFieldOutputHandler'), E::ts('Calculations (on multiple fields): Percentage'));
$this->addOutputHandler('calculations_percentage_change', new Definition('Civi\DataProcessor\FieldOutputHandler\Calculations\PercentageChangeFieldOutputHandler'), E::ts('Calculations (on multiple fields): Percentage Change'));
$this->addOutputHandler('aggregation_function', new Definition('Civi\DataProcessor\FieldOutputHandler\AggregateFunctionFieldOutputHandler'), E::ts('Aggregation function'));
$this->addOutputHandler('image', new Definition('Civi\DataProcessor\FieldOutputHandler\ImageFieldOutputHandler'), E::ts('Image'));
}
......
......@@ -14,7 +14,7 @@ use Civi\DataProcessor\FieldOutputHandler\FieldOutput;
use CRM_Dataprocessor_ExtensionUtil as E;
class PercentageFieldOutputHandler extends CalculationFieldOutputHandler {
class PercentageChangeFieldOutputHandler extends CalculationFieldOutputHandler {
/**
* @param array $rawRecord ,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment