<log>true</log>
<field>
<name>id</name>
+ <title>Line Item ID</title>
<type>int unsigned</type>
<required>true</required>
<comment>Line Item</comment>
</primaryKey>
<field>
<name>entity_table</name>
+ <title>Line Item Entity Type</title>
<type>varchar</type>
<length>64</length>
<required>true</required>
</field>
<field>
<name>entity_id</name>
+ <title>Line Item Entity</title>
<type>int unsigned</type>
<required>true</required>
<comment>entry in table</comment>
</dynamicForeignKey>
<field>
<name>contribution_id</name>
+ <title>Line Item Contribution</title>
<type>int unsigned</type>
<comment>FK to civicrm_contribution</comment>
<add>4.5</add>
</foreignKey>
<field>
<name>price_field_id</name>
+ <title>Line Item Price Field</title>
<type>int unsigned</type>
<comment>FK to civicrm_price_field</comment>
<!-- changed to not required in 4.3 in order to change ON DELETE CASCADE FK constraint to SET NULL -->
</foreignKey>
<field>
<name>option_group_id</name>
+ <title>Line Item Option Group</title>
<type>int unsigned</type>
<required>true</required>
<comment>FK to option group</comment>
</field>
<field>
<name>label</name>
+ <title>Line Item Label</title>
<type>varchar</type>
<length>255</length>
<default>NULL</default>
</field>
<field>
<name>qty</name>
- <type>int unsigned</type>
+ <title>Line Item Quantity</title>
+ <type>decimal</type>
<required>true</required>
<comment>How many items ordered</comment>
<add>1.7</add>
</field>
<field>
<name>line_total</name>
+ <title>Line Item Total</title>
<type>decimal</type>
<required>true</required>
<comment>qty * unit_price</comment>
</field>
<field>
<name>participant_count</name>
+ <title>Line Item Participant Count</title>
<type>int unsigned</type>
<default>NULL</default>
- <comment>Participant count for fiel
+ <comment>Participant count for field</comment>
<html>
<type>Text</type>
- </html>d</comment>
+ </html>
<add>3.2</add>
</field>
</index>
<field>
<name>price_field_value_id</name>
+ <title>Line Item Option</title>
<type>int unsigned</type>
<default>NULL</default>
<comment>FK to civicrm_price_field_value</comment>
<type>Text</type>
</html>
</field>
+ <field>
+ <name>tax_amount</name>
+ <title>Tax Amount</title>
+ <type>decimal</type>
+ <import>true</import>
+ <headerPattern>/tax(.?am(ou)?nt)?/i</headerPattern>
+ <dataPattern>/^\d+(\.\d{2})?$/</dataPattern>
+ <comment>tax of each item</comment>
+ <add>4.6</add>
+ <html>
+ <type>Text</type>
+ </html>
+ </field>
</table>