Add html tag to all files in xml/schema
[civicrm-core.git] / xml / schema / Pledge / PledgePayment.xml
1 <?xml version="1.0" encoding="iso-8859-1" ?>
2
3 <table>
4 <base>CRM/Pledge</base>
5 <class>PledgePayment</class>
6 <name>civicrm_pledge_payment</name>
7 <comment>Pledge Payment</comment>
8 <add>2.1</add>
9 <log>true</log>
10 <component>CiviPledge</component>
11 <field>
12 <name>id</name>
13 <uniqueName>pledge_payment_id</uniqueName>
14 <title>Payment ID</title>
15 <type>int unsigned</type>
16 <required>true</required>
17 <import>true</import>
18 <html>
19 <type>Number</type>
20 </html>
21 <add>2.1</add>
22 </field>
23 <primaryKey>
24 <name>id</name>
25 <autoincrement>true</autoincrement>
26 </primaryKey>
27 <field>
28 <name>pledge_id</name>
29 <title>Pledge</title>
30 <type>int unsigned</type>
31 <required>true</required>
32 <comment>FK to Pledge table</comment>
33 <add>2.1</add>
34 </field>
35 <foreignKey>
36 <name>pledge_id</name>
37 <table>civicrm_pledge</table>
38 <key>id</key>
39 <add>2.1</add>
40 <onDelete>CASCADE</onDelete>
41 </foreignKey>
42 <field>
43 <name>contribution_id</name>
44 <title>Contribution</title>
45 <type>int unsigned</type>
46 <comment>FK to contribution table.</comment>
47 <add>2.1</add>
48 </field>
49 <foreignKey>
50 <name>contribution_id</name>
51 <table>civicrm_contribution</table>
52 <key>id</key>
53 <add>2.1</add>
54 <onDelete>CASCADE</onDelete>
55 </foreignKey>
56 <index>
57 <name>index_contribution_pledge</name>
58 <fieldName>contribution_id</fieldName>
59 <fieldName>pledge_id</fieldName>
60 <add>2.1</add>
61 </index>
62 <field>
63 <name>scheduled_amount</name>
64 <uniqueName>pledge_payment_scheduled_amount</uniqueName>
65 <title>Scheduled Amount</title>
66 <import>true</import>
67 <export>true</export>
68 <type>decimal</type>
69 <required>true</required>
70 <comment>Pledged amount for this payment (the actual contribution amount might be different).</comment>
71 <add>2.1</add>
72 </field>
73 <field>
74 <name>actual_amount</name>
75 <uniqueName>pledge_payment_actual_amount</uniqueName>
76 <title>Actual Amount</title>
77 <import>true</import>
78 <type>decimal</type>
79 <comment>Actual amount that is paid as the Pledged installment amount.</comment>
80 <add>3.2</add>
81 </field>
82 <field>
83 <name>currency</name>
84 <title>Currency</title>
85 <type>varchar</type>
86 <length>3</length>
87 <default>NULL</default>
88 <comment>3 character string, value from config setting or input via user.</comment>
89 <add>3.2</add>
90 <pseudoconstant>
91 <table>civicrm_currency</table>
92 <keyColumn>name</keyColumn>
93 <labelColumn>full_name</labelColumn>
94 <nameColumn>name</nameColumn>
95 <abbrColumn>symbol</abbrColumn>
96 </pseudoconstant>
97 <html>
98 <type>Select</type>
99 </html>
100 </field>
101 <field>
102 <name>scheduled_date</name>
103 <uniqueName>pledge_payment_scheduled_date</uniqueName>
104 <title>Scheduled Date</title>
105 <import>true</import>
106 <export>true</export>
107 <type>datetime</type>
108 <required>true</required>
109 <comment>The date the pledge payment is supposed to happen.</comment>
110 <add>2.1</add>
111 <html>
112 <type>Select Date</type>
113 <formatType>activityDate</formatType>
114 </html>
115 <uniqueTitle>Payment Scheduled</uniqueTitle>
116 </field>
117 <field>
118 <name>reminder_date</name>
119 <uniqueName>pledge_payment_reminder_date</uniqueName>
120 <title>Last Reminder</title>
121 <import>true</import>
122 <type>datetime</type>
123 <comment>The date that the most recent payment reminder was sent.</comment>
124 <add>2.1</add>
125 </field>
126 <field>
127 <name>reminder_count</name>
128 <uniqueName>pledge_payment_reminder_count</uniqueName>
129 <title>Reminders Sent</title>
130 <import>true</import>
131 <type>int unsigned</type>
132 <default>0</default>
133 <comment>The number of payment reminders sent.</comment>
134 <add>2.1</add>
135 </field>
136 <field>
137 <name>status_id</name>
138 <title>Payment Status</title>
139 <uniqueName>pledge_payment_status_id</uniqueName>
140 <import>true</import>
141 <export>false</export>
142 <type>int unsigned</type>
143 <add>2.1</add>
144 <pseudoconstant>
145 <optionGroupName>contribution_status</optionGroupName>
146 </pseudoconstant>
147 </field>
148 <index>
149 <name>index_status</name>
150 <fieldName>status_id</fieldName>
151 <add>2.1</add>
152 </index>
153 </table>