diff --git a/CRM/Member/DAO/MembershipType.php b/CRM/Member/DAO/MembershipType.php index b0e32cc43bd1..3077ceba0fa0 100644 --- a/CRM/Member/DAO/MembershipType.php +++ b/CRM/Member/DAO/MembershipType.php @@ -30,7 +30,7 @@ * * 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'; @@ -299,8 +299,8 @@ static function &fields() { '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', diff --git a/CRM/Price/DAO/PriceFieldValue.php b/CRM/Price/DAO/PriceFieldValue.php index f9de529cfa92..fb0465b855a2 100644 --- a/CRM/Price/DAO/PriceFieldValue.php +++ b/CRM/Price/DAO/PriceFieldValue.php @@ -30,7 +30,7 @@ * * 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'; @@ -95,7 +95,7 @@ class CRM_Price_DAO_PriceFieldValue extends CRM_Core_DAO { /** * Price field option amount * - * @var string + * @var float */ public $amount; /** @@ -292,12 +292,14 @@ static function &fields() { ) , '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', diff --git a/xml/schema/Member/MembershipType.xml b/xml/schema/Member/MembershipType.xml index e1cca9d096b1..6b6f92682292 100644 --- a/xml/schema/Member/MembershipType.xml +++ b/xml/schema/Member/MembershipType.xml @@ -116,6 +116,7 @@ minimum_fee membership Type Minimum Fee decimal + 18,9 Minimum fee for this membership (0 for free/complimentary memberships). 0 1.5 diff --git a/xml/schema/Price/PriceFieldValue.xml b/xml/schema/Price/PriceFieldValue.xml index b68992a1b454..03cc83453d5f 100644 --- a/xml/schema/Price/PriceFieldValue.xml +++ b/xml/schema/Price/PriceFieldValue.xml @@ -95,9 +95,9 @@ amount - varchar + decimal Amount - 512 + 18,9 Text 8