Revision 973e7b1e
Von Bernd Bleßmann vor mehr als 1 Jahr hinzugefügt
SL/Controller/CsvImport/APTransaction.pm | ||
---|---|---|
229 | 229 |
$self->controller->track_progress(progress => $i/$num_data * 100) if $i % 100 == 0; |
230 | 230 |
|
231 | 231 |
if ($entry->{raw_data}->{datatype} eq $self->_ap_column) { |
232 |
$entry->{info_data}->{datatype} = $::locale->text($self->_ap_column); |
|
232 | 233 |
$self->handle_invoice($entry); |
233 | 234 |
$invoice_entry = $entry; |
234 | 235 |
} elsif ($entry->{raw_data}->{datatype} eq $self->_transaction_column ) { |
235 | 236 |
die "Cannot process transaction row without an invoice row" if !$invoice_entry; |
237 |
$entry->{info_data}->{datatype} = $::locale->text($self->_transaction_column); |
|
236 | 238 |
$self->handle_transaction($entry, $invoice_entry); |
237 | 239 |
} else { |
238 | 240 |
die "unknown datatype"; |
... | ... | |
242 | 244 |
$i++; |
243 | 245 |
} # finished data parsing |
244 | 246 |
|
247 |
$self->add_info_columns($self->_ap_column, { header => 'datatype', method => 'datatype' }); |
|
248 |
$self->add_info_columns($self->_transaction_column, { header => 'datatype', method => 'datatype' }); |
|
249 |
|
|
245 | 250 |
$self->add_transactions_to_ap(); # go through all data entries again, adding payable entry to ap lines while calculating amount and netamount |
246 | 251 |
|
247 | 252 |
foreach my $entry (@{ $self->controller->data }) { |
Auch abrufbar als: Unified diff
CSV-Import Kreditorenbuchungen: Spalte mit Datentyp als Info anzeigen