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> | |
10 | <type>int unsigned</type> | |
11 | <required>true</required> | |
12 | <comment>Price Field Value</comment> | |
13 | <add>3.3</add> | |
14 | </field> | |
15 | <primaryKey> | |
16 | <name>id</name> | |
17 | <autoincrement>true</autoincrement> | |
18 | </primaryKey> | |
19 | <field> | |
20 | <name>price_field_id</name> | |
21 | <type>int unsigned</type> | |
22 | <required>true</required> | |
23 | <comment>FK to civicrm_price_field</comment> | |
24 | <add>3.3</add> | |
25 | </field> | |
26 | <foreignKey> | |
27 | <name>price_field_id</name> | |
28 | <table>civicrm_price_field</table> | |
29 | <key>id</key> | |
30 | <add>3.3</add> | |
31 | </foreignKey> | |
32 | <field> | |
33 | <name>name</name> | |
34 | <type>varchar</type> | |
35 | <title>Name</title> | |
36 | <length>255</length> | |
37 | <comment>Price field option name</comment> | |
614d72ec | 38 | <html> |
39 | <type>Text</type> | |
40 | </html> | |
6a488035 TO |
41 | <add>3.3</add> |
42 | </field> | |
43 | <field> | |
44 | <name>label</name> | |
45 | <type>varchar</type> | |
46 | <title>Label</title> | |
47 | <length>255</length> | |
48 | <localizable>true</localizable> | |
49 | <comment>Price field option label</comment> | |
614d72ec | 50 | <html> |
51 | <type>Text</type> | |
6cc0b7bd | 52 | </html> |
6a488035 TO |
53 | <add>3.3</add> |
54 | </field> | |
55 | <field> | |
56 | <name>description</name> | |
57 | <type>text</type> | |
7deea513 | 58 | <html> |
59 | <type>TextArea</type> | |
614d72ec | 60 | <rows>2</rows> |
6a488035 | 61 | <cols>60</cols> |
614d72ec | 62 | </html> |
6cc0b7bd | 63 | <default>NULL</default> |
6a488035 TO |
64 | <localizable>true</localizable> |
65 | <comment>>Price field option description.</comment> | |
66 | <add>3.3</add> | |
67 | </field> | |
68 | <field> | |
69 | <name>amount</name> | |
70 | <type>varchar</type> | |
71 | <title>Amount</title> | |
72 | <length>512</length> | |
614d72ec | 73 | <html> |
74 | <type>Text</type> | |
75 | <size>EIGHT</size> | |
76 | </html> | |
6a488035 TO |
77 | <required>true</required> |
78 | <comment>Price field option amount</comment> | |
79 | <add>3.3</add> | |
80 | </field> | |
81 | <field> | |
82 | <name>count</name> | |
83 | <type>int unsigned</type> | |
84 | <default>NULL</default> | |
85 | <comment>Number of participants per field option</comment> | |
86 | <add>3.3</add> | |
614d72ec | 87 | <html> |
88 | <type>Text</type> | |
89 | </html> | |
6a488035 TO |
90 | </field> |
91 | <field> | |
92 | <name>max_value</name> | |
93 | <type>int unsigned</type> | |
94 | <default>NULL</default> | |
95 | <comment>Max number of participants per field options</comment> | |
96 | <add>3.3</add> | |
614d72ec | 97 | <html> |
98 | <type>Text</type> | |
99 | </html> | |
6a488035 TO |
100 | </field> |
101 | <field> | |
102 | <name>weight</name> | |
103 | <type>int</type> | |
104 | <default>1</default> | |
105 | <comment>Order in which the field options should appear</comment> | |
106 | <add>3.3</add> | |
614d72ec | 107 | <html> |
108 | <type>Text</type> | |
109 | </html> | |
6a488035 TO |
110 | </field> |
111 | <field> | |
112 | <name>membership_type_id</name> | |
113 | <type>int unsigned</type> | |
114 | <default>NULL</default> | |
115 | <comment>FK to Membership Type</comment> | |
614d72ec | 116 | <html> |
117 | <type>Select</type> | |
118 | </html> | |
6a488035 TO |
119 | <add>3.4</add> |
120 | </field> | |
6f3f0f22 | 121 | <foreignKey> |
122 | <name>membership_type_id</name> | |
123 | <table>civicrm_membership_type</table> | |
6a488035 TO |
124 | <key>id</key> |
125 | <add>3.4</add> | |
126 | <onDelete>SET NULL</onDelete> | |
127 | </foreignKey> | |
128 | <field> | |
129 | <name>membership_num_terms</name> | |
130 | <type>int unsigned</type> | |
131 | <default>NULL</default> | |
132 | <comment>Number of terms for this membership</comment> | |
133 | <add>4.3</add> | |
614d72ec | 134 | <html> |
135 | <type>Text</type> | |
136 | </html> | |
6a488035 TO |
137 | </field> |
138 | <field> | |
139 | <name>is_default</name> | |
140 | <type>boolean</type> | |
141 | <comment>Is this default price field option</comment> | |
142 | <default>0</default> | |
143 | <add>3.3</add> | |
614d72ec | 144 | <html> |
145 | <type>CheckBox</type> | |
146 | </html> | |
6a488035 TO |
147 | </field> |
148 | <field> | |
149 | <name>is_active</name> | |
150 | <type>boolean</type> | |
151 | <comment>Is this price field value active</comment> | |
152 | <default>1</default> | |
153 | <add>3.3</add> | |
154 | </field> | |
6f3f0f22 | 155 | <field> |
156 | <name>financial_type_id</name> | |
6a488035 | 157 | <title>Financial Type</title> |
6f3f0f22 | 158 | <type>int unsigned</type> |
6a488035 | 159 | <default>NULL</default> |
6cc0b7bd EM |
160 | <pseudoconstant> |
161 | <table>civicrm_financial_type</table> | |
162 | <keyColumn>id</keyColumn> | |
163 | <labelColumn>name</labelColumn> | |
164 | </pseudoconstant> | |
6a488035 | 165 | <comment>FK to Financial Type.</comment> |
6f3f0f22 | 166 | <add>4.3</add> |
614d72ec | 167 | <html> |
168 | <type>Select</type> | |
169 | </html> | |
6f3f0f22 | 170 | </field> |
171 | <foreignKey> | |
172 | <name>financial_type_id</name> | |
173 | <table>civicrm_financial_type</table> | |
174 | <key>id</key> | |
6a488035 TO |
175 | <onDelete>SET NULL</onDelete> |
176 | <add>4.3</add> | |
6f3f0f22 | 177 | </foreignKey> |
178 | <field> | |
179 | <name>deductible_amount</name> | |
6a488035 | 180 | <title>Deductible Amount</title> |
6f3f0f22 | 181 | <type>decimal</type> |
6a488035 TO |
182 | <default>0.0</default> |
183 | <headerPattern>/unit?.?amoun/i</headerPattern> | |
184 | <dataPattern>/^\d+(\.\d{2})?$/</dataPattern> | |
6f3f0f22 | 185 | <required>true</required> |
6a488035 | 186 | <comment>Tax-deductible portion of the amount</comment> |
6f3f0f22 | 187 | <add>4.1</add> |
614d72ec | 188 | <html> |
189 | <type>Text</type> | |
190 | </html> | |
6f3f0f22 | 191 | </field> |
6a488035 TO |
192 | </table> |
193 |