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:cc3bcdbce84066823084f71e30f6990b)
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 ID'),
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',
341 'label' => ts("Financial Type"),
343 'pseudoconstant' => [
344 'table' => 'civicrm_financial_type',
346 'labelColumn' => 'name',
350 'contribution_page_id' => [
351 'name' => 'contribution_page_id',
352 'type' => CRM_Utils_Type
::T_INT
,
353 'title' => ts('Contribution Page ID'),
354 'description' => ts('The Contribution Page which triggered this contribution'),
356 'where' => 'civicrm_contribution.contribution_page_id',
358 'table_name' => 'civicrm_contribution',
359 'entity' => 'Contribution',
360 'bao' => 'CRM_Contribute_BAO_Contribution',
362 'FKClassName' => 'CRM_Contribute_DAO_ContributionPage',
365 'label' => ts("Contribution Page"),
367 'pseudoconstant' => [
368 'table' => 'civicrm_contribution_page',
370 'labelColumn' => 'title',
374 'payment_instrument_id' => [
375 'name' => 'payment_instrument_id',
376 'type' => CRM_Utils_Type
::T_INT
,
377 'title' => ts('Payment Method ID'),
378 'description' => ts('FK to Payment Instrument'),
379 'where' => 'civicrm_contribution.payment_instrument_id',
380 'headerPattern' => '/^payment|(p(ayment\s)?instrument)$/i',
382 'table_name' => 'civicrm_contribution',
383 'entity' => 'Contribution',
384 'bao' => 'CRM_Contribute_BAO_Contribution',
389 'pseudoconstant' => [
390 'optionGroupName' => 'payment_instrument',
391 'optionEditPath' => 'civicrm/admin/options/payment_instrument',
396 'name' => 'receive_date',
397 'type' => CRM_Utils_Type
::T_DATE + CRM_Utils_Type
::T_TIME
,
398 'title' => ts('Date Received'),
399 'description' => ts('Date contribution was received - not necessarily the creation date of the record'),
401 'where' => 'civicrm_contribution.receive_date',
402 'headerPattern' => '/receive(.?date)?/i',
403 'dataPattern' => '/^\d{4}-?\d{2}-?\d{2} ?(\d{2}:?\d{2}:?(\d{2})?)?$/',
405 'table_name' => 'civicrm_contribution',
406 'entity' => 'Contribution',
407 'bao' => 'CRM_Contribute_BAO_Contribution',
410 'type' => 'Select Date',
411 'formatType' => 'activityDateTime',
415 'non_deductible_amount' => [
416 'name' => 'non_deductible_amount',
417 'type' => CRM_Utils_Type
::T_MONEY
,
418 'title' => ts('Non-deductible Amount'),
419 'description' => ts('Portion of total amount which is NOT tax deductible. Equal to total_amount for non-deductible financial types.'),
425 'where' => 'civicrm_contribution.non_deductible_amount',
426 'headerPattern' => '/non?.?deduct/i',
427 'dataPattern' => '/^\d+(\.\d{2})?$/',
430 'table_name' => 'civicrm_contribution',
431 'entity' => 'Contribution',
432 'bao' => 'CRM_Contribute_BAO_Contribution',
440 'name' => 'total_amount',
441 'type' => CRM_Utils_Type
::T_MONEY
,
442 'title' => ts('Total Amount'),
443 'description' => ts('Total amount of this contribution. Use market value for non-monetary gifts.'),
450 'where' => 'civicrm_contribution.total_amount',
451 'headerPattern' => '/^total|(.?^am(ou)?nt)/i',
452 'dataPattern' => '/^\d+(\.\d{2})?$/',
454 'table_name' => 'civicrm_contribution',
455 'entity' => 'Contribution',
456 'bao' => 'CRM_Contribute_BAO_Contribution',
464 'name' => 'fee_amount',
465 'type' => CRM_Utils_Type
::T_MONEY
,
466 'title' => ts('Fee Amount'),
467 'description' => ts('actual processor fee if known - may be 0.'),
473 'where' => 'civicrm_contribution.fee_amount',
474 'headerPattern' => '/fee(.?am(ou)?nt)?/i',
475 'dataPattern' => '/^\d+(\.\d{2})?$/',
477 'table_name' => 'civicrm_contribution',
478 'entity' => 'Contribution',
479 'bao' => 'CRM_Contribute_BAO_Contribution',
487 'name' => 'net_amount',
488 'type' => CRM_Utils_Type
::T_MONEY
,
489 'title' => ts('Net Amount'),
490 'description' => ts('actual funds transfer amount. total less fees. if processor does not report actual fee during transaction, this is set to total_amount.'),
496 'where' => 'civicrm_contribution.net_amount',
497 'headerPattern' => '/net(.?am(ou)?nt)?/i',
498 'dataPattern' => '/^\d+(\.\d{2})?$/',
500 'table_name' => 'civicrm_contribution',
501 'entity' => 'Contribution',
502 'bao' => 'CRM_Contribute_BAO_Contribution',
511 'type' => CRM_Utils_Type
::T_STRING
,
512 'title' => ts('Transaction ID'),
513 'description' => ts('unique transaction id. may be processor id, bank id + trans id, or account number + check number... depending on payment_method'),
515 'size' => CRM_Utils_Type
::HUGE
,
517 'where' => 'civicrm_contribution.trxn_id',
518 'headerPattern' => '/tr(ansactio|x)n(.?id)?/i',
520 'table_name' => 'civicrm_contribution',
521 'entity' => 'Contribution',
522 'bao' => 'CRM_Contribute_BAO_Contribution',
530 'name' => 'invoice_id',
531 'type' => CRM_Utils_Type
::T_STRING
,
532 'title' => ts('Invoice Reference'),
533 'description' => ts('unique invoice id, system generated or passed in'),
535 'size' => CRM_Utils_Type
::HUGE
,
537 'where' => 'civicrm_contribution.invoice_id',
538 'headerPattern' => '/invoice(.?id)?/i',
540 'table_name' => 'civicrm_contribution',
541 'entity' => 'Contribution',
542 'bao' => 'CRM_Contribute_BAO_Contribution',
549 'invoice_number' => [
550 'name' => 'invoice_number',
551 'type' => CRM_Utils_Type
::T_STRING
,
552 'title' => ts('Invoice Number'),
553 'description' => ts('Human readable invoice number'),
555 'size' => CRM_Utils_Type
::HUGE
,
557 'where' => 'civicrm_contribution.invoice_number',
558 'headerPattern' => '/invoice(.?number)?/i',
560 'table_name' => 'civicrm_contribution',
561 'entity' => 'Contribution',
562 'bao' => 'CRM_Contribute_BAO_Contribution',
570 'name' => 'currency',
571 'type' => CRM_Utils_Type
::T_STRING
,
572 'title' => ts('Currency'),
573 'description' => ts('3 character string, value from config setting or input via user.'),
575 'size' => CRM_Utils_Type
::FOUR
,
577 'where' => 'civicrm_contribution.currency',
578 'headerPattern' => '/cur(rency)?/i',
579 'dataPattern' => '/^[A-Z]{3}$/i',
582 'table_name' => 'civicrm_contribution',
583 'entity' => 'Contribution',
584 'bao' => 'CRM_Contribute_BAO_Contribution',
589 'pseudoconstant' => [
590 'table' => 'civicrm_currency',
591 'keyColumn' => 'name',
592 'labelColumn' => 'full_name',
593 'nameColumn' => 'name',
594 'abbrColumn' => 'symbol',
598 'contribution_cancel_date' => [
599 'name' => 'cancel_date',
600 'type' => CRM_Utils_Type
::T_DATE + CRM_Utils_Type
::T_TIME
,
601 'title' => ts('Cancelled / Refunded Date'),
602 'description' => ts('when was gift cancelled'),
604 'where' => 'civicrm_contribution.cancel_date',
605 'headerPattern' => '/cancel(.?date)?/i',
606 'dataPattern' => '/^\d{4}-?\d{2}-?\d{2} ?(\d{2}:?\d{2}:?(\d{2})?)?$/',
608 'table_name' => 'civicrm_contribution',
609 'entity' => 'Contribution',
610 'bao' => 'CRM_Contribute_BAO_Contribution',
613 'type' => 'Select Date',
614 'formatType' => 'activityDateTime',
619 'name' => 'cancel_reason',
620 'type' => CRM_Utils_Type
::T_TEXT
,
621 'title' => ts('Cancellation / Refund Reason'),
623 'where' => 'civicrm_contribution.cancel_reason',
624 'headerPattern' => '/(cancel.?)?reason/i',
626 'table_name' => 'civicrm_contribution',
627 'entity' => 'Contribution',
628 'bao' => 'CRM_Contribute_BAO_Contribution',
636 'name' => 'receipt_date',
637 'type' => CRM_Utils_Type
::T_DATE + CRM_Utils_Type
::T_TIME
,
638 'title' => ts('Receipt Date'),
639 'description' => ts('when (if) receipt was sent. populated automatically for online donations w/ automatic receipting'),
641 'where' => 'civicrm_contribution.receipt_date',
642 'headerPattern' => '/receipt(.?date)?/i',
643 'dataPattern' => '/^\d{4}-?\d{2}-?\d{2} ?(\d{2}:?\d{2}:?(\d{2})?)?$/',
645 'table_name' => 'civicrm_contribution',
646 'entity' => 'Contribution',
647 'bao' => 'CRM_Contribute_BAO_Contribution',
650 'type' => 'Select Date',
651 'formatType' => 'activityDateTime',
656 'name' => 'thankyou_date',
657 'type' => CRM_Utils_Type
::T_DATE + CRM_Utils_Type
::T_TIME
,
658 'title' => ts('Thank-you Date'),
659 'description' => ts('when (if) was donor thanked'),
661 'where' => 'civicrm_contribution.thankyou_date',
662 'headerPattern' => '/thank(s|(.?you))?(.?date)?/i',
663 'dataPattern' => '/^\d{4}-?\d{2}-?\d{2} ?(\d{2}:?\d{2}:?(\d{2})?)?$/',
665 'table_name' => 'civicrm_contribution',
666 'entity' => 'Contribution',
667 'bao' => 'CRM_Contribute_BAO_Contribution',
670 'type' => 'Select Date',
671 'formatType' => 'activityDateTime',
675 'contribution_source' => [
677 'type' => CRM_Utils_Type
::T_STRING
,
678 'title' => ts('Contribution Source'),
679 'description' => ts('Origin of this Contribution.'),
681 'size' => CRM_Utils_Type
::HUGE
,
683 'where' => 'civicrm_contribution.source',
684 'headerPattern' => '/source/i',
686 'table_name' => 'civicrm_contribution',
687 'entity' => 'Contribution',
688 'bao' => 'CRM_Contribute_BAO_Contribution',
696 'name' => 'amount_level',
697 'type' => CRM_Utils_Type
::T_TEXT
,
698 'title' => ts('Amount Label'),
700 'where' => 'civicrm_contribution.amount_level',
702 'table_name' => 'civicrm_contribution',
703 'entity' => 'Contribution',
704 'bao' => 'CRM_Contribute_BAO_Contribution',
711 'contribution_recur_id' => [
712 'name' => 'contribution_recur_id',
713 'type' => CRM_Utils_Type
::T_INT
,
714 'title' => ts('Recurring Contribution ID'),
715 '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.'),
716 'where' => 'civicrm_contribution.contribution_recur_id',
718 'table_name' => 'civicrm_contribution',
719 'entity' => 'Contribution',
720 'bao' => 'CRM_Contribute_BAO_Contribution',
722 'FKClassName' => 'CRM_Contribute_DAO_ContributionRecur',
727 'type' => CRM_Utils_Type
::T_BOOLEAN
,
728 'title' => ts('Test'),
730 'where' => 'civicrm_contribution.is_test',
733 'table_name' => 'civicrm_contribution',
734 'entity' => 'Contribution',
735 'bao' => 'CRM_Contribute_BAO_Contribution',
738 'type' => 'CheckBox',
743 'name' => 'is_pay_later',
744 'type' => CRM_Utils_Type
::T_BOOLEAN
,
745 'title' => ts('Is Pay Later'),
747 'where' => 'civicrm_contribution.is_pay_later',
750 'table_name' => 'civicrm_contribution',
751 'entity' => 'Contribution',
752 'bao' => 'CRM_Contribute_BAO_Contribution',
755 'type' => 'CheckBox',
759 'contribution_status_id' => [
760 'name' => 'contribution_status_id',
761 'type' => CRM_Utils_Type
::T_INT
,
762 'title' => ts('Contribution Status ID'),
764 'where' => 'civicrm_contribution.contribution_status_id',
765 'headerPattern' => '/status/i',
768 'table_name' => 'civicrm_contribution',
769 'entity' => 'Contribution',
770 'bao' => 'CRM_Contribute_BAO_Contribution',
775 'pseudoconstant' => [
776 'optionGroupName' => 'contribution_status',
777 'optionEditPath' => 'civicrm/admin/options/contribution_status',
781 'contribution_address_id' => [
782 'name' => 'address_id',
783 'type' => CRM_Utils_Type
::T_INT
,
784 'title' => ts('Contribution Address'),
785 '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.'),
786 'where' => 'civicrm_contribution.address_id',
788 'table_name' => 'civicrm_contribution',
789 'entity' => 'Contribution',
790 'bao' => 'CRM_Contribute_BAO_Contribution',
792 'FKClassName' => 'CRM_Core_DAO_Address',
795 'contribution_check_number' => [
796 'name' => 'check_number',
797 'type' => CRM_Utils_Type
::T_STRING
,
798 'title' => ts('Check Number'),
802 'where' => 'civicrm_contribution.check_number',
803 'headerPattern' => '/check(.?number)?/i',
805 'table_name' => 'civicrm_contribution',
806 'entity' => 'Contribution',
807 'bao' => 'CRM_Contribute_BAO_Contribution',
814 'contribution_campaign_id' => [
815 'name' => 'campaign_id',
816 'type' => CRM_Utils_Type
::T_INT
,
817 'title' => ts('Campaign'),
818 'description' => ts('The campaign for which this contribution has been triggered.'),
820 'where' => 'civicrm_contribution.campaign_id',
822 'table_name' => 'civicrm_contribution',
823 'entity' => 'Contribution',
824 'bao' => 'CRM_Contribute_BAO_Contribution',
826 'FKClassName' => 'CRM_Campaign_DAO_Campaign',
830 'pseudoconstant' => [
831 'table' => 'civicrm_campaign',
833 'labelColumn' => 'title',
838 'name' => 'creditnote_id',
839 'type' => CRM_Utils_Type
::T_STRING
,
840 'title' => ts('Credit Note ID'),
841 'description' => ts('unique credit note id, system generated or passed in'),
843 'size' => CRM_Utils_Type
::HUGE
,
845 'where' => 'civicrm_contribution.creditnote_id',
846 'headerPattern' => '/creditnote(.?id)?/i',
848 'table_name' => 'civicrm_contribution',
849 'entity' => 'Contribution',
850 'bao' => 'CRM_Contribute_BAO_Contribution',
858 'name' => 'tax_amount',
859 'type' => CRM_Utils_Type
::T_MONEY
,
860 'title' => ts('Tax Amount'),
861 'description' => ts('Total tax amount of this contribution.'),
867 'where' => 'civicrm_contribution.tax_amount',
868 'headerPattern' => '/tax(.?am(ou)?nt)?/i',
869 'dataPattern' => '/^\d+(\.\d{2})?$/',
871 'table_name' => 'civicrm_contribution',
872 'entity' => 'Contribution',
873 'bao' => 'CRM_Contribute_BAO_Contribution',
880 'revenue_recognition_date' => [
881 'name' => 'revenue_recognition_date',
882 'type' => CRM_Utils_Type
::T_DATE + CRM_Utils_Type
::T_TIME
,
883 'title' => ts('Revenue Recognition Date'),
884 'description' => ts('Stores the date when revenue should be recognized.'),
886 'where' => 'civicrm_contribution.revenue_recognition_date',
887 'headerPattern' => '/revenue(.?date)?/i',
888 'dataPattern' => '/^\d{4}-?\d{2}-?\d{2} ?(\d{2}:?\d{2}:?(\d{2})?)?$/',
890 'table_name' => 'civicrm_contribution',
891 'entity' => 'Contribution',
892 'bao' => 'CRM_Contribute_BAO_Contribution',
895 'type' => 'Select Date',
896 'formatType' => 'activityDateTime',
901 'name' => 'is_template',
902 'type' => CRM_Utils_Type
::T_BOOLEAN
,
903 'title' => ts('Is a Template Contribution'),
904 'description' => ts('Shows this is a template for recurring contributions.'),
906 'where' => 'civicrm_contribution.is_template',
909 'table_name' => 'civicrm_contribution',
910 'entity' => 'Contribution',
911 'bao' => 'CRM_Contribute_BAO_Contribution',
914 'type' => 'CheckBox',
919 CRM_Core_DAO_AllCoreTables
::invoke(__CLASS__
, 'fields_callback', Civi
::$statics[__CLASS__
]['fields']);
921 return Civi
::$statics[__CLASS__
]['fields'];
925 * Return a mapping from field-name to the corresponding key (as used in fields()).
928 * Array(string $name => string $uniqueName).
930 public static function &fieldKeys() {
931 if (!isset(Civi
::$statics[__CLASS__
]['fieldKeys'])) {
932 Civi
::$statics[__CLASS__
]['fieldKeys'] = array_flip(CRM_Utils_Array
::collect('name', self
::fields()));
934 return Civi
::$statics[__CLASS__
]['fieldKeys'];
938 * Returns the names of this table
942 public static function getTableName() {
943 return self
::$_tableName;
947 * Returns if this table needs to be logged
951 public function getLog() {
956 * Returns the list of fields that can be imported
958 * @param bool $prefix
962 public static function &import($prefix = FALSE) {
963 $r = CRM_Core_DAO_AllCoreTables
::getImports(__CLASS__
, 'contribution', $prefix, []);
968 * Returns the list of fields that can be exported
970 * @param bool $prefix
974 public static function &export($prefix = FALSE) {
975 $r = CRM_Core_DAO_AllCoreTables
::getExports(__CLASS__
, 'contribution', $prefix, []);
980 * Returns the list of indices
982 * @param bool $localize
986 public static function indices($localize = TRUE) {
988 'UI_contrib_payment_instrument_id' => [
989 'name' => 'UI_contrib_payment_instrument_id',
991 0 => 'payment_instrument_id',
993 'localizable' => FALSE,
994 'sig' => 'civicrm_contribution::0::payment_instrument_id',
996 'index_total_amount_receive_date' => [
997 'name' => 'index_total_amount_receive_date',
1000 1 => 'receive_date',
1002 'localizable' => FALSE,
1003 'sig' => 'civicrm_contribution::0::total_amount::receive_date',
1006 'name' => 'index_source',
1010 'localizable' => FALSE,
1011 'sig' => 'civicrm_contribution::0::source',
1013 'UI_contrib_trxn_id' => [
1014 'name' => 'UI_contrib_trxn_id',
1018 'localizable' => FALSE,
1020 'sig' => 'civicrm_contribution::1::trxn_id',
1022 'UI_contrib_invoice_id' => [
1023 'name' => 'UI_contrib_invoice_id',
1027 'localizable' => FALSE,
1029 'sig' => 'civicrm_contribution::1::invoice_id',
1031 'index_contribution_status' => [
1032 'name' => 'index_contribution_status',
1034 0 => 'contribution_status_id',
1036 'localizable' => FALSE,
1037 'sig' => 'civicrm_contribution::0::contribution_status_id',
1039 'received_date' => [
1040 'name' => 'received_date',
1042 0 => 'receive_date',
1044 'localizable' => FALSE,
1045 'sig' => 'civicrm_contribution::0::receive_date',
1048 'name' => 'check_number',
1050 0 => 'check_number',
1052 'localizable' => FALSE,
1053 'sig' => 'civicrm_contribution::0::check_number',
1055 'index_creditnote_id' => [
1056 'name' => 'index_creditnote_id',
1058 0 => 'creditnote_id',
1060 'localizable' => FALSE,
1061 'sig' => 'civicrm_contribution::0::creditnote_id',
1064 return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables
::multilingualize(__CLASS__
, $indices) : $indices;