@@ -31,7 +31,7 @@ function banking_civicrm_navigationMenu(&$params) {
31
31
'child ' => array (
32
32
$ level => array (
33
33
'attributes ' => array (
34
- 'label ' => 'Dashboard ' ,
34
+ 'label ' => ts ( 'Dashboard ' ) ,
35
35
'name ' => 'Dashboard ' ,
36
36
'url ' => 'civicrm/banking/dashboard ' ,
37
37
'permission ' => 'access CiviContribute ' ,
@@ -45,7 +45,7 @@ function banking_civicrm_navigationMenu(&$params) {
45
45
),
46
46
$ level => array (
47
47
'attributes ' => array (
48
- 'label ' => ' Payments ' ,
48
+ 'label ' => ts ( ' Show Statements ' ) ,
49
49
'name ' => 'Payments ' ,
50
50
'url ' => 'civicrm/banking/payments ' ,
51
51
'permission ' => 'access CiviContribute ' ,
@@ -59,7 +59,7 @@ function banking_civicrm_navigationMenu(&$params) {
59
59
),
60
60
$ level => array (
61
61
'attributes ' => array (
62
- 'label ' => 'Find Accounts ' ,
62
+ 'label ' => ts ( 'Find Accounts ' ) ,
63
63
'name ' => 'Find Accounts ' ,
64
64
'url ' => 'civicrm/banking/search ' ,
65
65
'permission ' => 'access CiviContribute ' ,
@@ -73,7 +73,7 @@ function banking_civicrm_navigationMenu(&$params) {
73
73
),
74
74
$ level => array (
75
75
'attributes ' => array (
76
- 'label ' => 'Manage Accounts ' ,
76
+ 'label ' => ts ( 'Manage Accounts ' ) ,
77
77
'name ' => 'Manage Accounts ' ,
78
78
'url ' => 'civicrm/banking/accounts ' ,
79
79
'permission ' => 'access CiviContribute ' ,
@@ -87,7 +87,7 @@ function banking_civicrm_navigationMenu(&$params) {
87
87
),
88
88
$ level => array (
89
89
'attributes ' => array (
90
- 'label ' => 'Import Payments ' ,
90
+ 'label ' => ts ( 'Import Payments ' ) ,
91
91
'name ' => 'Import Payments ' ,
92
92
'url ' => 'civicrm/banking/import ' ,
93
93
'permission ' => 'access CiviContribute ' ,
@@ -101,7 +101,7 @@ function banking_civicrm_navigationMenu(&$params) {
101
101
),
102
102
$ level => array (
103
103
'attributes ' => array (
104
- 'label ' => 'Configuration ' ,
104
+ 'label ' => ts ( 'Configuration ' ) ,
105
105
'name ' => 'Configuration ' ,
106
106
'url ' => 'civicrm/banking/manager ' ,
107
107
'permission ' => 'access CiviContribute ' ,
@@ -148,4 +148,25 @@ function banking_civicrm_tabs( &$tabs, $contactID ) {
148
148
'title ' => ts ("Bank Accounts " ),
149
149
'weight ' => 95 ,
150
150
'count ' => $ count_query ->acCount ));
151
+ }
152
+
153
+
154
+ /* bank accounts in merge operations
155
+ */
156
+ function banking_civicrm_merge ( $ type , &$ data , $ mainId = NULL , $ otherId = NULL , $ tables = NULL ) {
157
+ switch ($ type ) {
158
+ case 'relTables ' :
159
+ // Offer user to merge SEPA Mandates
160
+ $ data ['rel_table_bankaccounts ' ] = array (
161
+ 'title ' => ts ('Bank Accounts ' ),
162
+ 'tables ' => array ('civicrm_bank_account ' ),
163
+ 'url ' => CRM_Utils_System::url ('civicrm/contact/view ' , 'reset=1&cid=$cid&selectedChild=bank_accounts ' ), // '$cid' will be automatically replaced
164
+ );
165
+ break ;
166
+
167
+ case 'cidRefs ' :
168
+ // this is the only field that needs to be modified
169
+ $ data ['civicrm_bank_account ' ] = array ('contact_id ' );
170
+ break ;
171
+ }
151
172
}
0 commit comments