Commit | Line | Data |
---|---|---|
3c7d2158 | 1 | <?xml version="1.0" encoding="iso-8859-1" ?> |
6a488035 | 2 | |
3c7d2158 | 3 | <table> |
4 | <base>CRM/Contribute</base> | |
5 | <class>ContributionProduct</class> | |
6 | <name>civicrm_contribution_product</name> | |
7 | <add>1.4</add> | |
6a488035 | 8 | <log>true</log> |
3c7d2158 | 9 | <field> |
10 | <name>id</name> | |
6a488035 | 11 | <type>int unsigned</type> |
3c7d2158 | 12 | <required>true</required> |
13 | <add>1.4</add> | |
14 | </field> | |
15 | <primaryKey> | |
16 | <name>id</name> | |
17 | <autoincrement>true</autoincrement> | |
18 | </primaryKey> | |
19 | <field> | |
20 | <name>product_id</name> | |
21 | <type>int unsigned</type> | |
22 | <required>true</required> | |
23 | <add>1.4</add> | |
24 | </field> | |
25 | <field> | |
26 | <name>contribution_id</name> | |
27 | <type>int unsigned</type> | |
28 | <required>true</required> | |
29 | <add>1.4</add> | |
30 | </field> | |
31 | <foreignKey> | |
32 | <name>contribution_id</name> | |
33 | <table>civicrm_contribution</table> | |
34 | <key>id</key> | |
35 | <add>1.4</add> | |
6a488035 | 36 | <onDelete>CASCADE</onDelete> |
3c7d2158 | 37 | </foreignKey> |
38 | <field> | |
39 | <name>product_option</name> | |
6a488035 | 40 | <title>Product Option</title> |
3c7d2158 | 41 | <type>varchar</type> |
6a488035 TO |
42 | <length>255</length> |
43 | <export>true</export> | |
3c7d2158 | 44 | <comment>Option value selected if applicable - e.g. color, size etc.</comment> |
45 | <add>1.4</add> | |
46 | </field> | |
47 | <field> | |
48 | <name>quantity</name> | |
6a488035 TO |
49 | <title>Quantity</title> |
50 | <type>int</type> | |
51 | <value>1</value> | |
52 | <export>true</export> | |
3c7d2158 | 53 | <comment></comment> |
54 | <add>1.4</add> | |
55 | </field> | |
56 | <field> | |
57 | <name>total_cost</name> | |
58 | <type>decimal</type> | |
6a488035 TO |
59 | <required>true</required> |
60 | <import>true</import> | |
61 | <headerPattern>/^total|(.?^am(ou)?nt)/i</headerPattern> | |
62 | <dataPattern>/^\d+(\.\d{2})?$/</dataPattern> | |
3c7d2158 | 63 | <comment>quantity X civicrm_product.cost.</comment> |
64 | <add>1.3</add> | |
6a488035 TO |
65 | <drop>4.1</drop> |
66 | </field> | |
3c7d2158 | 67 | <field> |
68 | <name>fulfilled_date</name> | |
6a488035 TO |
69 | <type>date</type> |
70 | <export>true</export> | |
3c7d2158 | 71 | <comment>Optional. Can be used to record the date this product was fulfilled or shipped.</comment> |
72 | <add>1.4</add> | |
73 | </field> | |
74 | <field> | |
75 | <name>start_date</name> | |
6a488035 | 76 | <uniqueName>contribution_start_date</uniqueName> |
3c7d2158 | 77 | <type>date</type> |
6a488035 | 78 | <export>true</export> |
3c7d2158 | 79 | <comment>Actual start date for a time-delimited premium (subscription, service or membership)</comment> |
80 | <add>1.4</add> | |
6a488035 | 81 | </field> |
3c7d2158 | 82 | <field> |
83 | <name>end_date</name> | |
6a488035 TO |
84 | <uniqueName>contribution_end_date</uniqueName> |
85 | <type>date</type> | |
86 | <export>true</export> | |
3c7d2158 | 87 | <comment>Actual end date for a time-delimited premium (subscription, service or membership)</comment> |
88 | <add>1.4</add> | |
6a488035 | 89 | </field> |
3c7d2158 | 90 | <field> |
91 | <name>comment</name> | |
92 | <type>text</type> | |
93 | <add>1.4</add> | |
6a488035 | 94 | </field> |
3c7d2158 | 95 | <field> |
96 | <name>financial_type_id</name> | |
6a488035 | 97 | <title>Financial Type</title> |
3c7d2158 | 98 | <type>int unsigned</type> |
6a488035 TO |
99 | <default>NULL</default> |
100 | <comment>FK to Financial Type(for membership price sets only).</comment> | |
3c7d2158 | 101 | <add>4.3</add> |
102 | </field> | |
103 | <foreignKey> | |
104 | <name>financial_type_id</name> | |
105 | <table>civicrm_financial_type</table> | |
106 | <key>id</key> | |
6a488035 TO |
107 | <onDelete>SET NULL</onDelete> |
108 | <add>4.3</add> | |
3c7d2158 | 109 | </foreignKey> |
6a488035 | 110 | </table> |