projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Verkaufsrechnung: Fehler bei VK Rechnung "Als bezahlt markieren": action= nicht definiert
[kivitendo-erp.git]
/
SL
/
DB
/
CsvImportProfile.pm
diff --git
a/SL/DB/CsvImportProfile.pm
b/SL/DB/CsvImportProfile.pm
index
0b1a00c
..
1902a51
100644
(file)
--- a/
SL/DB/CsvImportProfile.pm
+++ b/
SL/DB/CsvImportProfile.pm
@@
-4,7
+4,7
@@
use strict;
use List::Util qw(first);
use List::Util qw(first);
-
us
e SL::DB::MetaSetup::CsvImportProfile;
+
requir
e SL::DB::MetaSetup::CsvImportProfile;
use Rose::DB::Object::Helpers qw(clone_and_reset);
__PACKAGE__->meta->add_relationship(
use Rose::DB::Object::Helpers qw(clone_and_reset);
__PACKAGE__->meta->add_relationship(
@@
-54,6
+54,11
@@
sub set_defaults {
default_buchungsgruppe => ($bugru ? $bugru->id : undef),
apply_buchungsgruppe => 'all',
);
default_buchungsgruppe => ($bugru ? $bugru->id : undef),
apply_buchungsgruppe => 'all',
);
+ } elsif ($self->type eq 'orders') {
+ $self->_set_defaults(order_column => $::locale->text('Order'),
+ item_column => $::locale->text('OrderItem'),
+ max_amount_diff => 0.02,
+ );
} else {
$self->_set_defaults(table => 'customer');
}
} else {
$self->_set_defaults(table => 'customer');
}
@@
-105,6
+110,14
@@
sub clone_and_reset_deep {
return $clone;
}
return $clone;
}
+sub flatten {
+ my ($self) = @_;
+
+ return map {
+ $_->key => $_->value
+ } $self->settings;
+}
+
#
# hooks
#
#
# hooks
#