*
* Generated from xml/schema/CRM/Contribute/Contribution.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:37ea1e1c100be249d416ec13f8269c52)
+ * (GenCodeChecksum:d937ea0497be1a1aeb1bac09986dd802)
*/
/**
* Database access object for the Contribution entity.
*/
class CRM_Contribute_DAO_Contribution extends CRM_Core_DAO {
+ const EXT = 'civicrm';
+ const TABLE_ADDED = '1.3';
/**
* Static instance to hold the table name.
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Contributions');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Contributions') : ts('Contribution');
}
/**
'html' => [
'type' => 'Text',
],
+ 'add' => '1.3',
],
'contribution_contact_id' => [
'name' => 'contact_id',
'html' => [
'type' => 'EntityRef',
],
+ 'add' => '1.3',
],
'financial_type_id' => [
'name' => 'financial_type_id',
'type' => CRM_Utils_Type::T_INT,
- 'title' => ts('Financial Type'),
+ 'title' => ts('Financial Type ID'),
'description' => ts('FK to Financial Type for (total_amount - non_deductible_amount).'),
'where' => 'civicrm_contribution.financial_type_id',
'export' => TRUE,
'FKClassName' => 'CRM_Financial_DAO_FinancialType',
'html' => [
'type' => 'Select',
+ 'label' => ts("Financial Type"),
],
'pseudoconstant' => [
'table' => 'civicrm_financial_type',
'keyColumn' => 'id',
'labelColumn' => 'name',
],
+ 'add' => '4.3',
],
'contribution_page_id' => [
'name' => 'contribution_page_id',
'FKClassName' => 'CRM_Contribute_DAO_ContributionPage',
'html' => [
'type' => 'Select',
+ 'label' => ts("Contribution Page"),
],
'pseudoconstant' => [
'table' => 'civicrm_contribution_page',
'keyColumn' => 'id',
'labelColumn' => 'title',
],
+ 'add' => '1.5',
],
'payment_instrument_id' => [
'name' => 'payment_instrument_id',
'optionGroupName' => 'payment_instrument',
'optionEditPath' => 'civicrm/admin/options/payment_instrument',
],
+ 'add' => '1.3',
],
'receive_date' => [
'name' => 'receive_date',
'type' => 'Select Date',
'formatType' => 'activityDateTime',
],
+ 'add' => '1.3',
],
'non_deductible_amount' => [
'name' => 'non_deductible_amount',
'html' => [
'type' => 'Text',
],
+ 'add' => '1.3',
],
'total_amount' => [
'name' => 'total_amount',
'html' => [
'type' => 'Text',
],
+ 'add' => '1.3',
],
'fee_amount' => [
'name' => 'fee_amount',
'html' => [
'type' => 'Text',
],
+ 'add' => '1.3',
],
'net_amount' => [
'name' => 'net_amount',
'html' => [
'type' => 'Text',
],
+ 'add' => '1.3',
],
'trxn_id' => [
'name' => 'trxn_id',
'html' => [
'type' => 'Text',
],
+ 'add' => '1.3',
],
'invoice_id' => [
'name' => 'invoice_id',
'html' => [
'type' => 'Text',
],
+ 'add' => '1.3',
],
'invoice_number' => [
'name' => 'invoice_number',
'html' => [
'type' => 'Text',
],
+ 'add' => '4.7',
],
'currency' => [
'name' => 'currency',
'nameColumn' => 'name',
'abbrColumn' => 'symbol',
],
+ 'add' => '1.3',
],
'contribution_cancel_date' => [
'name' => 'cancel_date',
'type' => 'Select Date',
'formatType' => 'activityDateTime',
],
+ 'add' => '1.3',
],
'cancel_reason' => [
'name' => 'cancel_reason',
'html' => [
'type' => 'Text',
],
+ 'add' => '1.3',
],
'receipt_date' => [
'name' => 'receipt_date',
'type' => 'Select Date',
'formatType' => 'activityDateTime',
],
+ 'add' => '1.3',
],
'thankyou_date' => [
'name' => 'thankyou_date',
'type' => 'Select Date',
'formatType' => 'activityDateTime',
],
+ 'add' => '1.3',
],
'contribution_source' => [
'name' => 'source',
'html' => [
'type' => 'Text',
],
+ 'add' => '1.3',
],
'amount_level' => [
'name' => 'amount_level',
'html' => [
'type' => 'Text',
],
+ 'add' => '1.7',
],
'contribution_recur_id' => [
'name' => 'contribution_recur_id',
'bao' => 'CRM_Contribute_BAO_Contribution',
'localizable' => 0,
'FKClassName' => 'CRM_Contribute_DAO_ContributionRecur',
+ 'add' => '1.4',
],
'is_test' => [
'name' => 'is_test',
'html' => [
'type' => 'CheckBox',
],
+ 'add' => NULL,
],
'is_pay_later' => [
'name' => 'is_pay_later',
'html' => [
'type' => 'CheckBox',
],
+ 'add' => '2.1',
],
'contribution_status_id' => [
'name' => 'contribution_status_id',
'optionGroupName' => 'contribution_status',
'optionEditPath' => 'civicrm/admin/options/contribution_status',
],
+ 'add' => '1.6',
],
'contribution_address_id' => [
'name' => 'address_id',
'bao' => 'CRM_Contribute_BAO_Contribution',
'localizable' => 0,
'FKClassName' => 'CRM_Core_DAO_Address',
+ 'add' => '2.2',
],
'contribution_check_number' => [
'name' => 'check_number',
'html' => [
'type' => 'Text',
],
+ 'add' => '2.2',
],
'contribution_campaign_id' => [
'name' => 'campaign_id',
'keyColumn' => 'id',
'labelColumn' => 'title',
],
+ 'add' => '3.4',
],
'creditnote_id' => [
'name' => 'creditnote_id',
'html' => [
'type' => 'Text',
],
+ 'add' => '4.6',
],
'tax_amount' => [
'name' => 'tax_amount',
'html' => [
'type' => 'Text',
],
+ 'add' => '4.6',
],
'revenue_recognition_date' => [
'name' => 'revenue_recognition_date',
'type' => 'Select Date',
'formatType' => 'activityDateTime',
],
+ 'add' => '4.7',
],
'is_template' => [
'name' => 'is_template',
'html' => [
'type' => 'CheckBox',
],
+ 'add' => '5.20',
],
];
CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'fields_callback', Civi::$statics[__CLASS__]['fields']);