<add>3.2</add>
<field>
<name>id</name>
+ <title>Entity Financial Transaction ID</title>
<type>int unsigned</type>
<required>true</required>
<comment>ID</comment>
</primaryKey>
<field>
<name>entity_table</name>
+ <title>Entity Table</title>
<type>varchar</type>
<length>64</length>
<required>true</required>
</field>
<field>
<name>entity_id</name>
+ <title>Entity ID</title>
<type>int unsigned</type>
<required>true</required>
<add>3.2</add>
</dynamicForeignKey>
<field>
<name>financial_trxn_id</name>
+ <title>Financial Transaction Id</title>
<type>int unsigned</type>
<add>3.2</add>
</field>
</foreignKey>
<field>
<name>amount</name>
+ <title>Amount</title>
<type>decimal</type>
<required>true</required>
<import>true</import>
<log>true</log>
<field>
<name>id</name>
+ <title>Financial Transaction ID</title>
<type>int unsigned</type>
<required>true</required>
<add>1.3</add>
<field>
<name>from_financial_account_id</name>
<type>int unsigned</type>
+ <title>Financial Transaction From Account</title>
<comment>FK to financial_account table.</comment>
<add>4.3</add>
<pseudoconstant>
</foreignKey>
<field>
<name>to_financial_account_id</name>
+ <title>Financial Transaction To Account</title>
<type>int unsigned</type>
<comment>FK to financial_financial_account table.</comment>
<add>4.3</add>
</foreignKey>
<field>
<name>trxn_date</name>
+ <title>Financial Transaction Date</title>
<type>datetime</type>
<default>NULL</default>
<comment>date transaction occurred</comment>
</field>
<field>
<name>trxn_type</name>
+ <title>Financial Transaction Type</title>
<type>enum</type>
<values>Debit,Credit</values>
<required>true</required>
</field>
<field>
<name>total_amount</name>
+ <title>Financial Total Amount</title>
<type>decimal</type>
<required>true</required>
<comment>amount of transaction</comment>
</field>
<field>
<name>fee_amount</name>
+ <title>Financial Fee Amount</title>
<type>decimal</type>
<comment>actual processor fee if known - may be 0.</comment>
<add>1.3</add>
</field>
<field>
<name>net_amount</name>
+ <title>Financial Net Amount</title>
<type>decimal</type>
<comment>actual funds transfer amount. total less fees. if processor does not report actual fee during transaction, this is set to total_amount.</comment>
<add>1.3</add>
</field>
<field>
<name>currency</name>
+ <title>Financial Currency</title>
<type>varchar</type>
<length>3</length>
<default>NULL</default>
</field>
<field>
<name>trxn_id</name>
+ <title>Transaction ID</title>
<type>varchar</type>
<length>255</length>
<comment>user-specified unique processor transaction id, bank id + trans id,... depending on payment_method</comment>
</field>
<field>
<name>trxn_result_code</name>
+ <title>Transaction result Code</title>
<type>varchar</type>
<length>255</length>
<comment>processor result code</comment>
</field>
<field>
<name>payment_processor_id</name>
+ <title>Payment Processor</title>
<type>int unsigned</type>
<comment>Payment Processor for this financial transaction</comment>
<add>4.3</add>
<field>
<name>payment_instrument_id</name>
<uniqueName>financial_trxn_payment_instrument_id</uniqueName>
- <title>Payment Instrument</title>
+ <title>Payment Method</title>
<type>int unsigned</type>
<comment>FK to payment_instrument option group values</comment>
<pseudoconstant>