*
* Generated from xml/schema/CRM/Member/MembershipType.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:22af2c3f87df3ad7cf2002c145f53cc6)
+ * (GenCodeChecksum:c86019d4817d79e1dd59d69eaa2a3eb6)
*/
require_once 'CRM/Core/DAO.php';
require_once 'CRM/Utils/Type.php';
'title' => ts('membership Type Minimum Fee') ,
'description' => 'Minimum fee for this membership (0 for free/complimentary memberships).',
'precision' => array(
- 20,
- 2
+ 18,
+ 9
) ,
'table_name' => 'civicrm_membership_type',
'entity' => 'MembershipType',
*
* Generated from xml/schema/CRM/Price/PriceFieldValue.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:d5b9853fb1321ad9872ce5b11a582d81)
+ * (GenCodeChecksum:fed218269d1baab495490130b4e2442a)
*/
require_once 'CRM/Core/DAO.php';
require_once 'CRM/Utils/Type.php';
/**
* Price field option amount
*
- * @var string
+ * @var float
*/
public $amount;
/**
) ,
'amount' => array(
'name' => 'amount',
- 'type' => CRM_Utils_Type::T_STRING,
+ 'type' => CRM_Utils_Type::T_MONEY,
'title' => ts('Amount') ,
'description' => 'Price field option amount',
'required' => true,
- 'maxlength' => 512,
- 'size' => 8,
+ 'precision' => array(
+ 18,
+ 9
+ ) ,
'table_name' => 'civicrm_price_field_value',
'entity' => 'PriceFieldValue',
'bao' => 'CRM_Price_BAO_PriceFieldValue',
UPDATE `civicrm_state_province` SET `name` = 'Timiș' WHERE `name` = 'Timis' AND `country_id` = 1176;
UPDATE `civicrm_state_province` SET `name` = 'Vâlcea' WHERE `name` = 'Valcea' AND `country_id` = 1176;
UPDATE `civicrm_state_province` SET `name` = 'Pazardzhik' WHERE `name` = 'Pazardzik' AND `country_id` = 1033;
+
+-- CRM-20772 Price set calculation precision when sales tax enabled
+ALTER TABLE `civicrm_membership_type` CHANGE `minimum_fee` `minimum_fee` DECIMAL(18,9) NULL DEFAULT '0.00' COMMENT 'Minimum fee for this membership (0 for free/complimentary memberships).';
+ALTER TABLE `civicrm_price_field_value` CHANGE `amount` `amount` DECIMAL(18,9) NOT NULL COMMENT 'Price field option amount';
<name>minimum_fee</name>
<title>membership Type Minimum Fee</title>
<type>decimal</type>
+ <length>18,9</length>
<comment>Minimum fee for this membership (0 for free/complimentary memberships).</comment>
<default>0</default>
<add>1.5</add>
</field>
<field>
<name>amount</name>
- <type>varchar</type>
+ <type>decimal</type>
<title>Amount</title>
- <length>512</length>
+ <length>18,9</length>
<html>
<type>Text</type>
<size>8</size>