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:389ae44affe94e52a14c9c6daa79be1d)
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 * Should CiviCRM log any modifications to this table in the civicrm_log table.
29 public static $_log = TRUE;
46 * FK to Financial Type for (total_amount - non_deductible_amount).
50 public $financial_type_id;
53 * The Contribution Page which triggered this contribution
57 public $contribution_page_id;
60 * FK to Payment Instrument
64 public $payment_instrument_id;
67 * Date contribution was received - not necessarily the creation date of the record
74 * Portion of total amount which is NOT tax deductible. Equal to total_amount for non-deductible financial types.
78 public $non_deductible_amount;
81 * Total amount of this contribution. Use market value for non-monetary gifts.
88 * actual processor fee if known - may be 0.
95 * actual funds transfer amount. total less fees. if processor does not report actual fee during transaction, this is set to total_amount.
102 * unique transaction id. may be processor id, bank id + trans id, or account number + check number... depending on payment_method
109 * unique invoice id, system generated or passed in
116 * Human readable invoice number
120 public $invoice_number;
123 * 3 character string, value from config setting or input via user.
130 * when was gift cancelled
139 public $cancel_reason;
142 * when (if) receipt was sent. populated automatically for online donations w/ automatic receipting
146 public $receipt_date;
149 * when (if) was donor thanked
153 public $thankyou_date;
156 * Origin of this Contribution.
165 public $amount_level;
168 * 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.
172 public $contribution_recur_id;
182 public $is_pay_later;
187 public $contribution_status_id;
190 * Conditional foreign key to civicrm_address.id. We insert an address record for each contribution when we have associated billing name and address data.
199 public $check_number;
202 * The campaign for which this contribution has been triggered.
209 * unique credit note id, system generated or passed in
213 public $creditnote_id;
216 * Total tax amount of this contribution.
223 * Stores the date when revenue should be recognized.
227 public $revenue_recognition_date;
230 * Shows this is a template for recurring contributions.
239 public function __construct() {
240 $this->__table
= 'civicrm_contribution';
241 parent
::__construct();
245 * Returns foreign keys and entity references.
248 * [CRM_Core_Reference_Interface]
250 public static function getReferenceColumns() {
251 if (!isset(Civi
::$statics[__CLASS__
]['links'])) {
252 Civi
::$statics[__CLASS__
]['links'] = static::createReferenceColumns(__CLASS__
);
253 Civi
::$statics[__CLASS__
]['links'][] = new CRM_Core_Reference_Basic(self
::getTableName(), 'contact_id', 'civicrm_contact', 'id');
254 Civi
::$statics[__CLASS__
]['links'][] = new CRM_Core_Reference_Basic(self
::getTableName(), 'financial_type_id', 'civicrm_financial_type', 'id');
255 Civi
::$statics[__CLASS__
]['links'][] = new CRM_Core_Reference_Basic(self
::getTableName(), 'contribution_page_id', 'civicrm_contribution_page', 'id');
256 Civi
::$statics[__CLASS__
]['links'][] = new CRM_Core_Reference_Basic(self
::getTableName(), 'contribution_recur_id', 'civicrm_contribution_recur', 'id');
257 Civi
::$statics[__CLASS__
]['links'][] = new CRM_Core_Reference_Basic(self
::getTableName(), 'address_id', 'civicrm_address', 'id');
258 Civi
::$statics[__CLASS__
]['links'][] = new CRM_Core_Reference_Basic(self
::getTableName(), 'campaign_id', 'civicrm_campaign', 'id');
259 CRM_Core_DAO_AllCoreTables
::invoke(__CLASS__
, 'links_callback', Civi
::$statics[__CLASS__
]['links']);
261 return Civi
::$statics[__CLASS__
]['links'];
265 * Returns all the column names of this table
269 public static function &fields() {
270 if (!isset(Civi
::$statics[__CLASS__
]['fields'])) {
271 Civi
::$statics[__CLASS__
]['fields'] = [
272 'contribution_id' => [
274 'type' => CRM_Utils_Type
::T_INT
,
275 'title' => ts('Contribution ID'),
276 'description' => ts('Contribution ID'),
279 'where' => 'civicrm_contribution.id',
281 'table_name' => 'civicrm_contribution',
282 'entity' => 'Contribution',
283 'bao' => 'CRM_Contribute_BAO_Contribution',
286 'contribution_contact_id' => [
287 'name' => 'contact_id',
288 'type' => CRM_Utils_Type
::T_INT
,
289 'title' => ts('Contact ID'),
290 'description' => ts('FK to Contact ID'),
293 'where' => 'civicrm_contribution.contact_id',
294 'headerPattern' => '/contact(.?id)?/i',
295 'dataPattern' => '/^\d+$/',
297 'table_name' => 'civicrm_contribution',
298 'entity' => 'Contribution',
299 'bao' => 'CRM_Contribute_BAO_Contribution',
301 'FKClassName' => 'CRM_Contact_DAO_Contact',
303 'type' => 'EntityRef',
306 'financial_type_id' => [
307 'name' => 'financial_type_id',
308 'type' => CRM_Utils_Type
::T_INT
,
309 'title' => ts('Financial Type'),
310 'description' => ts('FK to Financial Type for (total_amount - non_deductible_amount).'),
311 'where' => 'civicrm_contribution.financial_type_id',
313 'table_name' => 'civicrm_contribution',
314 'entity' => 'Contribution',
315 'bao' => 'CRM_Contribute_BAO_Contribution',
317 'FKClassName' => 'CRM_Financial_DAO_FinancialType',
321 'pseudoconstant' => [
322 'table' => 'civicrm_financial_type',
324 'labelColumn' => 'name',
327 'contribution_page_id' => [
328 'name' => 'contribution_page_id',
329 'type' => CRM_Utils_Type
::T_INT
,
330 'title' => ts('Contribution Page ID'),
331 'description' => ts('The Contribution Page which triggered this contribution'),
333 'where' => 'civicrm_contribution.contribution_page_id',
335 'table_name' => 'civicrm_contribution',
336 'entity' => 'Contribution',
337 'bao' => 'CRM_Contribute_BAO_Contribution',
339 'FKClassName' => 'CRM_Contribute_DAO_ContributionPage',
343 'pseudoconstant' => [
344 'table' => 'civicrm_contribution_page',
346 'labelColumn' => 'title',
349 'payment_instrument_id' => [
350 'name' => 'payment_instrument_id',
351 'type' => CRM_Utils_Type
::T_INT
,
352 'title' => ts('Payment Method ID'),
353 'description' => ts('FK to Payment Instrument'),
354 'where' => 'civicrm_contribution.payment_instrument_id',
355 'headerPattern' => '/^payment|(p(ayment\s)?instrument)$/i',
357 'table_name' => 'civicrm_contribution',
358 'entity' => 'Contribution',
359 'bao' => 'CRM_Contribute_BAO_Contribution',
364 'pseudoconstant' => [
365 'optionGroupName' => 'payment_instrument',
366 'optionEditPath' => 'civicrm/admin/options/payment_instrument',
370 'name' => 'receive_date',
371 'type' => CRM_Utils_Type
::T_DATE + CRM_Utils_Type
::T_TIME
,
372 'title' => ts('Date Received'),
373 'description' => ts('Date contribution was received - not necessarily the creation date of the record'),
375 'where' => 'civicrm_contribution.receive_date',
376 'headerPattern' => '/receive(.?date)?/i',
377 'dataPattern' => '/^\d{4}-?\d{2}-?\d{2} ?(\d{2}:?\d{2}:?(\d{2})?)?$/',
379 'table_name' => 'civicrm_contribution',
380 'entity' => 'Contribution',
381 'bao' => 'CRM_Contribute_BAO_Contribution',
384 'type' => 'Select Date',
385 'formatType' => 'activityDateTime',
388 'non_deductible_amount' => [
389 'name' => 'non_deductible_amount',
390 'type' => CRM_Utils_Type
::T_MONEY
,
391 'title' => ts('Non-deductible Amount'),
392 'description' => ts('Portion of total amount which is NOT tax deductible. Equal to total_amount for non-deductible financial types.'),
398 'where' => 'civicrm_contribution.non_deductible_amount',
399 'headerPattern' => '/non?.?deduct/i',
400 'dataPattern' => '/^\d+(\.\d{2})?$/',
403 'table_name' => 'civicrm_contribution',
404 'entity' => 'Contribution',
405 'bao' => 'CRM_Contribute_BAO_Contribution',
412 'name' => 'total_amount',
413 'type' => CRM_Utils_Type
::T_MONEY
,
414 'title' => ts('Total Amount'),
415 'description' => ts('Total amount of this contribution. Use market value for non-monetary gifts.'),
422 'where' => 'civicrm_contribution.total_amount',
423 'headerPattern' => '/^total|(.?^am(ou)?nt)/i',
424 'dataPattern' => '/^\d+(\.\d{2})?$/',
426 'table_name' => 'civicrm_contribution',
427 'entity' => 'Contribution',
428 'bao' => 'CRM_Contribute_BAO_Contribution',
435 'name' => 'fee_amount',
436 'type' => CRM_Utils_Type
::T_MONEY
,
437 'title' => ts('Fee Amount'),
438 'description' => ts('actual processor fee if known - may be 0.'),
444 'where' => 'civicrm_contribution.fee_amount',
445 'headerPattern' => '/fee(.?am(ou)?nt)?/i',
446 'dataPattern' => '/^\d+(\.\d{2})?$/',
448 'table_name' => 'civicrm_contribution',
449 'entity' => 'Contribution',
450 'bao' => 'CRM_Contribute_BAO_Contribution',
457 'name' => 'net_amount',
458 'type' => CRM_Utils_Type
::T_MONEY
,
459 'title' => ts('Net Amount'),
460 'description' => ts('actual funds transfer amount. total less fees. if processor does not report actual fee during transaction, this is set to total_amount.'),
466 'where' => 'civicrm_contribution.net_amount',
467 'headerPattern' => '/net(.?am(ou)?nt)?/i',
468 'dataPattern' => '/^\d+(\.\d{2})?$/',
470 'table_name' => 'civicrm_contribution',
471 'entity' => 'Contribution',
472 'bao' => 'CRM_Contribute_BAO_Contribution',
480 'type' => CRM_Utils_Type
::T_STRING
,
481 'title' => ts('Transaction ID'),
482 'description' => ts('unique transaction id. may be processor id, bank id + trans id, or account number + check number... depending on payment_method'),
484 'size' => CRM_Utils_Type
::HUGE
,
486 'where' => 'civicrm_contribution.trxn_id',
487 'headerPattern' => '/tr(ansactio|x)n(.?id)?/i',
489 'table_name' => 'civicrm_contribution',
490 'entity' => 'Contribution',
491 'bao' => 'CRM_Contribute_BAO_Contribution',
498 'name' => 'invoice_id',
499 'type' => CRM_Utils_Type
::T_STRING
,
500 'title' => ts('Invoice Reference'),
501 'description' => ts('unique invoice id, system generated or passed in'),
503 'size' => CRM_Utils_Type
::HUGE
,
505 'where' => 'civicrm_contribution.invoice_id',
506 'headerPattern' => '/invoice(.?id)?/i',
508 'table_name' => 'civicrm_contribution',
509 'entity' => 'Contribution',
510 'bao' => 'CRM_Contribute_BAO_Contribution',
516 'invoice_number' => [
517 'name' => 'invoice_number',
518 'type' => CRM_Utils_Type
::T_STRING
,
519 'title' => ts('Invoice Number'),
520 'description' => ts('Human readable invoice number'),
522 'size' => CRM_Utils_Type
::HUGE
,
524 'where' => 'civicrm_contribution.invoice_number',
525 'headerPattern' => '/invoice(.?number)?/i',
527 'table_name' => 'civicrm_contribution',
528 'entity' => 'Contribution',
529 'bao' => 'CRM_Contribute_BAO_Contribution',
536 'name' => 'currency',
537 'type' => CRM_Utils_Type
::T_STRING
,
538 'title' => ts('Currency'),
539 'description' => ts('3 character string, value from config setting or input via user.'),
541 'size' => CRM_Utils_Type
::FOUR
,
543 'where' => 'civicrm_contribution.currency',
544 'headerPattern' => '/cur(rency)?/i',
545 'dataPattern' => '/^[A-Z]{3}$/i',
548 'table_name' => 'civicrm_contribution',
549 'entity' => 'Contribution',
550 'bao' => 'CRM_Contribute_BAO_Contribution',
555 'pseudoconstant' => [
556 'table' => 'civicrm_currency',
557 'keyColumn' => 'name',
558 'labelColumn' => 'full_name',
559 'nameColumn' => 'name',
560 'abbrColumn' => 'symbol',
563 'contribution_cancel_date' => [
564 'name' => 'cancel_date',
565 'type' => CRM_Utils_Type
::T_DATE + CRM_Utils_Type
::T_TIME
,
566 'title' => ts('Cancelled / Refunded Date'),
567 'description' => ts('when was gift cancelled'),
569 'where' => 'civicrm_contribution.cancel_date',
570 'headerPattern' => '/cancel(.?date)?/i',
571 'dataPattern' => '/^\d{4}-?\d{2}-?\d{2} ?(\d{2}:?\d{2}:?(\d{2})?)?$/',
573 'table_name' => 'civicrm_contribution',
574 'entity' => 'Contribution',
575 'bao' => 'CRM_Contribute_BAO_Contribution',
578 'type' => 'Select Date',
579 'formatType' => 'activityDateTime',
583 'name' => 'cancel_reason',
584 'type' => CRM_Utils_Type
::T_TEXT
,
585 'title' => ts('Cancellation / Refund Reason'),
587 'where' => 'civicrm_contribution.cancel_reason',
588 'headerPattern' => '/(cancel.?)?reason/i',
590 'table_name' => 'civicrm_contribution',
591 'entity' => 'Contribution',
592 'bao' => 'CRM_Contribute_BAO_Contribution',
599 'name' => 'receipt_date',
600 'type' => CRM_Utils_Type
::T_DATE + CRM_Utils_Type
::T_TIME
,
601 'title' => ts('Receipt Date'),
602 'description' => ts('when (if) receipt was sent. populated automatically for online donations w/ automatic receipting'),
604 'where' => 'civicrm_contribution.receipt_date',
605 'headerPattern' => '/receipt(.?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',
618 'name' => 'thankyou_date',
619 'type' => CRM_Utils_Type
::T_DATE + CRM_Utils_Type
::T_TIME
,
620 'title' => ts('Thank-you Date'),
621 'description' => ts('when (if) was donor thanked'),
623 'where' => 'civicrm_contribution.thankyou_date',
624 'headerPattern' => '/thank(s|(.?you))?(.?date)?/i',
625 'dataPattern' => '/^\d{4}-?\d{2}-?\d{2} ?(\d{2}:?\d{2}:?(\d{2})?)?$/',
627 'table_name' => 'civicrm_contribution',
628 'entity' => 'Contribution',
629 'bao' => 'CRM_Contribute_BAO_Contribution',
632 'type' => 'Select Date',
633 'formatType' => 'activityDateTime',
636 'contribution_source' => [
638 'type' => CRM_Utils_Type
::T_STRING
,
639 'title' => ts('Contribution Source'),
640 'description' => ts('Origin of this Contribution.'),
642 'size' => CRM_Utils_Type
::HUGE
,
644 'where' => 'civicrm_contribution.source',
645 'headerPattern' => '/source/i',
647 'table_name' => 'civicrm_contribution',
648 'entity' => 'Contribution',
649 'bao' => 'CRM_Contribute_BAO_Contribution',
656 'name' => 'amount_level',
657 'type' => CRM_Utils_Type
::T_TEXT
,
658 'title' => ts('Amount Label'),
660 'where' => 'civicrm_contribution.amount_level',
662 'table_name' => 'civicrm_contribution',
663 'entity' => 'Contribution',
664 'bao' => 'CRM_Contribute_BAO_Contribution',
670 'contribution_recur_id' => [
671 'name' => 'contribution_recur_id',
672 'type' => CRM_Utils_Type
::T_INT
,
673 'title' => ts('Recurring Contribution ID'),
674 '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.'),
675 'where' => 'civicrm_contribution.contribution_recur_id',
677 'table_name' => 'civicrm_contribution',
678 'entity' => 'Contribution',
679 'bao' => 'CRM_Contribute_BAO_Contribution',
681 'FKClassName' => 'CRM_Contribute_DAO_ContributionRecur',
685 'type' => CRM_Utils_Type
::T_BOOLEAN
,
686 'title' => ts('Test'),
688 'where' => 'civicrm_contribution.is_test',
691 'table_name' => 'civicrm_contribution',
692 'entity' => 'Contribution',
693 'bao' => 'CRM_Contribute_BAO_Contribution',
696 'type' => 'CheckBox',
700 'name' => 'is_pay_later',
701 'type' => CRM_Utils_Type
::T_BOOLEAN
,
702 'title' => ts('Is Pay Later'),
704 'where' => 'civicrm_contribution.is_pay_later',
707 'table_name' => 'civicrm_contribution',
708 'entity' => 'Contribution',
709 'bao' => 'CRM_Contribute_BAO_Contribution',
712 'type' => 'CheckBox',
715 'contribution_status_id' => [
716 'name' => 'contribution_status_id',
717 'type' => CRM_Utils_Type
::T_INT
,
718 'title' => ts('Contribution Status ID'),
720 'where' => 'civicrm_contribution.contribution_status_id',
721 'headerPattern' => '/status/i',
724 'table_name' => 'civicrm_contribution',
725 'entity' => 'Contribution',
726 'bao' => 'CRM_Contribute_BAO_Contribution',
731 'pseudoconstant' => [
732 'optionGroupName' => 'contribution_status',
733 'optionEditPath' => 'civicrm/admin/options/contribution_status',
736 'contribution_address_id' => [
737 'name' => 'address_id',
738 'type' => CRM_Utils_Type
::T_INT
,
739 'title' => ts('Contribution Address'),
740 '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.'),
741 'where' => 'civicrm_contribution.address_id',
743 'table_name' => 'civicrm_contribution',
744 'entity' => 'Contribution',
745 'bao' => 'CRM_Contribute_BAO_Contribution',
747 'FKClassName' => 'CRM_Core_DAO_Address',
749 'contribution_check_number' => [
750 'name' => 'check_number',
751 'type' => CRM_Utils_Type
::T_STRING
,
752 'title' => ts('Check Number'),
756 'where' => 'civicrm_contribution.check_number',
757 'headerPattern' => '/check(.?number)?/i',
759 'table_name' => 'civicrm_contribution',
760 'entity' => 'Contribution',
761 'bao' => 'CRM_Contribute_BAO_Contribution',
767 'contribution_campaign_id' => [
768 'name' => 'campaign_id',
769 'type' => CRM_Utils_Type
::T_INT
,
770 'title' => ts('Campaign'),
771 'description' => ts('The campaign for which this contribution has been triggered.'),
773 'where' => 'civicrm_contribution.campaign_id',
775 'table_name' => 'civicrm_contribution',
776 'entity' => 'Contribution',
777 'bao' => 'CRM_Contribute_BAO_Contribution',
779 'FKClassName' => 'CRM_Campaign_DAO_Campaign',
783 'pseudoconstant' => [
784 'table' => 'civicrm_campaign',
786 'labelColumn' => 'title',
790 'name' => 'creditnote_id',
791 'type' => CRM_Utils_Type
::T_STRING
,
792 'title' => ts('Credit Note ID'),
793 'description' => ts('unique credit note id, system generated or passed in'),
795 'size' => CRM_Utils_Type
::HUGE
,
797 'where' => 'civicrm_contribution.creditnote_id',
798 'headerPattern' => '/creditnote(.?id)?/i',
800 'table_name' => 'civicrm_contribution',
801 'entity' => 'Contribution',
802 'bao' => 'CRM_Contribute_BAO_Contribution',
809 'name' => 'tax_amount',
810 'type' => CRM_Utils_Type
::T_MONEY
,
811 'title' => ts('Tax Amount'),
812 'description' => ts('Total tax amount of this contribution.'),
818 'where' => 'civicrm_contribution.tax_amount',
819 'headerPattern' => '/tax(.?am(ou)?nt)?/i',
820 'dataPattern' => '/^\d+(\.\d{2})?$/',
822 'table_name' => 'civicrm_contribution',
823 'entity' => 'Contribution',
824 'bao' => 'CRM_Contribute_BAO_Contribution',
830 'revenue_recognition_date' => [
831 'name' => 'revenue_recognition_date',
832 'type' => CRM_Utils_Type
::T_DATE + CRM_Utils_Type
::T_TIME
,
833 'title' => ts('Revenue Recognition Date'),
834 'description' => ts('Stores the date when revenue should be recognized.'),
836 'where' => 'civicrm_contribution.revenue_recognition_date',
837 'headerPattern' => '/revenue(.?date)?/i',
838 'dataPattern' => '/^\d{4}-?\d{2}-?\d{2} ?(\d{2}:?\d{2}:?(\d{2})?)?$/',
840 'table_name' => 'civicrm_contribution',
841 'entity' => 'Contribution',
842 'bao' => 'CRM_Contribute_BAO_Contribution',
845 'type' => 'Select Date',
846 'formatType' => 'activityDateTime',
850 'name' => 'is_template',
851 'type' => CRM_Utils_Type
::T_BOOLEAN
,
852 'title' => ts('Is a Template Contribution'),
853 'description' => ts('Shows this is a template for recurring contributions.'),
855 'where' => 'civicrm_contribution.is_template',
858 'table_name' => 'civicrm_contribution',
859 'entity' => 'Contribution',
860 'bao' => 'CRM_Contribute_BAO_Contribution',
863 'type' => 'CheckBox',
867 CRM_Core_DAO_AllCoreTables
::invoke(__CLASS__
, 'fields_callback', Civi
::$statics[__CLASS__
]['fields']);
869 return Civi
::$statics[__CLASS__
]['fields'];
873 * Return a mapping from field-name to the corresponding key (as used in fields()).
876 * Array(string $name => string $uniqueName).
878 public static function &fieldKeys() {
879 if (!isset(Civi
::$statics[__CLASS__
]['fieldKeys'])) {
880 Civi
::$statics[__CLASS__
]['fieldKeys'] = array_flip(CRM_Utils_Array
::collect('name', self
::fields()));
882 return Civi
::$statics[__CLASS__
]['fieldKeys'];
886 * Returns the names of this table
890 public static function getTableName() {
891 return self
::$_tableName;
895 * Returns if this table needs to be logged
899 public function getLog() {
904 * Returns the list of fields that can be imported
906 * @param bool $prefix
910 public static function &import($prefix = FALSE) {
911 $r = CRM_Core_DAO_AllCoreTables
::getImports(__CLASS__
, 'contribution', $prefix, []);
916 * Returns the list of fields that can be exported
918 * @param bool $prefix
922 public static function &export($prefix = FALSE) {
923 $r = CRM_Core_DAO_AllCoreTables
::getExports(__CLASS__
, 'contribution', $prefix, []);
928 * Returns the list of indices
930 * @param bool $localize
934 public static function indices($localize = TRUE) {
936 'UI_contrib_payment_instrument_id' => [
937 'name' => 'UI_contrib_payment_instrument_id',
939 0 => 'payment_instrument_id',
941 'localizable' => FALSE,
942 'sig' => 'civicrm_contribution::0::payment_instrument_id',
944 'index_total_amount_receive_date' => [
945 'name' => 'index_total_amount_receive_date',
950 'localizable' => FALSE,
951 'sig' => 'civicrm_contribution::0::total_amount::receive_date',
954 'name' => 'index_source',
958 'localizable' => FALSE,
959 'sig' => 'civicrm_contribution::0::source',
961 'UI_contrib_trxn_id' => [
962 'name' => 'UI_contrib_trxn_id',
966 'localizable' => FALSE,
968 'sig' => 'civicrm_contribution::1::trxn_id',
970 'UI_contrib_invoice_id' => [
971 'name' => 'UI_contrib_invoice_id',
975 'localizable' => FALSE,
977 'sig' => 'civicrm_contribution::1::invoice_id',
979 'index_contribution_status' => [
980 'name' => 'index_contribution_status',
982 0 => 'contribution_status_id',
984 'localizable' => FALSE,
985 'sig' => 'civicrm_contribution::0::contribution_status_id',
988 'name' => 'received_date',
992 'localizable' => FALSE,
993 'sig' => 'civicrm_contribution::0::receive_date',
996 'name' => 'check_number',
1000 'localizable' => FALSE,
1001 'sig' => 'civicrm_contribution::0::check_number',
1003 'index_creditnote_id' => [
1004 'name' => 'index_creditnote_id',
1006 0 => 'creditnote_id',
1008 'localizable' => FALSE,
1009 'sig' => 'civicrm_contribution::0::creditnote_id',
1012 return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables
::multilingualize(__CLASS__
, $indices) : $indices;