- <name>min_contribution</name>
- <title>Minimum Contribution</title>
- <type>decimal</type>
- <comment>Minimum contribution required to be eligible to select this premium.</comment>
- <add>1.4</add>
- </field>
- <field>
- <name>cost</name>
- <title>Cost</title>
- <type>decimal</type>
- <comment>Actual cost of this product. Useful to determine net return from sale or using this as an incentive.</comment>
- <add>1.4</add>
- </field>
- <field>
- <name>is_active</name>
- <title>Is Active</title>
- <type>boolean</type>
- <required>true</required>
- <comment>Disabling premium removes it from the premiums_premium join table below.</comment>
- <add>1.4</add>
- </field>
- <field>
- <name>period_type</name>
- <title>Period Type</title>
- <type>varchar</type>
- <length>8</length>
- <default>'rolling'</default>
- <comment>Rolling means we set start/end based on current day, fixed means we set start/end for current year or month
-(e.g. 1 year + fixed -> we would set start/end for 1/1/06 thru 12/31/06 for any premium chosen in 2006) </comment>
- <pseudoconstant>
- <callback>CRM_Core_SelectValues::periodType</callback>
- </pseudoconstant>
- <add>1.4</add>
- <html>
- <type>Select</type>
- </html>
- </field>
- <field>
- <name>fixed_period_start_day</name>
- <title>Fixed Period Start Day</title>
- <type>int</type>
- <default>0101</default>
- <comment>Month and day (MMDD) that fixed period type subscription or membership starts.</comment>
- <add>1.4</add>
- </field>
- <field>
- <name>duration_unit</name>
- <title>Duration Unit</title>
- <type>varchar</type>
- <length>8</length>
- <default>'year'</default>
- <pseudoconstant>
- <callback>CRM_Core_SelectValues::getPremiumUnits</callback>
- </pseudoconstant>
- <add>1.4</add>
- <html>
- <type>Select</type>
- </html>
- </field>
- <field>
- <name>duration_interval</name>
- <title>Duration Interval</title>
- <type>int</type>
- <comment>Number of units for total duration of subscription, service, membership (e.g. 12 Months).</comment>
- <add>1.4</add>
- </field>
- <field>
- <name>frequency_unit</name>
- <title>Frequency Unit</title>
- <type>varchar</type>
- <length>8</length>
- <default>'month'</default>
- <comment>Frequency unit and interval allow option to store actual delivery frequency for a subscription or service.</comment>
- <pseudoconstant>
- <callback>CRM_Core_SelectValues::getPremiumUnits</callback>
- </pseudoconstant>
- <add>1.4</add>
- <html>
- <type>Select</type>
- </html>
- </field>
- <field>
- <name>frequency_interval</name>
- <title>Frequency Interval</title>
- <type>int</type>
- <comment>Number of units for delivery frequency of subscription, service, membership (e.g. every 3 Months).</comment>
- <add>1.4</add>
+ <name>min_contribution</name>
+ <title>Minimum Contribution</title>
+ <type>decimal</type>
+ <comment>Minimum contribution required to be eligible to select this premium.</comment>
+ <add>1.4</add>
+ </field>
+ <field>
+ <name>cost</name>
+ <title>Cost</title>
+ <type>decimal</type>
+ <comment>Actual cost of this product. Useful to determine net return from sale or using this as an incentive.</comment>
+ <add>1.4</add>
+ </field>
+ <field>
+ <name>is_active</name>
+ <title>Is Active</title>
+ <type>boolean</type>
+ <required>true</required>
+ <comment>Disabling premium removes it from the premiums_premium join table below.</comment>
+ <add>1.4</add>
+ </field>
+ <field>
+ <name>period_type</name>
+ <title>Period Type</title>
+ <type>varchar</type>
+ <length>8</length>
+ <default>'rolling'</default>
+ <comment>Rolling means we set start/end based on current day, fixed means we set start/end for current year or month
+ (e.g. 1 year + fixed -> we would set start/end for 1/1/06 thru 12/31/06 for any premium chosen in 2006) </comment>
+ <pseudoconstant>
+ <callback>CRM_Core_SelectValues::periodType</callback>
+ </pseudoconstant>
+ <add>1.4</add>
+ <html>
+ <type>Select</type>
+ </html>
+ </field>
+ <field>
+ <name>fixed_period_start_day</name>
+ <title>Fixed Period Start Day</title>
+ <type>int</type>
+ <default>0101</default>
+ <comment>Month and day (MMDD) that fixed period type subscription or membership starts.</comment>
+ <add>1.4</add>
+ </field>
+ <field>
+ <name>duration_unit</name>
+ <title>Duration Unit</title>
+ <type>varchar</type>
+ <length>8</length>
+ <default>'year'</default>
+ <pseudoconstant>
+ <callback>CRM_Core_SelectValues::getPremiumUnits</callback>
+ </pseudoconstant>
+ <add>1.4</add>
+ <html>
+ <type>Select</type>
+ </html>
+ </field>
+ <field>
+ <name>duration_interval</name>
+ <title>Duration Interval</title>
+ <type>int</type>
+ <comment>Number of units for total duration of subscription, service, membership (e.g. 12 Months).</comment>
+ <add>1.4</add>
+ </field>
+ <field>
+ <name>frequency_unit</name>
+ <title>Frequency Unit</title>
+ <type>varchar</type>
+ <length>8</length>
+ <default>'month'</default>
+ <comment>Frequency unit and interval allow option to store actual delivery frequency for a subscription or service.</comment>
+ <pseudoconstant>
+ <callback>CRM_Core_SelectValues::getPremiumUnits</callback>
+ </pseudoconstant>
+ <add>1.4</add>
+ <html>
+ <type>Select</type>
+ </html>
+ </field>
+ <field>
+ <name>frequency_interval</name>
+ <title>Frequency Interval</title>
+ <type>int</type>
+ <comment>Number of units for delivery frequency of subscription, service, membership (e.g. every 3 Months).</comment>
+ <add>1.4</add>