5 * @copyright CiviCRM LLC (c) 2004-2018
7 * Generated from xml/schema/CRM/Contribute/Contribution.xml
8 * DO NOT EDIT. Generated by CRM_Core_CodeGen
9 * (GenCodeChecksum:45a20d00d01766a61687cbac5cef1482)
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 static $_tableName = 'civicrm_contribution';
25 * Should CiviCRM log any modifications to this table in the civicrm_log table.
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;
232 public function __construct() {
233 $this->__table
= 'civicrm_contribution';
234 parent
::__construct();
238 * Returns foreign keys and entity references.
241 * [CRM_Core_Reference_Interface]
243 public static function getReferenceColumns() {
244 if (!isset(Civi
::$statics[__CLASS__
]['links'])) {
245 Civi
::$statics[__CLASS__
]['links'] = static ::createReferenceColumns(__CLASS__
);
246 Civi
::$statics[__CLASS__
]['links'][] = new CRM_Core_Reference_Basic(self
::getTableName(), 'contact_id', 'civicrm_contact', 'id');
247 Civi
::$statics[__CLASS__
]['links'][] = new CRM_Core_Reference_Basic(self
::getTableName(), 'financial_type_id', 'civicrm_financial_type', 'id');
248 Civi
::$statics[__CLASS__
]['links'][] = new CRM_Core_Reference_Basic(self
::getTableName(), 'contribution_page_id', 'civicrm_contribution_page', 'id');
249 Civi
::$statics[__CLASS__
]['links'][] = new CRM_Core_Reference_Basic(self
::getTableName(), 'contribution_recur_id', 'civicrm_contribution_recur', 'id');
250 Civi
::$statics[__CLASS__
]['links'][] = new CRM_Core_Reference_Basic(self
::getTableName(), 'address_id', 'civicrm_address', 'id');
251 Civi
::$statics[__CLASS__
]['links'][] = new CRM_Core_Reference_Basic(self
::getTableName(), 'campaign_id', 'civicrm_campaign', 'id');
252 CRM_Core_DAO_AllCoreTables
::invoke(__CLASS__
, 'links_callback', Civi
::$statics[__CLASS__
]['links']);
254 return Civi
::$statics[__CLASS__
]['links'];
258 * Returns all the column names of this table
262 public static function &fields() {
263 if (!isset(Civi
::$statics[__CLASS__
]['fields'])) {
264 Civi
::$statics[__CLASS__
]['fields'] = [
265 'contribution_id' => [
267 'type' => CRM_Utils_Type
::T_INT
,
268 'title' => ts('Contribution ID'),
269 'description' => 'Contribution ID',
272 'where' => 'civicrm_contribution.id',
273 'headerPattern' => '',
276 'table_name' => 'civicrm_contribution',
277 'entity' => 'Contribution',
278 'bao' => 'CRM_Contribute_BAO_Contribution',
281 'contribution_contact_id' => [
282 'name' => 'contact_id',
283 'type' => CRM_Utils_Type
::T_INT
,
284 'title' => ts('Contact ID'),
285 'description' => 'FK to Contact ID',
288 'where' => 'civicrm_contribution.contact_id',
289 'headerPattern' => '/contact(.?id)?/i',
290 'dataPattern' => '/^\d+$/',
292 'table_name' => 'civicrm_contribution',
293 'entity' => 'Contribution',
294 'bao' => 'CRM_Contribute_BAO_Contribution',
296 'FKClassName' => 'CRM_Contact_DAO_Contact',
298 'type' => 'EntityRef',
301 'financial_type_id' => [
302 'name' => 'financial_type_id',
303 'type' => CRM_Utils_Type
::T_INT
,
304 'title' => ts('Financial Type'),
305 'description' => 'FK to Financial Type for (total_amount - non_deductible_amount).',
307 'where' => 'civicrm_contribution.financial_type_id',
308 'headerPattern' => '',
310 'table_name' => 'civicrm_contribution',
311 'entity' => 'Contribution',
312 'bao' => 'CRM_Contribute_BAO_Contribution',
314 'FKClassName' => 'CRM_Financial_DAO_FinancialType',
318 'pseudoconstant' => [
319 'table' => 'civicrm_financial_type',
321 'labelColumn' => 'name',
324 'contribution_page_id' => [
325 'name' => 'contribution_page_id',
326 'type' => CRM_Utils_Type
::T_INT
,
327 'title' => ts('Contribution Page ID'),
328 'description' => 'The Contribution Page which triggered this contribution',
330 'where' => 'civicrm_contribution.contribution_page_id',
331 'headerPattern' => '',
334 'table_name' => 'civicrm_contribution',
335 'entity' => 'Contribution',
336 'bao' => 'CRM_Contribute_BAO_Contribution',
338 'FKClassName' => 'CRM_Contribute_DAO_ContributionPage',
342 'pseudoconstant' => [
343 'table' => 'civicrm_contribution_page',
345 'labelColumn' => 'title',
348 'payment_instrument_id' => [
349 'name' => 'payment_instrument_id',
350 'type' => CRM_Utils_Type
::T_INT
,
351 'title' => ts('Payment Method ID'),
352 'description' => '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' => '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' => '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})?$/',
402 'table_name' => 'civicrm_contribution',
403 'entity' => 'Contribution',
404 'bao' => 'CRM_Contribute_BAO_Contribution',
411 'name' => 'total_amount',
412 'type' => CRM_Utils_Type
::T_MONEY
,
413 'title' => ts('Total Amount'),
414 'description' => 'Total amount of this contribution. Use market value for non-monetary gifts.',
421 'where' => 'civicrm_contribution.total_amount',
422 'headerPattern' => '/^total|(.?^am(ou)?nt)/i',
423 'dataPattern' => '/^\d+(\.\d{2})?$/',
425 'table_name' => 'civicrm_contribution',
426 'entity' => 'Contribution',
427 'bao' => 'CRM_Contribute_BAO_Contribution',
434 'name' => 'fee_amount',
435 'type' => CRM_Utils_Type
::T_MONEY
,
436 'title' => ts('Fee Amount'),
437 'description' => 'actual processor fee if known - may be 0.',
443 'where' => 'civicrm_contribution.fee_amount',
444 'headerPattern' => '/fee(.?am(ou)?nt)?/i',
445 'dataPattern' => '/^\d+(\.\d{2})?$/',
447 'table_name' => 'civicrm_contribution',
448 'entity' => 'Contribution',
449 'bao' => 'CRM_Contribute_BAO_Contribution',
456 'name' => 'net_amount',
457 'type' => CRM_Utils_Type
::T_MONEY
,
458 'title' => ts('Net Amount'),
459 'description' => 'actual funds transfer amount. total less fees. if processor does not report actual fee during transaction, this is set to total_amount.',
465 'where' => 'civicrm_contribution.net_amount',
466 'headerPattern' => '/net(.?am(ou)?nt)?/i',
467 'dataPattern' => '/^\d+(\.\d{2})?$/',
469 'table_name' => 'civicrm_contribution',
470 'entity' => 'Contribution',
471 'bao' => 'CRM_Contribute_BAO_Contribution',
479 'type' => CRM_Utils_Type
::T_STRING
,
480 'title' => ts('Transaction ID'),
481 'description' => 'unique transaction id. may be processor id, bank id + trans id, or account number + check number... depending on payment_method',
483 'size' => CRM_Utils_Type
::HUGE
,
485 'where' => 'civicrm_contribution.trxn_id',
486 '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' => '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',
509 'table_name' => 'civicrm_contribution',
510 'entity' => 'Contribution',
511 'bao' => 'CRM_Contribute_BAO_Contribution',
517 'invoice_number' => [
518 'name' => 'invoice_number',
519 'type' => CRM_Utils_Type
::T_STRING
,
520 'title' => ts('Invoice Number'),
521 'description' => 'Human readable invoice number',
523 'size' => CRM_Utils_Type
::HUGE
,
525 'where' => 'civicrm_contribution.invoice_number',
526 'headerPattern' => '/invoice(.?number)?/i',
529 'table_name' => 'civicrm_contribution',
530 'entity' => 'Contribution',
531 'bao' => 'CRM_Contribute_BAO_Contribution',
538 'name' => 'currency',
539 'type' => CRM_Utils_Type
::T_STRING
,
540 'title' => ts('Currency'),
541 'description' => '3 character string, value from config setting or input via user.',
543 'size' => CRM_Utils_Type
::FOUR
,
545 'where' => 'civicrm_contribution.currency',
546 'headerPattern' => '/cur(rency)?/i',
547 'dataPattern' => '/^[A-Z]{3}$/i',
550 'table_name' => 'civicrm_contribution',
551 'entity' => 'Contribution',
552 'bao' => 'CRM_Contribute_BAO_Contribution',
557 'pseudoconstant' => [
558 'table' => 'civicrm_currency',
559 'keyColumn' => 'name',
560 'labelColumn' => 'full_name',
561 'nameColumn' => 'name',
565 'name' => 'cancel_date',
566 'type' => CRM_Utils_Type
::T_DATE + CRM_Utils_Type
::T_TIME
,
567 'title' => ts('Cancel Date'),
568 'description' => 'when was gift cancelled',
570 'where' => 'civicrm_contribution.cancel_date',
571 'headerPattern' => '/cancel(.?date)?/i',
572 'dataPattern' => '/^\d{4}-?\d{2}-?\d{2} ?(\d{2}:?\d{2}:?(\d{2})?)?$/',
574 'table_name' => 'civicrm_contribution',
575 'entity' => 'Contribution',
576 'bao' => 'CRM_Contribute_BAO_Contribution',
579 'type' => 'Select Date',
580 'formatType' => 'activityDateTime',
584 'name' => 'cancel_reason',
585 'type' => CRM_Utils_Type
::T_TEXT
,
586 'title' => ts('Cancel Reason'),
588 'where' => 'civicrm_contribution.cancel_reason',
589 'headerPattern' => '/(cancel.?)?reason/i',
592 'table_name' => 'civicrm_contribution',
593 'entity' => 'Contribution',
594 'bao' => 'CRM_Contribute_BAO_Contribution',
601 'name' => 'receipt_date',
602 'type' => CRM_Utils_Type
::T_DATE + CRM_Utils_Type
::T_TIME
,
603 'title' => ts('Receipt Date'),
604 'description' => 'when (if) receipt was sent. populated automatically for online donations w/ automatic receipting',
606 'where' => 'civicrm_contribution.receipt_date',
607 'headerPattern' => '/receipt(.?date)?/i',
608 'dataPattern' => '/^\d{4}-?\d{2}-?\d{2} ?(\d{2}:?\d{2}:?(\d{2})?)?$/',
610 'table_name' => 'civicrm_contribution',
611 'entity' => 'Contribution',
612 'bao' => 'CRM_Contribute_BAO_Contribution',
615 'type' => 'Select Date',
616 'formatType' => 'activityDateTime',
620 'name' => 'thankyou_date',
621 'type' => CRM_Utils_Type
::T_DATE + CRM_Utils_Type
::T_TIME
,
622 'title' => ts('Thank-you Date'),
623 'description' => 'when (if) was donor thanked',
625 'where' => 'civicrm_contribution.thankyou_date',
626 'headerPattern' => '/thank(s|(.?you))?(.?date)?/i',
627 'dataPattern' => '/^\d{4}-?\d{2}-?\d{2} ?(\d{2}:?\d{2}:?(\d{2})?)?$/',
629 'table_name' => 'civicrm_contribution',
630 'entity' => 'Contribution',
631 'bao' => 'CRM_Contribute_BAO_Contribution',
634 'type' => 'Select Date',
635 'formatType' => 'activityDateTime',
638 'contribution_source' => [
640 'type' => CRM_Utils_Type
::T_STRING
,
641 'title' => ts('Contribution Source'),
642 'description' => 'Origin of this Contribution.',
644 'size' => CRM_Utils_Type
::HUGE
,
646 'where' => 'civicrm_contribution.source',
647 'headerPattern' => '/source/i',
650 'table_name' => 'civicrm_contribution',
651 'entity' => 'Contribution',
652 'bao' => 'CRM_Contribute_BAO_Contribution',
659 'name' => 'amount_level',
660 'type' => CRM_Utils_Type
::T_TEXT
,
661 'title' => ts('Amount Label'),
663 'where' => 'civicrm_contribution.amount_level',
664 'headerPattern' => '',
667 'table_name' => 'civicrm_contribution',
668 'entity' => 'Contribution',
669 'bao' => 'CRM_Contribute_BAO_Contribution',
675 'contribution_recur_id' => [
676 'name' => 'contribution_recur_id',
677 'type' => CRM_Utils_Type
::T_INT
,
678 'title' => ts('Recurring Contribution ID'),
679 'description' => '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.',
681 'where' => 'civicrm_contribution.contribution_recur_id',
682 'headerPattern' => '',
684 'table_name' => 'civicrm_contribution',
685 'entity' => 'Contribution',
686 'bao' => 'CRM_Contribute_BAO_Contribution',
688 'FKClassName' => 'CRM_Contribute_DAO_ContributionRecur',
692 'type' => CRM_Utils_Type
::T_BOOLEAN
,
693 'title' => ts('Test'),
695 'where' => 'civicrm_contribution.is_test',
696 'headerPattern' => '',
699 'table_name' => 'civicrm_contribution',
700 'entity' => 'Contribution',
701 'bao' => 'CRM_Contribute_BAO_Contribution',
704 'type' => 'CheckBox',
708 'name' => 'is_pay_later',
709 'type' => CRM_Utils_Type
::T_BOOLEAN
,
710 'title' => ts('Is Pay Later'),
712 'where' => 'civicrm_contribution.is_pay_later',
713 'headerPattern' => '',
716 'table_name' => 'civicrm_contribution',
717 'entity' => 'Contribution',
718 'bao' => 'CRM_Contribute_BAO_Contribution',
721 'type' => 'CheckBox',
724 'contribution_status_id' => [
725 'name' => 'contribution_status_id',
726 'type' => CRM_Utils_Type
::T_INT
,
727 'title' => ts('Contribution Status ID'),
729 'where' => 'civicrm_contribution.contribution_status_id',
730 'headerPattern' => '/status/i',
734 'table_name' => 'civicrm_contribution',
735 'entity' => 'Contribution',
736 'bao' => 'CRM_Contribute_BAO_Contribution',
741 'pseudoconstant' => [
742 'optionGroupName' => 'contribution_status',
743 'optionEditPath' => 'civicrm/admin/options/contribution_status',
746 'contribution_address_id' => [
747 'name' => 'address_id',
748 'type' => CRM_Utils_Type
::T_INT
,
749 'title' => ts('Contribution Address'),
750 'description' => 'Conditional foreign key to civicrm_address.id. We insert an address record for each contribution when we have associated billing name and address data.',
752 'where' => 'civicrm_contribution.address_id',
753 'headerPattern' => '',
755 'table_name' => 'civicrm_contribution',
756 'entity' => 'Contribution',
757 'bao' => 'CRM_Contribute_BAO_Contribution',
759 'FKClassName' => 'CRM_Core_DAO_Address',
761 'contribution_check_number' => [
762 'name' => 'check_number',
763 'type' => CRM_Utils_Type
::T_STRING
,
764 'title' => ts('Check Number'),
768 'where' => 'civicrm_contribution.check_number',
769 'headerPattern' => '/check(.?number)?/i',
772 'table_name' => 'civicrm_contribution',
773 'entity' => 'Contribution',
774 'bao' => 'CRM_Contribute_BAO_Contribution',
780 'contribution_campaign_id' => [
781 'name' => 'campaign_id',
782 'type' => CRM_Utils_Type
::T_INT
,
783 'title' => ts('Campaign'),
784 'description' => 'The campaign for which this contribution has been triggered.',
786 'where' => 'civicrm_contribution.campaign_id',
787 'headerPattern' => '',
790 'table_name' => 'civicrm_contribution',
791 'entity' => 'Contribution',
792 'bao' => 'CRM_Contribute_BAO_Contribution',
794 'FKClassName' => 'CRM_Campaign_DAO_Campaign',
798 'pseudoconstant' => [
799 'table' => 'civicrm_campaign',
801 'labelColumn' => 'title',
805 'name' => 'creditnote_id',
806 'type' => CRM_Utils_Type
::T_STRING
,
807 'title' => ts('Credit Note ID'),
808 'description' => 'unique credit note id, system generated or passed in',
810 'size' => CRM_Utils_Type
::HUGE
,
812 'where' => 'civicrm_contribution.creditnote_id',
813 'headerPattern' => '/creditnote(.?id)?/i',
816 'table_name' => 'civicrm_contribution',
817 'entity' => 'Contribution',
818 'bao' => 'CRM_Contribute_BAO_Contribution',
825 'name' => 'tax_amount',
826 'type' => CRM_Utils_Type
::T_MONEY
,
827 'title' => ts('Tax Amount'),
828 'description' => 'Total tax amount of this contribution.',
834 'where' => 'civicrm_contribution.tax_amount',
835 'headerPattern' => '/tax(.?am(ou)?nt)?/i',
836 'dataPattern' => '/^\d+(\.\d{2})?$/',
838 'table_name' => 'civicrm_contribution',
839 'entity' => 'Contribution',
840 'bao' => 'CRM_Contribute_BAO_Contribution',
846 'revenue_recognition_date' => [
847 'name' => 'revenue_recognition_date',
848 'type' => CRM_Utils_Type
::T_DATE + CRM_Utils_Type
::T_TIME
,
849 'title' => ts('Revenue Recognition Date'),
850 'description' => 'Stores the date when revenue should be recognized.',
852 'where' => 'civicrm_contribution.revenue_recognition_date',
853 'headerPattern' => '/revenue(.?date)?/i',
854 'dataPattern' => '/^\d{4}-?\d{2}-?\d{2} ?(\d{2}:?\d{2}:?(\d{2})?)?$/',
856 'table_name' => 'civicrm_contribution',
857 'entity' => 'Contribution',
858 'bao' => 'CRM_Contribute_BAO_Contribution',
861 'type' => 'Select Date',
862 'formatType' => 'activityDateTime',
866 CRM_Core_DAO_AllCoreTables
::invoke(__CLASS__
, 'fields_callback', Civi
::$statics[__CLASS__
]['fields']);
868 return Civi
::$statics[__CLASS__
]['fields'];
872 * Return a mapping from field-name to the corresponding key (as used in fields()).
875 * Array(string $name => string $uniqueName).
877 public static function &fieldKeys() {
878 if (!isset(Civi
::$statics[__CLASS__
]['fieldKeys'])) {
879 Civi
::$statics[__CLASS__
]['fieldKeys'] = array_flip(CRM_Utils_Array
::collect('name', self
::fields()));
881 return Civi
::$statics[__CLASS__
]['fieldKeys'];
885 * Returns the names of this table
889 public static function getTableName() {
890 return self
::$_tableName;
894 * Returns if this table needs to be logged
898 public function getLog() {
903 * Returns the list of fields that can be imported
905 * @param bool $prefix
909 public static function &import($prefix = FALSE) {
910 $r = CRM_Core_DAO_AllCoreTables
::getImports(__CLASS__
, 'contribution', $prefix, []);
915 * Returns the list of fields that can be exported
917 * @param bool $prefix
921 public static function &export($prefix = FALSE) {
922 $r = CRM_Core_DAO_AllCoreTables
::getExports(__CLASS__
, 'contribution', $prefix, []);
927 * Returns the list of indices
929 * @param bool $localize
933 public static function indices($localize = TRUE) {
935 'UI_contrib_payment_instrument_id' => [
936 'name' => 'UI_contrib_payment_instrument_id',
938 0 => 'payment_instrument_id',
940 'localizable' => FALSE,
941 'sig' => 'civicrm_contribution::0::payment_instrument_id',
943 'index_total_amount_receive_date' => [
944 'name' => 'index_total_amount_receive_date',
949 'localizable' => FALSE,
950 'sig' => 'civicrm_contribution::0::total_amount::receive_date',
953 'name' => 'index_source',
957 'localizable' => FALSE,
958 'sig' => 'civicrm_contribution::0::source',
960 'UI_contrib_trxn_id' => [
961 'name' => 'UI_contrib_trxn_id',
965 'localizable' => FALSE,
967 'sig' => 'civicrm_contribution::1::trxn_id',
969 'UI_contrib_invoice_id' => [
970 'name' => 'UI_contrib_invoice_id',
974 'localizable' => FALSE,
976 'sig' => 'civicrm_contribution::1::invoice_id',
978 'index_contribution_status' => [
979 'name' => 'index_contribution_status',
981 0 => 'contribution_status_id',
983 'localizable' => FALSE,
984 'sig' => 'civicrm_contribution::0::contribution_status_id',
987 'name' => 'received_date',
991 'localizable' => FALSE,
992 'sig' => 'civicrm_contribution::0::receive_date',
995 'name' => 'check_number',
999 'localizable' => FALSE,
1000 'sig' => 'civicrm_contribution::0::check_number',
1002 'index_creditnote_id' => [
1003 'name' => 'index_creditnote_id',
1005 0 => 'creditnote_id',
1007 'localizable' => FALSE,
1008 'sig' => 'civicrm_contribution::0::creditnote_id',
1011 return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables
::multilingualize(__CLASS__
, $indices) : $indices;