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:37ea1e1c100be249d416ec13f8269c52)
13 * Database access object for the Contribution entity.
15 class CRM_Contribute_DAO_Contribution
extends CRM_Core_DAO
{
18 * Static instance to hold the table name.
22 public static $_tableName = 'civicrm_contribution';
25 * Icon associated with this entity.
29 public static $_icon = 'fa-credit-card';
32 * Should CiviCRM log any modifications to this table in the civicrm_log table.
36 public static $_log = TRUE;
53 * FK to Financial Type for (total_amount - non_deductible_amount).
57 public $financial_type_id;
60 * The Contribution Page which triggered this contribution
64 public $contribution_page_id;
67 * FK to Payment Instrument
71 public $payment_instrument_id;
74 * Date contribution was received - not necessarily the creation date of the record
81 * Portion of total amount which is NOT tax deductible. Equal to total_amount for non-deductible financial types.
85 public $non_deductible_amount;
88 * Total amount of this contribution. Use market value for non-monetary gifts.
95 * actual processor fee if known - may be 0.
102 * actual funds transfer amount. total less fees. if processor does not report actual fee during transaction, this is set to total_amount.
109 * unique transaction id. may be processor id, bank id + trans id, or account number + check number... depending on payment_method
116 * unique invoice id, system generated or passed in
123 * Human readable invoice number
127 public $invoice_number;
130 * 3 character string, value from config setting or input via user.
137 * when was gift cancelled
146 public $cancel_reason;
149 * when (if) receipt was sent. populated automatically for online donations w/ automatic receipting
153 public $receipt_date;
156 * when (if) was donor thanked
160 public $thankyou_date;
163 * Origin of this Contribution.
172 public $amount_level;
175 * 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.
179 public $contribution_recur_id;
189 public $is_pay_later;
194 public $contribution_status_id;
197 * Conditional foreign key to civicrm_address.id. We insert an address record for each contribution when we have associated billing name and address data.
206 public $check_number;
209 * The campaign for which this contribution has been triggered.
216 * unique credit note id, system generated or passed in
220 public $creditnote_id;
223 * Total tax amount of this contribution.
230 * Stores the date when revenue should be recognized.
234 public $revenue_recognition_date;
237 * Shows this is a template for recurring contributions.
246 public function __construct() {
247 $this->__table
= 'civicrm_contribution';
248 parent
::__construct();
252 * Returns localized title of this entity.
254 public static function getEntityTitle() {
255 return ts('Contributions');
259 * Returns foreign keys and entity references.
262 * [CRM_Core_Reference_Interface]
264 public static function getReferenceColumns() {
265 if (!isset(Civi
::$statics[__CLASS__
]['links'])) {
266 Civi
::$statics[__CLASS__
]['links'] = static::createReferenceColumns(__CLASS__
);
267 Civi
::$statics[__CLASS__
]['links'][] = new CRM_Core_Reference_Basic(self
::getTableName(), 'contact_id', 'civicrm_contact', 'id');
268 Civi
::$statics[__CLASS__
]['links'][] = new CRM_Core_Reference_Basic(self
::getTableName(), 'financial_type_id', 'civicrm_financial_type', 'id');
269 Civi
::$statics[__CLASS__
]['links'][] = new CRM_Core_Reference_Basic(self
::getTableName(), 'contribution_page_id', 'civicrm_contribution_page', 'id');
270 Civi
::$statics[__CLASS__
]['links'][] = new CRM_Core_Reference_Basic(self
::getTableName(), 'contribution_recur_id', 'civicrm_contribution_recur', 'id');
271 Civi
::$statics[__CLASS__
]['links'][] = new CRM_Core_Reference_Basic(self
::getTableName(), 'address_id', 'civicrm_address', 'id');
272 Civi
::$statics[__CLASS__
]['links'][] = new CRM_Core_Reference_Basic(self
::getTableName(), 'campaign_id', 'civicrm_campaign', 'id');
273 CRM_Core_DAO_AllCoreTables
::invoke(__CLASS__
, 'links_callback', Civi
::$statics[__CLASS__
]['links']);
275 return Civi
::$statics[__CLASS__
]['links'];
279 * Returns all the column names of this table
283 public static function &fields() {
284 if (!isset(Civi
::$statics[__CLASS__
]['fields'])) {
285 Civi
::$statics[__CLASS__
]['fields'] = [
286 'contribution_id' => [
288 'type' => CRM_Utils_Type
::T_INT
,
289 'title' => ts('Contribution ID'),
290 'description' => ts('Contribution ID'),
293 'where' => 'civicrm_contribution.id',
295 'table_name' => 'civicrm_contribution',
296 'entity' => 'Contribution',
297 'bao' => 'CRM_Contribute_BAO_Contribution',
303 'contribution_contact_id' => [
304 'name' => 'contact_id',
305 'type' => CRM_Utils_Type
::T_INT
,
306 'title' => ts('Contact ID'),
307 'description' => ts('FK to Contact ID'),
310 'where' => 'civicrm_contribution.contact_id',
311 'headerPattern' => '/contact(.?id)?/i',
312 'dataPattern' => '/^\d+$/',
314 'table_name' => 'civicrm_contribution',
315 'entity' => 'Contribution',
316 'bao' => 'CRM_Contribute_BAO_Contribution',
318 'FKClassName' => 'CRM_Contact_DAO_Contact',
320 'type' => 'EntityRef',
323 'financial_type_id' => [
324 'name' => 'financial_type_id',
325 'type' => CRM_Utils_Type
::T_INT
,
326 'title' => ts('Financial Type'),
327 'description' => ts('FK to Financial Type for (total_amount - non_deductible_amount).'),
328 'where' => 'civicrm_contribution.financial_type_id',
330 'table_name' => 'civicrm_contribution',
331 'entity' => 'Contribution',
332 'bao' => 'CRM_Contribute_BAO_Contribution',
334 'FKClassName' => 'CRM_Financial_DAO_FinancialType',
338 'pseudoconstant' => [
339 'table' => 'civicrm_financial_type',
341 'labelColumn' => 'name',
344 'contribution_page_id' => [
345 'name' => 'contribution_page_id',
346 'type' => CRM_Utils_Type
::T_INT
,
347 'title' => ts('Contribution Page ID'),
348 'description' => ts('The Contribution Page which triggered this contribution'),
350 'where' => 'civicrm_contribution.contribution_page_id',
352 'table_name' => 'civicrm_contribution',
353 'entity' => 'Contribution',
354 'bao' => 'CRM_Contribute_BAO_Contribution',
356 'FKClassName' => 'CRM_Contribute_DAO_ContributionPage',
360 'pseudoconstant' => [
361 'table' => 'civicrm_contribution_page',
363 'labelColumn' => 'title',
366 'payment_instrument_id' => [
367 'name' => 'payment_instrument_id',
368 'type' => CRM_Utils_Type
::T_INT
,
369 'title' => ts('Payment Method ID'),
370 'description' => ts('FK to Payment Instrument'),
371 'where' => 'civicrm_contribution.payment_instrument_id',
372 'headerPattern' => '/^payment|(p(ayment\s)?instrument)$/i',
374 'table_name' => 'civicrm_contribution',
375 'entity' => 'Contribution',
376 'bao' => 'CRM_Contribute_BAO_Contribution',
381 'pseudoconstant' => [
382 'optionGroupName' => 'payment_instrument',
383 'optionEditPath' => 'civicrm/admin/options/payment_instrument',
387 'name' => 'receive_date',
388 'type' => CRM_Utils_Type
::T_DATE + CRM_Utils_Type
::T_TIME
,
389 'title' => ts('Date Received'),
390 'description' => ts('Date contribution was received - not necessarily the creation date of the record'),
392 'where' => 'civicrm_contribution.receive_date',
393 'headerPattern' => '/receive(.?date)?/i',
394 'dataPattern' => '/^\d{4}-?\d{2}-?\d{2} ?(\d{2}:?\d{2}:?(\d{2})?)?$/',
396 'table_name' => 'civicrm_contribution',
397 'entity' => 'Contribution',
398 'bao' => 'CRM_Contribute_BAO_Contribution',
401 'type' => 'Select Date',
402 'formatType' => 'activityDateTime',
405 'non_deductible_amount' => [
406 'name' => 'non_deductible_amount',
407 'type' => CRM_Utils_Type
::T_MONEY
,
408 'title' => ts('Non-deductible Amount'),
409 'description' => ts('Portion of total amount which is NOT tax deductible. Equal to total_amount for non-deductible financial types.'),
415 'where' => 'civicrm_contribution.non_deductible_amount',
416 'headerPattern' => '/non?.?deduct/i',
417 'dataPattern' => '/^\d+(\.\d{2})?$/',
420 'table_name' => 'civicrm_contribution',
421 'entity' => 'Contribution',
422 'bao' => 'CRM_Contribute_BAO_Contribution',
429 'name' => 'total_amount',
430 'type' => CRM_Utils_Type
::T_MONEY
,
431 'title' => ts('Total Amount'),
432 'description' => ts('Total amount of this contribution. Use market value for non-monetary gifts.'),
439 'where' => 'civicrm_contribution.total_amount',
440 'headerPattern' => '/^total|(.?^am(ou)?nt)/i',
441 'dataPattern' => '/^\d+(\.\d{2})?$/',
443 'table_name' => 'civicrm_contribution',
444 'entity' => 'Contribution',
445 'bao' => 'CRM_Contribute_BAO_Contribution',
452 'name' => 'fee_amount',
453 'type' => CRM_Utils_Type
::T_MONEY
,
454 'title' => ts('Fee Amount'),
455 'description' => ts('actual processor fee if known - may be 0.'),
461 'where' => 'civicrm_contribution.fee_amount',
462 'headerPattern' => '/fee(.?am(ou)?nt)?/i',
463 'dataPattern' => '/^\d+(\.\d{2})?$/',
465 'table_name' => 'civicrm_contribution',
466 'entity' => 'Contribution',
467 'bao' => 'CRM_Contribute_BAO_Contribution',
474 'name' => 'net_amount',
475 'type' => CRM_Utils_Type
::T_MONEY
,
476 'title' => ts('Net Amount'),
477 'description' => ts('actual funds transfer amount. total less fees. if processor does not report actual fee during transaction, this is set to total_amount.'),
483 'where' => 'civicrm_contribution.net_amount',
484 'headerPattern' => '/net(.?am(ou)?nt)?/i',
485 'dataPattern' => '/^\d+(\.\d{2})?$/',
487 'table_name' => 'civicrm_contribution',
488 'entity' => 'Contribution',
489 'bao' => 'CRM_Contribute_BAO_Contribution',
497 'type' => CRM_Utils_Type
::T_STRING
,
498 'title' => ts('Transaction ID'),
499 'description' => ts('unique transaction id. may be processor id, bank id + trans id, or account number + check number... depending on payment_method'),
501 'size' => CRM_Utils_Type
::HUGE
,
503 'where' => 'civicrm_contribution.trxn_id',
504 'headerPattern' => '/tr(ansactio|x)n(.?id)?/i',
506 'table_name' => 'civicrm_contribution',
507 'entity' => 'Contribution',
508 'bao' => 'CRM_Contribute_BAO_Contribution',
515 'name' => 'invoice_id',
516 'type' => CRM_Utils_Type
::T_STRING
,
517 'title' => ts('Invoice Reference'),
518 'description' => ts('unique invoice id, system generated or passed in'),
520 'size' => CRM_Utils_Type
::HUGE
,
522 'where' => 'civicrm_contribution.invoice_id',
523 'headerPattern' => '/invoice(.?id)?/i',
525 'table_name' => 'civicrm_contribution',
526 'entity' => 'Contribution',
527 'bao' => 'CRM_Contribute_BAO_Contribution',
533 'invoice_number' => [
534 'name' => 'invoice_number',
535 'type' => CRM_Utils_Type
::T_STRING
,
536 'title' => ts('Invoice Number'),
537 'description' => ts('Human readable invoice number'),
539 'size' => CRM_Utils_Type
::HUGE
,
541 'where' => 'civicrm_contribution.invoice_number',
542 'headerPattern' => '/invoice(.?number)?/i',
544 'table_name' => 'civicrm_contribution',
545 'entity' => 'Contribution',
546 'bao' => 'CRM_Contribute_BAO_Contribution',
553 'name' => 'currency',
554 'type' => CRM_Utils_Type
::T_STRING
,
555 'title' => ts('Currency'),
556 'description' => ts('3 character string, value from config setting or input via user.'),
558 'size' => CRM_Utils_Type
::FOUR
,
560 'where' => 'civicrm_contribution.currency',
561 'headerPattern' => '/cur(rency)?/i',
562 'dataPattern' => '/^[A-Z]{3}$/i',
565 'table_name' => 'civicrm_contribution',
566 'entity' => 'Contribution',
567 'bao' => 'CRM_Contribute_BAO_Contribution',
572 'pseudoconstant' => [
573 'table' => 'civicrm_currency',
574 'keyColumn' => 'name',
575 'labelColumn' => 'full_name',
576 'nameColumn' => 'name',
577 'abbrColumn' => 'symbol',
580 'contribution_cancel_date' => [
581 'name' => 'cancel_date',
582 'type' => CRM_Utils_Type
::T_DATE + CRM_Utils_Type
::T_TIME
,
583 'title' => ts('Cancelled / Refunded Date'),
584 'description' => ts('when was gift cancelled'),
586 'where' => 'civicrm_contribution.cancel_date',
587 'headerPattern' => '/cancel(.?date)?/i',
588 'dataPattern' => '/^\d{4}-?\d{2}-?\d{2} ?(\d{2}:?\d{2}:?(\d{2})?)?$/',
590 'table_name' => 'civicrm_contribution',
591 'entity' => 'Contribution',
592 'bao' => 'CRM_Contribute_BAO_Contribution',
595 'type' => 'Select Date',
596 'formatType' => 'activityDateTime',
600 'name' => 'cancel_reason',
601 'type' => CRM_Utils_Type
::T_TEXT
,
602 'title' => ts('Cancellation / Refund Reason'),
604 'where' => 'civicrm_contribution.cancel_reason',
605 'headerPattern' => '/(cancel.?)?reason/i',
607 'table_name' => 'civicrm_contribution',
608 'entity' => 'Contribution',
609 'bao' => 'CRM_Contribute_BAO_Contribution',
616 'name' => 'receipt_date',
617 'type' => CRM_Utils_Type
::T_DATE + CRM_Utils_Type
::T_TIME
,
618 'title' => ts('Receipt Date'),
619 'description' => ts('when (if) receipt was sent. populated automatically for online donations w/ automatic receipting'),
621 'where' => 'civicrm_contribution.receipt_date',
622 'headerPattern' => '/receipt(.?date)?/i',
623 'dataPattern' => '/^\d{4}-?\d{2}-?\d{2} ?(\d{2}:?\d{2}:?(\d{2})?)?$/',
625 'table_name' => 'civicrm_contribution',
626 'entity' => 'Contribution',
627 'bao' => 'CRM_Contribute_BAO_Contribution',
630 'type' => 'Select Date',
631 'formatType' => 'activityDateTime',
635 'name' => 'thankyou_date',
636 'type' => CRM_Utils_Type
::T_DATE + CRM_Utils_Type
::T_TIME
,
637 'title' => ts('Thank-you Date'),
638 'description' => ts('when (if) was donor thanked'),
640 'where' => 'civicrm_contribution.thankyou_date',
641 'headerPattern' => '/thank(s|(.?you))?(.?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',
653 'contribution_source' => [
655 'type' => CRM_Utils_Type
::T_STRING
,
656 'title' => ts('Contribution Source'),
657 'description' => ts('Origin of this Contribution.'),
659 'size' => CRM_Utils_Type
::HUGE
,
661 'where' => 'civicrm_contribution.source',
662 'headerPattern' => '/source/i',
664 'table_name' => 'civicrm_contribution',
665 'entity' => 'Contribution',
666 'bao' => 'CRM_Contribute_BAO_Contribution',
673 'name' => 'amount_level',
674 'type' => CRM_Utils_Type
::T_TEXT
,
675 'title' => ts('Amount Label'),
677 'where' => 'civicrm_contribution.amount_level',
679 'table_name' => 'civicrm_contribution',
680 'entity' => 'Contribution',
681 'bao' => 'CRM_Contribute_BAO_Contribution',
687 'contribution_recur_id' => [
688 'name' => 'contribution_recur_id',
689 'type' => CRM_Utils_Type
::T_INT
,
690 'title' => ts('Recurring Contribution ID'),
691 '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.'),
692 'where' => 'civicrm_contribution.contribution_recur_id',
694 'table_name' => 'civicrm_contribution',
695 'entity' => 'Contribution',
696 'bao' => 'CRM_Contribute_BAO_Contribution',
698 'FKClassName' => 'CRM_Contribute_DAO_ContributionRecur',
702 'type' => CRM_Utils_Type
::T_BOOLEAN
,
703 'title' => ts('Test'),
705 'where' => 'civicrm_contribution.is_test',
708 'table_name' => 'civicrm_contribution',
709 'entity' => 'Contribution',
710 'bao' => 'CRM_Contribute_BAO_Contribution',
713 'type' => 'CheckBox',
717 'name' => 'is_pay_later',
718 'type' => CRM_Utils_Type
::T_BOOLEAN
,
719 'title' => ts('Is Pay Later'),
721 'where' => 'civicrm_contribution.is_pay_later',
724 'table_name' => 'civicrm_contribution',
725 'entity' => 'Contribution',
726 'bao' => 'CRM_Contribute_BAO_Contribution',
729 'type' => 'CheckBox',
732 'contribution_status_id' => [
733 'name' => 'contribution_status_id',
734 'type' => CRM_Utils_Type
::T_INT
,
735 'title' => ts('Contribution Status ID'),
737 'where' => 'civicrm_contribution.contribution_status_id',
738 'headerPattern' => '/status/i',
741 'table_name' => 'civicrm_contribution',
742 'entity' => 'Contribution',
743 'bao' => 'CRM_Contribute_BAO_Contribution',
748 'pseudoconstant' => [
749 'optionGroupName' => 'contribution_status',
750 'optionEditPath' => 'civicrm/admin/options/contribution_status',
753 'contribution_address_id' => [
754 'name' => 'address_id',
755 'type' => CRM_Utils_Type
::T_INT
,
756 'title' => ts('Contribution Address'),
757 '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.'),
758 'where' => 'civicrm_contribution.address_id',
760 'table_name' => 'civicrm_contribution',
761 'entity' => 'Contribution',
762 'bao' => 'CRM_Contribute_BAO_Contribution',
764 'FKClassName' => 'CRM_Core_DAO_Address',
766 'contribution_check_number' => [
767 'name' => 'check_number',
768 'type' => CRM_Utils_Type
::T_STRING
,
769 'title' => ts('Check Number'),
773 'where' => 'civicrm_contribution.check_number',
774 'headerPattern' => '/check(.?number)?/i',
776 'table_name' => 'civicrm_contribution',
777 'entity' => 'Contribution',
778 'bao' => 'CRM_Contribute_BAO_Contribution',
784 'contribution_campaign_id' => [
785 'name' => 'campaign_id',
786 'type' => CRM_Utils_Type
::T_INT
,
787 'title' => ts('Campaign'),
788 'description' => ts('The campaign for which this contribution has been triggered.'),
790 'where' => 'civicrm_contribution.campaign_id',
792 'table_name' => 'civicrm_contribution',
793 'entity' => 'Contribution',
794 'bao' => 'CRM_Contribute_BAO_Contribution',
796 'FKClassName' => 'CRM_Campaign_DAO_Campaign',
800 'pseudoconstant' => [
801 'table' => 'civicrm_campaign',
803 'labelColumn' => 'title',
807 'name' => 'creditnote_id',
808 'type' => CRM_Utils_Type
::T_STRING
,
809 'title' => ts('Credit Note ID'),
810 'description' => ts('unique credit note id, system generated or passed in'),
812 'size' => CRM_Utils_Type
::HUGE
,
814 'where' => 'civicrm_contribution.creditnote_id',
815 'headerPattern' => '/creditnote(.?id)?/i',
817 'table_name' => 'civicrm_contribution',
818 'entity' => 'Contribution',
819 'bao' => 'CRM_Contribute_BAO_Contribution',
826 'name' => 'tax_amount',
827 'type' => CRM_Utils_Type
::T_MONEY
,
828 'title' => ts('Tax Amount'),
829 'description' => ts('Total tax amount of this contribution.'),
835 'where' => 'civicrm_contribution.tax_amount',
836 'headerPattern' => '/tax(.?am(ou)?nt)?/i',
837 'dataPattern' => '/^\d+(\.\d{2})?$/',
839 'table_name' => 'civicrm_contribution',
840 'entity' => 'Contribution',
841 'bao' => 'CRM_Contribute_BAO_Contribution',
847 'revenue_recognition_date' => [
848 'name' => 'revenue_recognition_date',
849 'type' => CRM_Utils_Type
::T_DATE + CRM_Utils_Type
::T_TIME
,
850 'title' => ts('Revenue Recognition Date'),
851 'description' => ts('Stores the date when revenue should be recognized.'),
853 'where' => 'civicrm_contribution.revenue_recognition_date',
854 'headerPattern' => '/revenue(.?date)?/i',
855 'dataPattern' => '/^\d{4}-?\d{2}-?\d{2} ?(\d{2}:?\d{2}:?(\d{2})?)?$/',
857 'table_name' => 'civicrm_contribution',
858 'entity' => 'Contribution',
859 'bao' => 'CRM_Contribute_BAO_Contribution',
862 'type' => 'Select Date',
863 'formatType' => 'activityDateTime',
867 'name' => 'is_template',
868 'type' => CRM_Utils_Type
::T_BOOLEAN
,
869 'title' => ts('Is a Template Contribution'),
870 'description' => ts('Shows this is a template for recurring contributions.'),
872 'where' => 'civicrm_contribution.is_template',
875 'table_name' => 'civicrm_contribution',
876 'entity' => 'Contribution',
877 'bao' => 'CRM_Contribute_BAO_Contribution',
880 'type' => 'CheckBox',
884 CRM_Core_DAO_AllCoreTables
::invoke(__CLASS__
, 'fields_callback', Civi
::$statics[__CLASS__
]['fields']);
886 return Civi
::$statics[__CLASS__
]['fields'];
890 * Return a mapping from field-name to the corresponding key (as used in fields()).
893 * Array(string $name => string $uniqueName).
895 public static function &fieldKeys() {
896 if (!isset(Civi
::$statics[__CLASS__
]['fieldKeys'])) {
897 Civi
::$statics[__CLASS__
]['fieldKeys'] = array_flip(CRM_Utils_Array
::collect('name', self
::fields()));
899 return Civi
::$statics[__CLASS__
]['fieldKeys'];
903 * Returns the names of this table
907 public static function getTableName() {
908 return self
::$_tableName;
912 * Returns if this table needs to be logged
916 public function getLog() {
921 * Returns the list of fields that can be imported
923 * @param bool $prefix
927 public static function &import($prefix = FALSE) {
928 $r = CRM_Core_DAO_AllCoreTables
::getImports(__CLASS__
, 'contribution', $prefix, []);
933 * Returns the list of fields that can be exported
935 * @param bool $prefix
939 public static function &export($prefix = FALSE) {
940 $r = CRM_Core_DAO_AllCoreTables
::getExports(__CLASS__
, 'contribution', $prefix, []);
945 * Returns the list of indices
947 * @param bool $localize
951 public static function indices($localize = TRUE) {
953 'UI_contrib_payment_instrument_id' => [
954 'name' => 'UI_contrib_payment_instrument_id',
956 0 => 'payment_instrument_id',
958 'localizable' => FALSE,
959 'sig' => 'civicrm_contribution::0::payment_instrument_id',
961 'index_total_amount_receive_date' => [
962 'name' => 'index_total_amount_receive_date',
967 'localizable' => FALSE,
968 'sig' => 'civicrm_contribution::0::total_amount::receive_date',
971 'name' => 'index_source',
975 'localizable' => FALSE,
976 'sig' => 'civicrm_contribution::0::source',
978 'UI_contrib_trxn_id' => [
979 'name' => 'UI_contrib_trxn_id',
983 'localizable' => FALSE,
985 'sig' => 'civicrm_contribution::1::trxn_id',
987 'UI_contrib_invoice_id' => [
988 'name' => 'UI_contrib_invoice_id',
992 'localizable' => FALSE,
994 'sig' => 'civicrm_contribution::1::invoice_id',
996 'index_contribution_status' => [
997 'name' => 'index_contribution_status',
999 0 => 'contribution_status_id',
1001 'localizable' => FALSE,
1002 'sig' => 'civicrm_contribution::0::contribution_status_id',
1004 'received_date' => [
1005 'name' => 'received_date',
1007 0 => 'receive_date',
1009 'localizable' => FALSE,
1010 'sig' => 'civicrm_contribution::0::receive_date',
1013 'name' => 'check_number',
1015 0 => 'check_number',
1017 'localizable' => FALSE,
1018 'sig' => 'civicrm_contribution::0::check_number',
1020 'index_creditnote_id' => [
1021 'name' => 'index_creditnote_id',
1023 0 => 'creditnote_id',
1025 'localizable' => FALSE,
1026 'sig' => 'civicrm_contribution::0::creditnote_id',
1029 return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables
::multilingualize(__CLASS__
, $indices) : $indices;