5 * @copyright CiviCRM LLC (c) 2004-2019
7 * Generated from xml/schema/CRM/Contribute/Contribution.xml
8 * DO NOT EDIT. Generated by CRM_Core_CodeGen
9 * (GenCodeChecksum:b4e84298d9ba23d3b2fae0768fc5cb58)
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;
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' => ts('Contribution ID'),
272 'where' => 'civicrm_contribution.id',
274 'table_name' => 'civicrm_contribution',
275 'entity' => 'Contribution',
276 'bao' => 'CRM_Contribute_BAO_Contribution',
279 'contribution_contact_id' => [
280 'name' => 'contact_id',
281 'type' => CRM_Utils_Type
::T_INT
,
282 'title' => ts('Contact ID'),
283 'description' => ts('FK to Contact ID'),
286 'where' => 'civicrm_contribution.contact_id',
287 'headerPattern' => '/contact(.?id)?/i',
288 'dataPattern' => '/^\d+$/',
290 'table_name' => 'civicrm_contribution',
291 'entity' => 'Contribution',
292 'bao' => 'CRM_Contribute_BAO_Contribution',
294 'FKClassName' => 'CRM_Contact_DAO_Contact',
296 'type' => 'EntityRef',
299 'financial_type_id' => [
300 'name' => 'financial_type_id',
301 'type' => CRM_Utils_Type
::T_INT
,
302 'title' => ts('Financial Type'),
303 'description' => ts('FK to Financial Type for (total_amount - non_deductible_amount).'),
304 'where' => 'civicrm_contribution.financial_type_id',
306 'table_name' => 'civicrm_contribution',
307 'entity' => 'Contribution',
308 'bao' => 'CRM_Contribute_BAO_Contribution',
310 'FKClassName' => 'CRM_Financial_DAO_FinancialType',
314 'pseudoconstant' => [
315 'table' => 'civicrm_financial_type',
317 'labelColumn' => 'name',
320 'contribution_page_id' => [
321 'name' => 'contribution_page_id',
322 'type' => CRM_Utils_Type
::T_INT
,
323 'title' => ts('Contribution Page ID'),
324 'description' => ts('The Contribution Page which triggered this contribution'),
326 'where' => 'civicrm_contribution.contribution_page_id',
328 'table_name' => 'civicrm_contribution',
329 'entity' => 'Contribution',
330 'bao' => 'CRM_Contribute_BAO_Contribution',
332 'FKClassName' => 'CRM_Contribute_DAO_ContributionPage',
336 'pseudoconstant' => [
337 'table' => 'civicrm_contribution_page',
339 'labelColumn' => 'title',
342 'payment_instrument_id' => [
343 'name' => 'payment_instrument_id',
344 'type' => CRM_Utils_Type
::T_INT
,
345 'title' => ts('Payment Method ID'),
346 'description' => ts('FK to Payment Instrument'),
347 'where' => 'civicrm_contribution.payment_instrument_id',
348 'headerPattern' => '/^payment|(p(ayment\s)?instrument)$/i',
350 'table_name' => 'civicrm_contribution',
351 'entity' => 'Contribution',
352 'bao' => 'CRM_Contribute_BAO_Contribution',
357 'pseudoconstant' => [
358 'optionGroupName' => 'payment_instrument',
359 'optionEditPath' => 'civicrm/admin/options/payment_instrument',
363 'name' => 'receive_date',
364 'type' => CRM_Utils_Type
::T_DATE + CRM_Utils_Type
::T_TIME
,
365 'title' => ts('Date Received'),
366 'description' => ts('Date contribution was received - not necessarily the creation date of the record'),
368 'where' => 'civicrm_contribution.receive_date',
369 'headerPattern' => '/receive(.?date)?/i',
370 'dataPattern' => '/^\d{4}-?\d{2}-?\d{2} ?(\d{2}:?\d{2}:?(\d{2})?)?$/',
372 'table_name' => 'civicrm_contribution',
373 'entity' => 'Contribution',
374 'bao' => 'CRM_Contribute_BAO_Contribution',
377 'type' => 'Select Date',
378 'formatType' => 'activityDateTime',
381 'non_deductible_amount' => [
382 'name' => 'non_deductible_amount',
383 'type' => CRM_Utils_Type
::T_MONEY
,
384 'title' => ts('Non-deductible Amount'),
385 'description' => ts('Portion of total amount which is NOT tax deductible. Equal to total_amount for non-deductible financial types.'),
391 'where' => 'civicrm_contribution.non_deductible_amount',
392 'headerPattern' => '/non?.?deduct/i',
393 'dataPattern' => '/^\d+(\.\d{2})?$/',
396 'table_name' => 'civicrm_contribution',
397 'entity' => 'Contribution',
398 'bao' => 'CRM_Contribute_BAO_Contribution',
405 'name' => 'total_amount',
406 'type' => CRM_Utils_Type
::T_MONEY
,
407 'title' => ts('Total Amount'),
408 'description' => ts('Total amount of this contribution. Use market value for non-monetary gifts.'),
415 'where' => 'civicrm_contribution.total_amount',
416 'headerPattern' => '/^total|(.?^am(ou)?nt)/i',
417 'dataPattern' => '/^\d+(\.\d{2})?$/',
419 'table_name' => 'civicrm_contribution',
420 'entity' => 'Contribution',
421 'bao' => 'CRM_Contribute_BAO_Contribution',
428 'name' => 'fee_amount',
429 'type' => CRM_Utils_Type
::T_MONEY
,
430 'title' => ts('Fee Amount'),
431 'description' => ts('actual processor fee if known - may be 0.'),
437 'where' => 'civicrm_contribution.fee_amount',
438 'headerPattern' => '/fee(.?am(ou)?nt)?/i',
439 'dataPattern' => '/^\d+(\.\d{2})?$/',
441 'table_name' => 'civicrm_contribution',
442 'entity' => 'Contribution',
443 'bao' => 'CRM_Contribute_BAO_Contribution',
450 'name' => 'net_amount',
451 'type' => CRM_Utils_Type
::T_MONEY
,
452 'title' => ts('Net Amount'),
453 'description' => ts('actual funds transfer amount. total less fees. if processor does not report actual fee during transaction, this is set to total_amount.'),
459 'where' => 'civicrm_contribution.net_amount',
460 'headerPattern' => '/net(.?am(ou)?nt)?/i',
461 'dataPattern' => '/^\d+(\.\d{2})?$/',
463 'table_name' => 'civicrm_contribution',
464 'entity' => 'Contribution',
465 'bao' => 'CRM_Contribute_BAO_Contribution',
473 'type' => CRM_Utils_Type
::T_STRING
,
474 'title' => ts('Transaction ID'),
475 'description' => ts('unique transaction id. may be processor id, bank id + trans id, or account number + check number... depending on payment_method'),
477 'size' => CRM_Utils_Type
::HUGE
,
479 'where' => 'civicrm_contribution.trxn_id',
480 'headerPattern' => '/tr(ansactio|x)n(.?id)?/i',
482 'table_name' => 'civicrm_contribution',
483 'entity' => 'Contribution',
484 'bao' => 'CRM_Contribute_BAO_Contribution',
491 'name' => 'invoice_id',
492 'type' => CRM_Utils_Type
::T_STRING
,
493 'title' => ts('Invoice Reference'),
494 'description' => ts('unique invoice id, system generated or passed in'),
496 'size' => CRM_Utils_Type
::HUGE
,
498 'where' => 'civicrm_contribution.invoice_id',
499 'headerPattern' => '/invoice(.?id)?/i',
501 'table_name' => 'civicrm_contribution',
502 'entity' => 'Contribution',
503 'bao' => 'CRM_Contribute_BAO_Contribution',
509 'invoice_number' => [
510 'name' => 'invoice_number',
511 'type' => CRM_Utils_Type
::T_STRING
,
512 'title' => ts('Invoice Number'),
513 'description' => ts('Human readable invoice number'),
515 'size' => CRM_Utils_Type
::HUGE
,
517 'where' => 'civicrm_contribution.invoice_number',
518 'headerPattern' => '/invoice(.?number)?/i',
520 'table_name' => 'civicrm_contribution',
521 'entity' => 'Contribution',
522 'bao' => 'CRM_Contribute_BAO_Contribution',
529 'name' => 'currency',
530 'type' => CRM_Utils_Type
::T_STRING
,
531 'title' => ts('Currency'),
532 'description' => ts('3 character string, value from config setting or input via user.'),
534 'size' => CRM_Utils_Type
::FOUR
,
536 'where' => 'civicrm_contribution.currency',
537 'headerPattern' => '/cur(rency)?/i',
538 'dataPattern' => '/^[A-Z]{3}$/i',
541 'table_name' => 'civicrm_contribution',
542 'entity' => 'Contribution',
543 'bao' => 'CRM_Contribute_BAO_Contribution',
548 'pseudoconstant' => [
549 'table' => 'civicrm_currency',
550 'keyColumn' => 'name',
551 'labelColumn' => 'full_name',
552 'nameColumn' => 'name',
553 'abbrColumn' => 'symbol',
556 'contribution_cancel_date' => [
557 'name' => 'cancel_date',
558 'type' => CRM_Utils_Type
::T_DATE + CRM_Utils_Type
::T_TIME
,
559 'title' => ts('Cancelled / Refunded Date'),
560 'description' => ts('when was gift cancelled'),
562 'where' => 'civicrm_contribution.cancel_date',
563 'headerPattern' => '/cancel(.?date)?/i',
564 'dataPattern' => '/^\d{4}-?\d{2}-?\d{2} ?(\d{2}:?\d{2}:?(\d{2})?)?$/',
566 'table_name' => 'civicrm_contribution',
567 'entity' => 'Contribution',
568 'bao' => 'CRM_Contribute_BAO_Contribution',
571 'type' => 'Select Date',
572 'formatType' => 'activityDateTime',
576 'name' => 'cancel_reason',
577 'type' => CRM_Utils_Type
::T_TEXT
,
578 'title' => ts('Cancellation / Refund Reason'),
580 'where' => 'civicrm_contribution.cancel_reason',
581 'headerPattern' => '/(cancel.?)?reason/i',
583 'table_name' => 'civicrm_contribution',
584 'entity' => 'Contribution',
585 'bao' => 'CRM_Contribute_BAO_Contribution',
592 'name' => 'receipt_date',
593 'type' => CRM_Utils_Type
::T_DATE + CRM_Utils_Type
::T_TIME
,
594 'title' => ts('Receipt Date'),
595 'description' => ts('when (if) receipt was sent. populated automatically for online donations w/ automatic receipting'),
597 'where' => 'civicrm_contribution.receipt_date',
598 'headerPattern' => '/receipt(.?date)?/i',
599 'dataPattern' => '/^\d{4}-?\d{2}-?\d{2} ?(\d{2}:?\d{2}:?(\d{2})?)?$/',
601 'table_name' => 'civicrm_contribution',
602 'entity' => 'Contribution',
603 'bao' => 'CRM_Contribute_BAO_Contribution',
606 'type' => 'Select Date',
607 'formatType' => 'activityDateTime',
611 'name' => 'thankyou_date',
612 'type' => CRM_Utils_Type
::T_DATE + CRM_Utils_Type
::T_TIME
,
613 'title' => ts('Thank-you Date'),
614 'description' => ts('when (if) was donor thanked'),
616 'where' => 'civicrm_contribution.thankyou_date',
617 'headerPattern' => '/thank(s|(.?you))?(.?date)?/i',
618 'dataPattern' => '/^\d{4}-?\d{2}-?\d{2} ?(\d{2}:?\d{2}:?(\d{2})?)?$/',
620 'table_name' => 'civicrm_contribution',
621 'entity' => 'Contribution',
622 'bao' => 'CRM_Contribute_BAO_Contribution',
625 'type' => 'Select Date',
626 'formatType' => 'activityDateTime',
629 'contribution_source' => [
631 'type' => CRM_Utils_Type
::T_STRING
,
632 'title' => ts('Contribution Source'),
633 'description' => ts('Origin of this Contribution.'),
635 'size' => CRM_Utils_Type
::HUGE
,
637 'where' => 'civicrm_contribution.source',
638 'headerPattern' => '/source/i',
640 'table_name' => 'civicrm_contribution',
641 'entity' => 'Contribution',
642 'bao' => 'CRM_Contribute_BAO_Contribution',
649 'name' => 'amount_level',
650 'type' => CRM_Utils_Type
::T_TEXT
,
651 'title' => ts('Amount Label'),
653 'where' => 'civicrm_contribution.amount_level',
655 'table_name' => 'civicrm_contribution',
656 'entity' => 'Contribution',
657 'bao' => 'CRM_Contribute_BAO_Contribution',
663 'contribution_recur_id' => [
664 'name' => 'contribution_recur_id',
665 'type' => CRM_Utils_Type
::T_INT
,
666 'title' => ts('Recurring Contribution ID'),
667 '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.'),
668 'where' => 'civicrm_contribution.contribution_recur_id',
670 'table_name' => 'civicrm_contribution',
671 'entity' => 'Contribution',
672 'bao' => 'CRM_Contribute_BAO_Contribution',
674 'FKClassName' => 'CRM_Contribute_DAO_ContributionRecur',
678 'type' => CRM_Utils_Type
::T_BOOLEAN
,
679 'title' => ts('Test'),
681 'where' => 'civicrm_contribution.is_test',
684 'table_name' => 'civicrm_contribution',
685 'entity' => 'Contribution',
686 'bao' => 'CRM_Contribute_BAO_Contribution',
689 'type' => 'CheckBox',
693 'name' => 'is_pay_later',
694 'type' => CRM_Utils_Type
::T_BOOLEAN
,
695 'title' => ts('Is Pay Later'),
697 'where' => 'civicrm_contribution.is_pay_later',
700 'table_name' => 'civicrm_contribution',
701 'entity' => 'Contribution',
702 'bao' => 'CRM_Contribute_BAO_Contribution',
705 'type' => 'CheckBox',
708 'contribution_status_id' => [
709 'name' => 'contribution_status_id',
710 'type' => CRM_Utils_Type
::T_INT
,
711 'title' => ts('Contribution Status ID'),
713 'where' => 'civicrm_contribution.contribution_status_id',
714 'headerPattern' => '/status/i',
717 'table_name' => 'civicrm_contribution',
718 'entity' => 'Contribution',
719 'bao' => 'CRM_Contribute_BAO_Contribution',
724 'pseudoconstant' => [
725 'optionGroupName' => 'contribution_status',
726 'optionEditPath' => 'civicrm/admin/options/contribution_status',
729 'contribution_address_id' => [
730 'name' => 'address_id',
731 'type' => CRM_Utils_Type
::T_INT
,
732 'title' => ts('Contribution Address'),
733 '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.'),
734 'where' => 'civicrm_contribution.address_id',
736 'table_name' => 'civicrm_contribution',
737 'entity' => 'Contribution',
738 'bao' => 'CRM_Contribute_BAO_Contribution',
740 'FKClassName' => 'CRM_Core_DAO_Address',
742 'contribution_check_number' => [
743 'name' => 'check_number',
744 'type' => CRM_Utils_Type
::T_STRING
,
745 'title' => ts('Check Number'),
749 'where' => 'civicrm_contribution.check_number',
750 'headerPattern' => '/check(.?number)?/i',
752 'table_name' => 'civicrm_contribution',
753 'entity' => 'Contribution',
754 'bao' => 'CRM_Contribute_BAO_Contribution',
760 'contribution_campaign_id' => [
761 'name' => 'campaign_id',
762 'type' => CRM_Utils_Type
::T_INT
,
763 'title' => ts('Campaign'),
764 'description' => ts('The campaign for which this contribution has been triggered.'),
766 'where' => 'civicrm_contribution.campaign_id',
768 'table_name' => 'civicrm_contribution',
769 'entity' => 'Contribution',
770 'bao' => 'CRM_Contribute_BAO_Contribution',
772 'FKClassName' => 'CRM_Campaign_DAO_Campaign',
776 'pseudoconstant' => [
777 'table' => 'civicrm_campaign',
779 'labelColumn' => 'title',
783 'name' => 'creditnote_id',
784 'type' => CRM_Utils_Type
::T_STRING
,
785 'title' => ts('Credit Note ID'),
786 'description' => ts('unique credit note id, system generated or passed in'),
788 'size' => CRM_Utils_Type
::HUGE
,
790 'where' => 'civicrm_contribution.creditnote_id',
791 'headerPattern' => '/creditnote(.?id)?/i',
793 'table_name' => 'civicrm_contribution',
794 'entity' => 'Contribution',
795 'bao' => 'CRM_Contribute_BAO_Contribution',
802 'name' => 'tax_amount',
803 'type' => CRM_Utils_Type
::T_MONEY
,
804 'title' => ts('Tax Amount'),
805 'description' => ts('Total tax amount of this contribution.'),
811 'where' => 'civicrm_contribution.tax_amount',
812 'headerPattern' => '/tax(.?am(ou)?nt)?/i',
813 'dataPattern' => '/^\d+(\.\d{2})?$/',
815 'table_name' => 'civicrm_contribution',
816 'entity' => 'Contribution',
817 'bao' => 'CRM_Contribute_BAO_Contribution',
823 'revenue_recognition_date' => [
824 'name' => 'revenue_recognition_date',
825 'type' => CRM_Utils_Type
::T_DATE + CRM_Utils_Type
::T_TIME
,
826 'title' => ts('Revenue Recognition Date'),
827 'description' => ts('Stores the date when revenue should be recognized.'),
829 'where' => 'civicrm_contribution.revenue_recognition_date',
830 'headerPattern' => '/revenue(.?date)?/i',
831 'dataPattern' => '/^\d{4}-?\d{2}-?\d{2} ?(\d{2}:?\d{2}:?(\d{2})?)?$/',
833 'table_name' => 'civicrm_contribution',
834 'entity' => 'Contribution',
835 'bao' => 'CRM_Contribute_BAO_Contribution',
838 'type' => 'Select Date',
839 'formatType' => 'activityDateTime',
843 CRM_Core_DAO_AllCoreTables
::invoke(__CLASS__
, 'fields_callback', Civi
::$statics[__CLASS__
]['fields']);
845 return Civi
::$statics[__CLASS__
]['fields'];
849 * Return a mapping from field-name to the corresponding key (as used in fields()).
852 * Array(string $name => string $uniqueName).
854 public static function &fieldKeys() {
855 if (!isset(Civi
::$statics[__CLASS__
]['fieldKeys'])) {
856 Civi
::$statics[__CLASS__
]['fieldKeys'] = array_flip(CRM_Utils_Array
::collect('name', self
::fields()));
858 return Civi
::$statics[__CLASS__
]['fieldKeys'];
862 * Returns the names of this table
866 public static function getTableName() {
867 return self
::$_tableName;
871 * Returns if this table needs to be logged
875 public function getLog() {
880 * Returns the list of fields that can be imported
882 * @param bool $prefix
886 public static function &import($prefix = FALSE) {
887 $r = CRM_Core_DAO_AllCoreTables
::getImports(__CLASS__
, 'contribution', $prefix, []);
892 * Returns the list of fields that can be exported
894 * @param bool $prefix
898 public static function &export($prefix = FALSE) {
899 $r = CRM_Core_DAO_AllCoreTables
::getExports(__CLASS__
, 'contribution', $prefix, []);
904 * Returns the list of indices
906 * @param bool $localize
910 public static function indices($localize = TRUE) {
912 'UI_contrib_payment_instrument_id' => [
913 'name' => 'UI_contrib_payment_instrument_id',
915 0 => 'payment_instrument_id',
917 'localizable' => FALSE,
918 'sig' => 'civicrm_contribution::0::payment_instrument_id',
920 'index_total_amount_receive_date' => [
921 'name' => 'index_total_amount_receive_date',
926 'localizable' => FALSE,
927 'sig' => 'civicrm_contribution::0::total_amount::receive_date',
930 'name' => 'index_source',
934 'localizable' => FALSE,
935 'sig' => 'civicrm_contribution::0::source',
937 'UI_contrib_trxn_id' => [
938 'name' => 'UI_contrib_trxn_id',
942 'localizable' => FALSE,
944 'sig' => 'civicrm_contribution::1::trxn_id',
946 'UI_contrib_invoice_id' => [
947 'name' => 'UI_contrib_invoice_id',
951 'localizable' => FALSE,
953 'sig' => 'civicrm_contribution::1::invoice_id',
955 'index_contribution_status' => [
956 'name' => 'index_contribution_status',
958 0 => 'contribution_status_id',
960 'localizable' => FALSE,
961 'sig' => 'civicrm_contribution::0::contribution_status_id',
964 'name' => 'received_date',
968 'localizable' => FALSE,
969 'sig' => 'civicrm_contribution::0::receive_date',
972 'name' => 'check_number',
976 'localizable' => FALSE,
977 'sig' => 'civicrm_contribution::0::check_number',
979 'index_creditnote_id' => [
980 'name' => 'index_creditnote_id',
982 0 => 'creditnote_id',
984 'localizable' => FALSE,
985 'sig' => 'civicrm_contribution::0::creditnote_id',
988 return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables
::multilingualize(__CLASS__
, $indices) : $indices;