Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | <?xml version="1.0" encoding="iso-8859-1" ?> |
2 | ||
3 | <table> | |
4 | <base>CRM/Price</base> | |
9da8dc8c | 5 | <class>PriceFieldValue</class> |
6a488035 TO |
6 | <name>civicrm_price_field_value</name> |
7 | <add>3.3</add> | |
d31fb4e3 | 8 | <component>CiviContribute</component> |
6a488035 TO |
9 | <field> |
10 | <name>id</name> | |
021ad66c | 11 | <title>Price Field Value ID</title> |
6a488035 TO |
12 | <type>int unsigned</type> |
13 | <required>true</required> | |
14 | <comment>Price Field Value</comment> | |
0481e12c A |
15 | <html> |
16 | <type>Number</type> | |
17 | </html> | |
6a488035 TO |
18 | <add>3.3</add> |
19 | </field> | |
20 | <primaryKey> | |
21 | <name>id</name> | |
22 | <autoincrement>true</autoincrement> | |
23 | </primaryKey> | |
24 | <field> | |
25 | <name>price_field_id</name> | |
57e94608 | 26 | <title>Price Field ID</title> |
6a488035 TO |
27 | <type>int unsigned</type> |
28 | <required>true</required> | |
29 | <comment>FK to civicrm_price_field</comment> | |
57e94608 A |
30 | <html> |
31 | <label>Price Field</label> | |
32 | </html> | |
6a488035 TO |
33 | <add>3.3</add> |
34 | </field> | |
35 | <foreignKey> | |
36 | <name>price_field_id</name> | |
37 | <table>civicrm_price_field</table> | |
38 | <key>id</key> | |
39 | <add>3.3</add> | |
40 | </foreignKey> | |
41 | <field> | |
42 | <name>name</name> | |
43 | <type>varchar</type> | |
44 | <title>Name</title> | |
45 | <length>255</length> | |
46 | <comment>Price field option name</comment> | |
614d72ec | 47 | <html> |
48 | <type>Text</type> | |
49 | </html> | |
6a488035 | 50 | <add>3.3</add> |
7154c2c0 | 51 | <default>NULL</default> |
6a488035 TO |
52 | </field> |
53 | <field> | |
54 | <name>label</name> | |
55 | <type>varchar</type> | |
56 | <title>Label</title> | |
57 | <length>255</length> | |
58 | <localizable>true</localizable> | |
59 | <comment>Price field option label</comment> | |
614d72ec | 60 | <html> |
61 | <type>Text</type> | |
6cc0b7bd | 62 | </html> |
6a488035 | 63 | <add>3.3</add> |
7154c2c0 | 64 | <default>NULL</default> |
6a488035 TO |
65 | </field> |
66 | <field> | |
67 | <name>description</name> | |
68 | <type>text</type> | |
7deea513 | 69 | <html> |
70 | <type>TextArea</type> | |
614d72ec | 71 | <rows>2</rows> |
5435b737 | 72 | <cols>60</cols> |
fd735f54 | 73 | <label>Description</label> |
614d72ec | 74 | </html> |
6cc0b7bd | 75 | <default>NULL</default> |
6a488035 | 76 | <localizable>true</localizable> |
509c8089 | 77 | <comment>Price field option description.</comment> |
6a488035 TO |
78 | <add>3.3</add> |
79 | </field> | |
5bfef8fa SL |
80 | <field> |
81 | <name>help_pre</name> | |
82 | <type>text</type> | |
83 | <html> | |
84 | <type>TextArea</type> | |
85 | <rows>2</rows> | |
86 | <cols>60</cols> | |
fd735f54 | 87 | <label>Pre Help</label> |
5bfef8fa SL |
88 | </html> |
89 | <default>NULL</default> | |
90 | <localizable>true</localizable> | |
91 | <comment>Price field option pre help text.</comment> | |
92 | <add>4.7</add> | |
93 | </field> | |
94 | <field> | |
95 | <name>help_post</name> | |
96 | <type>text</type> | |
97 | <html> | |
98 | <type>TextArea</type> | |
99 | <rows>2</rows> | |
100 | <cols>60</cols> | |
fd735f54 | 101 | <label>Post Help</label> |
5bfef8fa SL |
102 | </html> |
103 | <default>NULL</default> | |
104 | <localizable>true</localizable> | |
105 | <comment>Price field option post field help.</comment> | |
106 | <add>4.7</add> | |
107 | </field> | |
6a488035 TO |
108 | <field> |
109 | <name>amount</name> | |
25e0f950 | 110 | <type>decimal</type> |
6a488035 | 111 | <title>Amount</title> |
25e0f950 | 112 | <length>18,9</length> |
614d72ec | 113 | <html> |
114 | <type>Text</type> | |
54f5e87f | 115 | <size>8</size> |
614d72ec | 116 | </html> |
6a488035 TO |
117 | <required>true</required> |
118 | <comment>Price field option amount</comment> | |
119 | <add>3.3</add> | |
120 | </field> | |
121 | <field> | |
122 | <name>count</name> | |
123 | <type>int unsigned</type> | |
124 | <default>NULL</default> | |
125 | <comment>Number of participants per field option</comment> | |
126 | <add>3.3</add> | |
614d72ec | 127 | <html> |
128 | <type>Text</type> | |
fd735f54 | 129 | <label>Count</label> |
614d72ec | 130 | </html> |
6a488035 TO |
131 | </field> |
132 | <field> | |
133 | <name>max_value</name> | |
134 | <type>int unsigned</type> | |
135 | <default>NULL</default> | |
136 | <comment>Max number of participants per field options</comment> | |
137 | <add>3.3</add> | |
614d72ec | 138 | <html> |
139 | <type>Text</type> | |
fd735f54 | 140 | <label>Max Value</label> |
614d72ec | 141 | </html> |
6a488035 TO |
142 | </field> |
143 | <field> | |
144 | <name>weight</name> | |
7ecddde4 | 145 | <title>Order</title> |
6a488035 TO |
146 | <type>int</type> |
147 | <default>1</default> | |
148 | <comment>Order in which the field options should appear</comment> | |
149 | <add>3.3</add> | |
614d72ec | 150 | <html> |
151 | <type>Text</type> | |
152 | </html> | |
6a488035 TO |
153 | </field> |
154 | <field> | |
155 | <name>membership_type_id</name> | |
57e94608 | 156 | <title>Membership Type ID</title> |
6a488035 TO |
157 | <type>int unsigned</type> |
158 | <default>NULL</default> | |
159 | <comment>FK to Membership Type</comment> | |
614d72ec | 160 | <html> |
161 | <type>Select</type> | |
57e94608 | 162 | <label>Membership Type</label> |
614d72ec | 163 | </html> |
6a488035 TO |
164 | <add>3.4</add> |
165 | </field> | |
6f3f0f22 | 166 | <foreignKey> |
167 | <name>membership_type_id</name> | |
168 | <table>civicrm_membership_type</table> | |
6a488035 TO |
169 | <key>id</key> |
170 | <add>3.4</add> | |
171 | <onDelete>SET NULL</onDelete> | |
172 | </foreignKey> | |
173 | <field> | |
174 | <name>membership_num_terms</name> | |
175 | <type>int unsigned</type> | |
176 | <default>NULL</default> | |
177 | <comment>Number of terms for this membership</comment> | |
178 | <add>4.3</add> | |
614d72ec | 179 | <html> |
180 | <type>Text</type> | |
fd735f54 | 181 | <label>Number of terms</label> |
614d72ec | 182 | </html> |
6a488035 TO |
183 | </field> |
184 | <field> | |
185 | <name>is_default</name> | |
021ad66c | 186 | <title>Is Default Price Field Option?</title> |
6a488035 TO |
187 | <type>boolean</type> |
188 | <comment>Is this default price field option</comment> | |
189 | <default>0</default> | |
190 | <add>3.3</add> | |
614d72ec | 191 | <html> |
192 | <type>CheckBox</type> | |
193 | </html> | |
6a488035 TO |
194 | </field> |
195 | <field> | |
196 | <name>is_active</name> | |
021ad66c | 197 | <title>Price Field Value is Active</title> |
6a488035 TO |
198 | <type>boolean</type> |
199 | <comment>Is this price field value active</comment> | |
200 | <default>1</default> | |
201 | <add>3.3</add> | |
202 | </field> | |
6f3f0f22 | 203 | <field> |
204 | <name>financial_type_id</name> | |
57e94608 | 205 | <title>Financial Type ID</title> |
6f3f0f22 | 206 | <type>int unsigned</type> |
6a488035 | 207 | <default>NULL</default> |
6cc0b7bd EM |
208 | <pseudoconstant> |
209 | <table>civicrm_financial_type</table> | |
210 | <keyColumn>id</keyColumn> | |
211 | <labelColumn>name</labelColumn> | |
212 | </pseudoconstant> | |
6a488035 | 213 | <comment>FK to Financial Type.</comment> |
6f3f0f22 | 214 | <add>4.3</add> |
614d72ec | 215 | <html> |
216 | <type>Select</type> | |
57e94608 | 217 | <label>Financial Type</label> |
614d72ec | 218 | </html> |
6f3f0f22 | 219 | </field> |
220 | <foreignKey> | |
221 | <name>financial_type_id</name> | |
222 | <table>civicrm_financial_type</table> | |
223 | <key>id</key> | |
6a488035 TO |
224 | <onDelete>SET NULL</onDelete> |
225 | <add>4.3</add> | |
6f3f0f22 | 226 | </foreignKey> |
227 | <field> | |
5afce5ad | 228 | <name>non_deductible_amount</name> |
229 | <title>Non-deductible Amount</title> | |
6f3f0f22 | 230 | <type>decimal</type> |
6a488035 | 231 | <default>0.0</default> |
5afce5ad | 232 | <headerPattern>/non?.?deduct/i</headerPattern> |
6a488035 | 233 | <dataPattern>/^\d+(\.\d{2})?$/</dataPattern> |
6f3f0f22 | 234 | <required>true</required> |
5afce5ad | 235 | <comment>Portion of total amount which is NOT tax deductible.</comment> |
236 | <add>4.7</add> | |
614d72ec | 237 | <html> |
238 | <type>Text</type> | |
239 | </html> | |
6f3f0f22 | 240 | </field> |
2db35bf6 AF |
241 | <field> |
242 | <name>visibility_id</name> | |
243 | <title>Price Field Option Visibility</title> | |
244 | <type>int unsigned</type> | |
245 | <default>1</default> | |
246 | <comment>Implicit FK to civicrm_option_group with name = 'visibility'</comment> | |
247 | <add>4.7</add> | |
248 | <pseudoconstant> | |
249 | <optionGroupName>visibility</optionGroupName> | |
250 | </pseudoconstant> | |
251 | <html> | |
252 | <type>Select</type> | |
253 | </html> | |
254 | </field> | |
6a488035 | 255 | </table> |