Skip to content
Snippets Groups Projects
Commit 5e3ac055 authored by Dave Greenberg's avatar Dave Greenberg
Browse files

Merge pull request #1210 from pradpnayak/CRM-13065

-- fixed for CRM-13065
parents 0cf5d9aa abe9581c
No related branches found
No related tags found
No related merge requests found
......@@ -330,7 +330,7 @@ ADD CONSTRAINT `FK_civicrm_financial_item_contact_id` FOREIGN KEY (`contact_id`)
$upgrade = new CRM_Upgrade_Form();
//here we update price set entries
$sqlFinancialIds = "
SELECT id, name
SELECT id, LCASE(name) name
FROM civicrm_financial_type
WHERE name IN ('Donation', 'Event Fee', 'Member Dues');
";
......@@ -342,9 +342,9 @@ WHERE name IN ('Donation', 'Event Fee', 'Member Dues');
UPDATE civicrm_price_set ps
SET ps.financial_type_id =
CASE
WHEN ps.extends LIKE '%1%' THEN {$financialIds['Event Fee']}
WHEN ps.extends LIKE '2' THEN {$financialIds['Donation']}
WHEN ps.extends LIKE '3' THEN {$financialIds['Member Dues']}
WHEN ps.extends LIKE '%1%' THEN {$financialIds['event fee']}
WHEN ps.extends LIKE '2' THEN {$financialIds['donation']}
WHEN ps.extends LIKE '3' THEN {$financialIds['member dues']}
END
WHERE financial_type_id IS NULL
";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment