5 * @copyright CiviCRM LLC https://civicrm.org/licensing
7 * Generated from xml/schema/CRM/Contribute/Contribution.xml
8 * DO NOT EDIT. Generated by CRM_Core_CodeGen
9 * (GenCodeChecksum:534963bc67ddc36a182ff4767f223531)
13 * Database access object for the Contribution entity.
15 class CRM_Contribute_DAO_Contribution
extends CRM_Core_DAO
{
16 const EXT
= 'civicrm';
17 const TABLE_ADDED
= '1.3';
20 * Static instance to hold the table name.
24 public static $_tableName = 'civicrm_contribution';
27 * Icon associated with this entity.
31 public static $_icon = 'fa-credit-card';
34 * Should CiviCRM log any modifications to this table in the civicrm_log table.
38 public static $_log = TRUE;
55 * FK to Financial Type for (total_amount - non_deductible_amount).
59 public $financial_type_id;
62 * The Contribution Page which triggered this contribution
66 public $contribution_page_id;
69 * FK to Payment Instrument
73 public $payment_instrument_id;
76 * Date contribution was received - not necessarily the creation date of the record
83 * Portion of total amount which is NOT tax deductible. Equal to total_amount for non-deductible financial types.
87 public $non_deductible_amount;
90 * Total amount of this contribution. Use market value for non-monetary gifts.
97 * actual processor fee if known - may be 0.
104 * actual funds transfer amount. total less fees. if processor does not report actual fee during transaction, this is set to total_amount.
111 * unique transaction id. may be processor id, bank id + trans id, or account number + check number... depending on payment_method
118 * unique invoice id, system generated or passed in
125 * Human readable invoice number
129 public $invoice_number;
132 * 3 character string, value from config setting or input via user.
139 * when was gift cancelled
148 public $cancel_reason;
151 * when (if) receipt was sent. populated automatically for online donations w/ automatic receipting
155 public $receipt_date;
158 * when (if) was donor thanked
162 public $thankyou_date;
165 * Origin of this Contribution.
174 public $amount_level;
177 * Conditional foreign key to civicrm_contribution_recur id. Each contribution made in connection with a recurring contribution carries a foreign key to the recurring contribution record. This assumes we can track these processor initiated events.
181 public $contribution_recur_id;
191 public $is_pay_later;
196 public $contribution_status_id;
199 * Conditional foreign key to civicrm_address.id. We insert an address record for each contribution when we have associated billing name and address data.
208 public $check_number;
211 * The campaign for which this contribution has been triggered.
218 * unique credit note id, system generated or passed in
222 public $creditnote_id;
225 * Total tax amount of this contribution.
232 * Stores the date when revenue should be recognized.
236 public $revenue_recognition_date;
239 * Shows this is a template for recurring contributions.
248 public function __construct() {
249 $this->__table
= 'civicrm_contribution';
250 parent
::__construct();
254 * Returns localized title of this entity.
256 public static function getEntityTitle() {
257 return ts('Contributions');
261 * Returns foreign keys and entity references.
264 * [CRM_Core_Reference_Interface]
266 public static function getReferenceColumns() {
267 if (!isset(Civi
::$statics[__CLASS__
]['links'])) {
268 Civi
::$statics[__CLASS__
]['links'] = static::createReferenceColumns(__CLASS__
);
269 Civi
::$statics[__CLASS__
]['links'][] = new CRM_Core_Reference_Basic(self
::getTableName(), 'contact_id', 'civicrm_contact', 'id');
270 Civi
::$statics[__CLASS__
]['links'][] = new CRM_Core_Reference_Basic(self
::getTableName(), 'financial_type_id', 'civicrm_financial_type', 'id');
271 Civi
::$statics[__CLASS__
]['links'][] = new CRM_Core_Reference_Basic(self
::getTableName(), 'contribution_page_id', 'civicrm_contribution_page', 'id');
272 Civi
::$statics[__CLASS__
]['links'][] = new CRM_Core_Reference_Basic(self
::getTableName(), 'contribution_recur_id', 'civicrm_contribution_recur', 'id');
273 Civi
::$statics[__CLASS__
]['links'][] = new CRM_Core_Reference_Basic(self
::getTableName(), 'address_id', 'civicrm_address', 'id');
274 Civi
::$statics[__CLASS__
]['links'][] = new CRM_Core_Reference_Basic(self
::getTableName(), 'campaign_id', 'civicrm_campaign', 'id');
275 CRM_Core_DAO_AllCoreTables
::invoke(__CLASS__
, 'links_callback', Civi
::$statics[__CLASS__
]['links']);
277 return Civi
::$statics[__CLASS__
]['links'];
281 * Returns all the column names of this table
285 public static function &fields() {
286 if (!isset(Civi
::$statics[__CLASS__
]['fields'])) {
287 Civi
::$statics[__CLASS__
]['fields'] = [
288 'contribution_id' => [
290 'type' => CRM_Utils_Type
::T_INT
,
291 'title' => ts('Contribution ID'),
292 'description' => ts('Contribution ID'),
295 'where' => 'civicrm_contribution.id',
297 'table_name' => 'civicrm_contribution',
298 'entity' => 'Contribution',
299 'bao' => 'CRM_Contribute_BAO_Contribution',
306 'contribution_contact_id' => [
307 'name' => 'contact_id',
308 'type' => CRM_Utils_Type
::T_INT
,
309 'title' => ts('Contact ID'),
310 'description' => ts('FK to Contact ID'),
313 'where' => 'civicrm_contribution.contact_id',
314 'headerPattern' => '/contact(.?id)?/i',
315 'dataPattern' => '/^\d+$/',
317 'table_name' => 'civicrm_contribution',
318 'entity' => 'Contribution',
319 'bao' => 'CRM_Contribute_BAO_Contribution',
321 'FKClassName' => 'CRM_Contact_DAO_Contact',
323 'type' => 'EntityRef',
327 'financial_type_id' => [
328 'name' => 'financial_type_id',
329 'type' => CRM_Utils_Type
::T_INT
,
330 'title' => ts('Financial Type'),
331 'description' => ts('FK to Financial Type for (total_amount - non_deductible_amount).'),
332 'where' => 'civicrm_contribution.financial_type_id',
334 'table_name' => 'civicrm_contribution',
335 'entity' => 'Contribution',
336 'bao' => 'CRM_Contribute_BAO_Contribution',
338 'FKClassName' => 'CRM_Financial_DAO_FinancialType',
342 'pseudoconstant' => [
343 'table' => 'civicrm_financial_type',
345 'labelColumn' => 'name',
349 'contribution_page_id' => [
350 'name' => 'contribution_page_id',
351 'type' => CRM_Utils_Type
::T_INT
,
352 'title' => ts('Contribution Page ID'),
353 'description' => ts('The Contribution Page which triggered this contribution'),
355 'where' => 'civicrm_contribution.contribution_page_id',
357 'table_name' => 'civicrm_contribution',
358 'entity' => 'Contribution',
359 'bao' => 'CRM_Contribute_BAO_Contribution',
361 'FKClassName' => 'CRM_Contribute_DAO_ContributionPage',
364 'label' => ts("Contribution Page"),
366 'pseudoconstant' => [
367 'table' => 'civicrm_contribution_page',
369 'labelColumn' => 'title',
373 'payment_instrument_id' => [
374 'name' => 'payment_instrument_id',
375 'type' => CRM_Utils_Type
::T_INT
,
376 'title' => ts('Payment Method ID'),
377 'description' => ts('FK to Payment Instrument'),
378 'where' => 'civicrm_contribution.payment_instrument_id',
379 'headerPattern' => '/^payment|(p(ayment\s)?instrument)$/i',
381 'table_name' => 'civicrm_contribution',
382 'entity' => 'Contribution',
383 'bao' => 'CRM_Contribute_BAO_Contribution',
388 'pseudoconstant' => [
389 'optionGroupName' => 'payment_instrument',
390 'optionEditPath' => 'civicrm/admin/options/payment_instrument',
395 'name' => 'receive_date',
396 'type' => CRM_Utils_Type
::T_DATE + CRM_Utils_Type
::T_TIME
,
397 'title' => ts('Date Received'),
398 'description' => ts('Date contribution was received - not necessarily the creation date of the record'),
400 'where' => 'civicrm_contribution.receive_date',
401 'headerPattern' => '/receive(.?date)?/i',
402 'dataPattern' => '/^\d{4}-?\d{2}-?\d{2} ?(\d{2}:?\d{2}:?(\d{2})?)?$/',
404 'table_name' => 'civicrm_contribution',
405 'entity' => 'Contribution',
406 'bao' => 'CRM_Contribute_BAO_Contribution',
409 'type' => 'Select Date',
410 'formatType' => 'activityDateTime',
414 'non_deductible_amount' => [
415 'name' => 'non_deductible_amount',
416 'type' => CRM_Utils_Type
::T_MONEY
,
417 'title' => ts('Non-deductible Amount'),
418 'description' => ts('Portion of total amount which is NOT tax deductible. Equal to total_amount for non-deductible financial types.'),
424 'where' => 'civicrm_contribution.non_deductible_amount',
425 'headerPattern' => '/non?.?deduct/i',
426 'dataPattern' => '/^\d+(\.\d{2})?$/',
429 'table_name' => 'civicrm_contribution',
430 'entity' => 'Contribution',
431 'bao' => 'CRM_Contribute_BAO_Contribution',
439 'name' => 'total_amount',
440 'type' => CRM_Utils_Type
::T_MONEY
,
441 'title' => ts('Total Amount'),
442 'description' => ts('Total amount of this contribution. Use market value for non-monetary gifts.'),
449 'where' => 'civicrm_contribution.total_amount',
450 'headerPattern' => '/^total|(.?^am(ou)?nt)/i',
451 'dataPattern' => '/^\d+(\.\d{2})?$/',
453 'table_name' => 'civicrm_contribution',
454 'entity' => 'Contribution',
455 'bao' => 'CRM_Contribute_BAO_Contribution',
463 'name' => 'fee_amount',
464 'type' => CRM_Utils_Type
::T_MONEY
,
465 'title' => ts('Fee Amount'),
466 'description' => ts('actual processor fee if known - may be 0.'),
472 'where' => 'civicrm_contribution.fee_amount',
473 'headerPattern' => '/fee(.?am(ou)?nt)?/i',
474 'dataPattern' => '/^\d+(\.\d{2})?$/',
476 'table_name' => 'civicrm_contribution',
477 'entity' => 'Contribution',
478 'bao' => 'CRM_Contribute_BAO_Contribution',
486 'name' => 'net_amount',
487 'type' => CRM_Utils_Type
::T_MONEY
,
488 'title' => ts('Net Amount'),
489 'description' => ts('actual funds transfer amount. total less fees. if processor does not report actual fee during transaction, this is set to total_amount.'),
495 'where' => 'civicrm_contribution.net_amount',
496 'headerPattern' => '/net(.?am(ou)?nt)?/i',
497 'dataPattern' => '/^\d+(\.\d{2})?$/',
499 'table_name' => 'civicrm_contribution',
500 'entity' => 'Contribution',
501 'bao' => 'CRM_Contribute_BAO_Contribution',
510 'type' => CRM_Utils_Type
::T_STRING
,
511 'title' => ts('Transaction ID'),
512 'description' => ts('unique transaction id. may be processor id, bank id + trans id, or account number + check number... depending on payment_method'),
514 'size' => CRM_Utils_Type
::HUGE
,
516 'where' => 'civicrm_contribution.trxn_id',
517 'headerPattern' => '/tr(ansactio|x)n(.?id)?/i',
519 'table_name' => 'civicrm_contribution',
520 'entity' => 'Contribution',
521 'bao' => 'CRM_Contribute_BAO_Contribution',
529 'name' => 'invoice_id',
530 'type' => CRM_Utils_Type
::T_STRING
,
531 'title' => ts('Invoice Reference'),
532 'description' => ts('unique invoice id, system generated or passed in'),
534 'size' => CRM_Utils_Type
::HUGE
,
536 'where' => 'civicrm_contribution.invoice_id',
537 'headerPattern' => '/invoice(.?id)?/i',
539 'table_name' => 'civicrm_contribution',
540 'entity' => 'Contribution',
541 'bao' => 'CRM_Contribute_BAO_Contribution',
548 'invoice_number' => [
549 'name' => 'invoice_number',
550 'type' => CRM_Utils_Type
::T_STRING
,
551 'title' => ts('Invoice Number'),
552 'description' => ts('Human readable invoice number'),
554 'size' => CRM_Utils_Type
::HUGE
,
556 'where' => 'civicrm_contribution.invoice_number',
557 'headerPattern' => '/invoice(.?number)?/i',
559 'table_name' => 'civicrm_contribution',
560 'entity' => 'Contribution',
561 'bao' => 'CRM_Contribute_BAO_Contribution',
569 'name' => 'currency',
570 'type' => CRM_Utils_Type
::T_STRING
,
571 'title' => ts('Currency'),
572 'description' => ts('3 character string, value from config setting or input via user.'),
574 'size' => CRM_Utils_Type
::FOUR
,
576 'where' => 'civicrm_contribution.currency',
577 'headerPattern' => '/cur(rency)?/i',
578 'dataPattern' => '/^[A-Z]{3}$/i',
581 'table_name' => 'civicrm_contribution',
582 'entity' => 'Contribution',
583 'bao' => 'CRM_Contribute_BAO_Contribution',
588 'pseudoconstant' => [
589 'table' => 'civicrm_currency',
590 'keyColumn' => 'name',
591 'labelColumn' => 'full_name',
592 'nameColumn' => 'name',
593 'abbrColumn' => 'symbol',
597 'contribution_cancel_date' => [
598 'name' => 'cancel_date',
599 'type' => CRM_Utils_Type
::T_DATE + CRM_Utils_Type
::T_TIME
,
600 'title' => ts('Cancelled / Refunded Date'),
601 'description' => ts('when was gift cancelled'),
603 'where' => 'civicrm_contribution.cancel_date',
604 'headerPattern' => '/cancel(.?date)?/i',
605 'dataPattern' => '/^\d{4}-?\d{2}-?\d{2} ?(\d{2}:?\d{2}:?(\d{2})?)?$/',
607 'table_name' => 'civicrm_contribution',
608 'entity' => 'Contribution',
609 'bao' => 'CRM_Contribute_BAO_Contribution',
612 'type' => 'Select Date',
613 'formatType' => 'activityDateTime',
618 'name' => 'cancel_reason',
619 'type' => CRM_Utils_Type
::T_TEXT
,
620 'title' => ts('Cancellation / Refund Reason'),
622 'where' => 'civicrm_contribution.cancel_reason',
623 'headerPattern' => '/(cancel.?)?reason/i',
625 'table_name' => 'civicrm_contribution',
626 'entity' => 'Contribution',
627 'bao' => 'CRM_Contribute_BAO_Contribution',
635 'name' => 'receipt_date',
636 'type' => CRM_Utils_Type
::T_DATE + CRM_Utils_Type
::T_TIME
,
637 'title' => ts('Receipt Date'),
638 'description' => ts('when (if) receipt was sent. populated automatically for online donations w/ automatic receipting'),
640 'where' => 'civicrm_contribution.receipt_date',
641 'headerPattern' => '/receipt(.?date)?/i',
642 'dataPattern' => '/^\d{4}-?\d{2}-?\d{2} ?(\d{2}:?\d{2}:?(\d{2})?)?$/',
644 'table_name' => 'civicrm_contribution',
645 'entity' => 'Contribution',
646 'bao' => 'CRM_Contribute_BAO_Contribution',
649 'type' => 'Select Date',
650 'formatType' => 'activityDateTime',
655 'name' => 'thankyou_date',
656 'type' => CRM_Utils_Type
::T_DATE + CRM_Utils_Type
::T_TIME
,
657 'title' => ts('Thank-you Date'),
658 'description' => ts('when (if) was donor thanked'),
660 'where' => 'civicrm_contribution.thankyou_date',
661 'headerPattern' => '/thank(s|(.?you))?(.?date)?/i',
662 'dataPattern' => '/^\d{4}-?\d{2}-?\d{2} ?(\d{2}:?\d{2}:?(\d{2})?)?$/',
664 'table_name' => 'civicrm_contribution',
665 'entity' => 'Contribution',
666 'bao' => 'CRM_Contribute_BAO_Contribution',
669 'type' => 'Select Date',
670 'formatType' => 'activityDateTime',
674 'contribution_source' => [
676 'type' => CRM_Utils_Type
::T_STRING
,
677 'title' => ts('Contribution Source'),
678 'description' => ts('Origin of this Contribution.'),
680 'size' => CRM_Utils_Type
::HUGE
,
682 'where' => 'civicrm_contribution.source',
683 'headerPattern' => '/source/i',
685 'table_name' => 'civicrm_contribution',
686 'entity' => 'Contribution',
687 'bao' => 'CRM_Contribute_BAO_Contribution',
695 'name' => 'amount_level',
696 'type' => CRM_Utils_Type
::T_TEXT
,
697 'title' => ts('Amount Label'),
699 'where' => 'civicrm_contribution.amount_level',
701 'table_name' => 'civicrm_contribution',
702 'entity' => 'Contribution',
703 'bao' => 'CRM_Contribute_BAO_Contribution',
710 'contribution_recur_id' => [
711 'name' => 'contribution_recur_id',
712 'type' => CRM_Utils_Type
::T_INT
,
713 'title' => ts('Recurring Contribution ID'),
714 'description' => ts('Conditional foreign key to civicrm_contribution_recur id. Each contribution made in connection with a recurring contribution carries a foreign key to the recurring contribution record. This assumes we can track these processor initiated events.'),
715 'where' => 'civicrm_contribution.contribution_recur_id',
717 'table_name' => 'civicrm_contribution',
718 'entity' => 'Contribution',
719 'bao' => 'CRM_Contribute_BAO_Contribution',
721 'FKClassName' => 'CRM_Contribute_DAO_ContributionRecur',
726 'type' => CRM_Utils_Type
::T_BOOLEAN
,
727 'title' => ts('Test'),
729 'where' => 'civicrm_contribution.is_test',
732 'table_name' => 'civicrm_contribution',
733 'entity' => 'Contribution',
734 'bao' => 'CRM_Contribute_BAO_Contribution',
737 'type' => 'CheckBox',
742 'name' => 'is_pay_later',
743 'type' => CRM_Utils_Type
::T_BOOLEAN
,
744 'title' => ts('Is Pay Later'),
746 'where' => 'civicrm_contribution.is_pay_later',
749 'table_name' => 'civicrm_contribution',
750 'entity' => 'Contribution',
751 'bao' => 'CRM_Contribute_BAO_Contribution',
754 'type' => 'CheckBox',
758 'contribution_status_id' => [
759 'name' => 'contribution_status_id',
760 'type' => CRM_Utils_Type
::T_INT
,
761 'title' => ts('Contribution Status ID'),
763 'where' => 'civicrm_contribution.contribution_status_id',
764 'headerPattern' => '/status/i',
767 'table_name' => 'civicrm_contribution',
768 'entity' => 'Contribution',
769 'bao' => 'CRM_Contribute_BAO_Contribution',
774 'pseudoconstant' => [
775 'optionGroupName' => 'contribution_status',
776 'optionEditPath' => 'civicrm/admin/options/contribution_status',
780 'contribution_address_id' => [
781 'name' => 'address_id',
782 'type' => CRM_Utils_Type
::T_INT
,
783 'title' => ts('Contribution Address'),
784 'description' => ts('Conditional foreign key to civicrm_address.id. We insert an address record for each contribution when we have associated billing name and address data.'),
785 'where' => 'civicrm_contribution.address_id',
787 'table_name' => 'civicrm_contribution',
788 'entity' => 'Contribution',
789 'bao' => 'CRM_Contribute_BAO_Contribution',
791 'FKClassName' => 'CRM_Core_DAO_Address',
794 'contribution_check_number' => [
795 'name' => 'check_number',
796 'type' => CRM_Utils_Type
::T_STRING
,
797 'title' => ts('Check Number'),
801 'where' => 'civicrm_contribution.check_number',
802 'headerPattern' => '/check(.?number)?/i',
804 'table_name' => 'civicrm_contribution',
805 'entity' => 'Contribution',
806 'bao' => 'CRM_Contribute_BAO_Contribution',
813 'contribution_campaign_id' => [
814 'name' => 'campaign_id',
815 'type' => CRM_Utils_Type
::T_INT
,
816 'title' => ts('Campaign'),
817 'description' => ts('The campaign for which this contribution has been triggered.'),
819 'where' => 'civicrm_contribution.campaign_id',
821 'table_name' => 'civicrm_contribution',
822 'entity' => 'Contribution',
823 'bao' => 'CRM_Contribute_BAO_Contribution',
825 'FKClassName' => 'CRM_Campaign_DAO_Campaign',
829 'pseudoconstant' => [
830 'table' => 'civicrm_campaign',
832 'labelColumn' => 'title',
837 'name' => 'creditnote_id',
838 'type' => CRM_Utils_Type
::T_STRING
,
839 'title' => ts('Credit Note ID'),
840 'description' => ts('unique credit note id, system generated or passed in'),
842 'size' => CRM_Utils_Type
::HUGE
,
844 'where' => 'civicrm_contribution.creditnote_id',
845 'headerPattern' => '/creditnote(.?id)?/i',
847 'table_name' => 'civicrm_contribution',
848 'entity' => 'Contribution',
849 'bao' => 'CRM_Contribute_BAO_Contribution',
857 'name' => 'tax_amount',
858 'type' => CRM_Utils_Type
::T_MONEY
,
859 'title' => ts('Tax Amount'),
860 'description' => ts('Total tax amount of this contribution.'),
866 'where' => 'civicrm_contribution.tax_amount',
867 'headerPattern' => '/tax(.?am(ou)?nt)?/i',
868 'dataPattern' => '/^\d+(\.\d{2})?$/',
870 'table_name' => 'civicrm_contribution',
871 'entity' => 'Contribution',
872 'bao' => 'CRM_Contribute_BAO_Contribution',
879 'revenue_recognition_date' => [
880 'name' => 'revenue_recognition_date',
881 'type' => CRM_Utils_Type
::T_DATE + CRM_Utils_Type
::T_TIME
,
882 'title' => ts('Revenue Recognition Date'),
883 'description' => ts('Stores the date when revenue should be recognized.'),
885 'where' => 'civicrm_contribution.revenue_recognition_date',
886 'headerPattern' => '/revenue(.?date)?/i',
887 'dataPattern' => '/^\d{4}-?\d{2}-?\d{2} ?(\d{2}:?\d{2}:?(\d{2})?)?$/',
889 'table_name' => 'civicrm_contribution',
890 'entity' => 'Contribution',
891 'bao' => 'CRM_Contribute_BAO_Contribution',
894 'type' => 'Select Date',
895 'formatType' => 'activityDateTime',
900 'name' => 'is_template',
901 'type' => CRM_Utils_Type
::T_BOOLEAN
,
902 'title' => ts('Is a Template Contribution'),
903 'description' => ts('Shows this is a template for recurring contributions.'),
905 'where' => 'civicrm_contribution.is_template',
908 'table_name' => 'civicrm_contribution',
909 'entity' => 'Contribution',
910 'bao' => 'CRM_Contribute_BAO_Contribution',
913 'type' => 'CheckBox',
918 CRM_Core_DAO_AllCoreTables
::invoke(__CLASS__
, 'fields_callback', Civi
::$statics[__CLASS__
]['fields']);
920 return Civi
::$statics[__CLASS__
]['fields'];
924 * Return a mapping from field-name to the corresponding key (as used in fields()).
927 * Array(string $name => string $uniqueName).
929 public static function &fieldKeys() {
930 if (!isset(Civi
::$statics[__CLASS__
]['fieldKeys'])) {
931 Civi
::$statics[__CLASS__
]['fieldKeys'] = array_flip(CRM_Utils_Array
::collect('name', self
::fields()));
933 return Civi
::$statics[__CLASS__
]['fieldKeys'];
937 * Returns the names of this table
941 public static function getTableName() {
942 return self
::$_tableName;
946 * Returns if this table needs to be logged
950 public function getLog() {
955 * Returns the list of fields that can be imported
957 * @param bool $prefix
961 public static function &import($prefix = FALSE) {
962 $r = CRM_Core_DAO_AllCoreTables
::getImports(__CLASS__
, 'contribution', $prefix, []);
967 * Returns the list of fields that can be exported
969 * @param bool $prefix
973 public static function &export($prefix = FALSE) {
974 $r = CRM_Core_DAO_AllCoreTables
::getExports(__CLASS__
, 'contribution', $prefix, []);
979 * Returns the list of indices
981 * @param bool $localize
985 public static function indices($localize = TRUE) {
987 'UI_contrib_payment_instrument_id' => [
988 'name' => 'UI_contrib_payment_instrument_id',
990 0 => 'payment_instrument_id',
992 'localizable' => FALSE,
993 'sig' => 'civicrm_contribution::0::payment_instrument_id',
995 'index_total_amount_receive_date' => [
996 'name' => 'index_total_amount_receive_date',
1001 'localizable' => FALSE,
1002 'sig' => 'civicrm_contribution::0::total_amount::receive_date',
1005 'name' => 'index_source',
1009 'localizable' => FALSE,
1010 'sig' => 'civicrm_contribution::0::source',
1012 'UI_contrib_trxn_id' => [
1013 'name' => 'UI_contrib_trxn_id',
1017 'localizable' => FALSE,
1019 'sig' => 'civicrm_contribution::1::trxn_id',
1021 'UI_contrib_invoice_id' => [
1022 'name' => 'UI_contrib_invoice_id',
1026 'localizable' => FALSE,
1028 'sig' => 'civicrm_contribution::1::invoice_id',
1030 'index_contribution_status' => [
1031 'name' => 'index_contribution_status',
1033 0 => 'contribution_status_id',
1035 'localizable' => FALSE,
1036 'sig' => 'civicrm_contribution::0::contribution_status_id',
1038 'received_date' => [
1039 'name' => 'received_date',
1041 0 => 'receive_date',
1043 'localizable' => FALSE,
1044 'sig' => 'civicrm_contribution::0::receive_date',
1047 'name' => 'check_number',
1049 0 => 'check_number',
1051 'localizable' => FALSE,
1052 'sig' => 'civicrm_contribution::0::check_number',
1054 'index_creditnote_id' => [
1055 'name' => 'index_creditnote_id',
1057 0 => 'creditnote_id',
1059 'localizable' => FALSE,
1060 'sig' => 'civicrm_contribution::0::creditnote_id',
1063 return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables
::multilingualize(__CLASS__
, $indices) : $indices;