1 <?xml version=
"1.0" encoding=
"iso-8859-1" ?>
4 <base>CRM/Contribute
</base>
5 <class>ContributionSoft
</class>
6 <name>civicrm_contribution_soft
</name>
9 <component>CiviContribute
</component>
12 <uniqueName>contribution_soft_id
</uniqueName>
13 <title>Soft Credit ID
</title>
14 <type>int unsigned
</type>
15 <required>true
</required>
17 <title>Soft Credit ID
</title>
18 <comment>Soft Credit ID
</comment>
23 <autoincrement>true
</autoincrement>
26 <name>contribution_id
</name>
27 <title>Soft Credit - Contribution ID
</title>
28 <type>int unsigned
</type>
29 <required>true
</required>
30 <comment>FK to contribution table.
</comment>
34 <name>contribution_id
</name>
35 <table>civicrm_contribution
</table>
38 <onDelete>CASCADE
</onDelete>
41 <name>contact_id
</name>
42 <uniqueName>contribution_soft_contact_id
</uniqueName>
43 <title>Soft Credit Contact ID
</title>
44 <type>int unsigned
</type>
45 <required>true
</required>
47 <headerPattern>/contact(.?id)?/i
</headerPattern>
48 <dataPattern>/^\d+$/
</dataPattern>
49 <comment>FK to Contact ID
</comment>
53 <name>contact_id
</name>
54 <table>civicrm_contact
</table>
57 <onDelete>CASCADE
</onDelete>
61 <title>Soft Credit Amount
</title>
63 <required>true
</required>
65 <headerPattern>/total(.?am(ou)?nt)?/i
</headerPattern>
66 <dataPattern>/^\d+(\.\d{
2})?$/
</dataPattern>
67 <comment>Amount of this soft credit.
</comment>
73 <title>Soft Contribution Currency
</title>
75 <default>NULL
</default>
76 <comment>3 character string, value from config setting or input via user.
</comment>
79 <table>civicrm_currency
</table>
80 <keyColumn>name
</keyColumn>
81 <labelColumn>full_name
</labelColumn>
82 <nameColumn>name
</nameColumn>
83 <abbrColumn>symbol
</abbrColumn>
91 <type>int unsigned
</type>
92 <title>Soft Contribution PCP
</title>
93 <default>NULL
</default>
94 <comment>FK to civicrm_pcp.id
</comment>
97 <table>civicrm_pcp
</table>
98 <keyColumn>id
</keyColumn>
99 <labelColumn>title
</labelColumn>
104 <table>civicrm_pcp
</table>
107 <onDelete>SET NULL
</onDelete>
110 <name>index_id
</name>
111 <fieldName>pcp_id
</fieldName>
115 <name>pcp_display_in_roll
</name>
117 <title>Soft Contribution Display on PCP
</title>
122 <name>pcp_roll_nickname
</name>
124 <title>Soft Contribution PCP Nickname
</title>
126 <default>NULL
</default>
130 <name>pcp_personal_note
</name>
132 <title>Soft Contribution PCP Note
</title>
135 <type>TextArea
</type>
137 <default>NULL
</default>
141 <name>soft_credit_type_id
</name>
142 <type>int unsigned
</type>
143 <default>NULL
</default>
144 <title>Soft Credit Type
</title>
146 <optionGroupName>soft_credit_type
</optionGroupName>
148 <comment>Soft Credit Type ID.Implicit FK to civicrm_option_value where option_group = soft_credit_type.
</comment>