Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 0f37ddcd

Von Jan Büren vor mehr als 6 Jahren hinzugefügt

  • ID 0f37ddcd492b271a6b316893eda1544931c2a0ad
  • Vorgänger 6c1998ba
  • Nachfolger 3a81b209

Auch Verwendungszweck beim Import per CSV zusammenfügen

Beim MT940 Import wird purposeX und remote_name_X in einer
Zeichenkette zusammengefügt. Beim CSV-Import ist dies nicht
möglich, da an der Oberfläche das entsprechende Drop-Down-Element
diese Zuordnung (Spalte -> Import-Objekt) nicht zulässt.

Unterschiede anzeigen:

SL/Controller/CsvImport/BankTransaction.pm
96 96
   { name => 'currency',              description => $::locale->text('Currency') },
97 97
   { name => 'currency_id',           description => $::locale->text('Currency (database ID)')          },
98 98
   { name => 'remote_name',           description => $::locale->text('Name of the goal/source (if field names remote_name and remote_name_1 exist they will be combined into field "remote_name")') },
99
   { name => 'purpose',               description => $::locale->text('Purpose (if field names purpose, purpose1, purpose2 ... exist they will all combined into the field "purpose")') }
99
   { name => 'remote_name_1',          description => $::locale->text('Name of the goal/source (if field names remote_name and remote_name_1 exist they will be combined into field "remote_name")') },
100
   { name => 'purpose',               description => $::locale->text('Purpose (if field names purpose, purpose1, purpose2 ... exist they will all combined into the field "purpose")') },
101
   { name => 'purpose1',              description => $::locale->text('Purpose (if field names purpose, purpose1, purpose2 ... exist they will all combined into the field "purpose")') },
102
   { name => 'purpose2',              description => $::locale->text('Purpose (if field names purpose, purpose1, purpose2 ... exist they will all combined into the field "purpose")') },
103
   { name => 'purpose3',              description => $::locale->text('Purpose (if field names purpose, purpose1, purpose2 ... exist they will all combined into the field "purpose")') },
104
   { name => 'purpose4',              description => $::locale->text('Purpose (if field names purpose, purpose1, purpose2 ... exist they will all combined into the field "purpose")') },
105
   { name => 'purpose5',              description => $::locale->text('Purpose (if field names purpose, purpose1, purpose2 ... exist they will all combined into the field "purpose")') },
106
   { name => 'purpose6',              description => $::locale->text('Purpose (if field names purpose, purpose1, purpose2 ... exist they will all combined into the field "purpose")') },
107
   { name => 'purpose7',              description => $::locale->text('Purpose (if field names purpose, purpose1, purpose2 ... exist they will all combined into the field "purpose")') },
108
   { name => 'purpose8',              description => $::locale->text('Purpose (if field names purpose, purpose1, purpose2 ... exist they will all combined into the field "purpose")') },
109
   { name => 'purpose9',              description => $::locale->text('Purpose (if field names purpose, purpose1, purpose2 ... exist they will all combined into the field "purpose")') },
110
   { name => 'purpose10',             description => $::locale->text('Purpose (if field names purpose, purpose1, purpose2 ... exist they will all combined into the field "purpose")') },
111
   { name => 'purpose11',             description => $::locale->text('Purpose (if field names purpose, purpose1, purpose2 ... exist they will all combined into the field "purpose")') },
112
   { name => 'purpose12',             description => $::locale->text('Purpose (if field names purpose, purpose1, purpose2 ... exist they will all combined into the field "purpose")') },
113
   { name => 'purpose13',             description => $::locale->text('Purpose (if field names purpose, purpose1, purpose2 ... exist they will all combined into the field "purpose")') }
100 114
 );
101 115
}
102 116

  
......
160 174

  
161 175
  my $object = $entry->{object};
162 176

  
163
  my $purpose = join('', $entry->{raw_data}->{purpose},
177
  my $purpose = join(' ', $entry->{raw_data}->{purpose},
164 178
                         $entry->{raw_data}->{purpose1},
165 179
                         $entry->{raw_data}->{purpose2},
166 180
                         $entry->{raw_data}->{purpose3},
......
171 185
                         $entry->{raw_data}->{purpose8},
172 186
                         $entry->{raw_data}->{purpose9},
173 187
                         $entry->{raw_data}->{purpose10},
174
                         $entry->{raw_data}->{purpose11} );
188
                         $entry->{raw_data}->{purpose11},
189
                         $entry->{raw_data}->{purpose12},
190
                         $entry->{raw_data}->{purpose13} );
175 191
  $object->purpose($purpose);
176 192

  
177 193
}
......
181 197

  
182 198
  my $object = $entry->{object};
183 199

  
184
  my $remote_name = join('', $entry->{raw_data}->{remote_name},
200
  my $remote_name = join(' ', $entry->{raw_data}->{remote_name},
185 201
                             $entry->{raw_data}->{remote_name_1} );
186 202
  $object->remote_name($remote_name);
187 203
}

Auch abrufbar als: Unified diff