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