projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c6043e0
)
Verwendung von datatype in der Doku deutlicher herausgestellt.
author
Bernd Bleßmann
<bernd@kivitendo-premium.de>
Wed, 23 Oct 2013 10:48:05 +0000
(12:48 +0200)
committer
Bernd Bleßmann
<bernd@kivitendo-premium.de>
Mon, 25 Nov 2013 13:03:13 +0000
(14:03 +0100)
SL/Helper/Csv.pm
patch
|
blob
|
history
diff --git
a/SL/Helper/Csv.pm
b/SL/Helper/Csv.pm
index
1cc0fae
..
2730502
100644
(file)
--- a/
SL/Helper/Csv.pm
+++ b/
SL/Helper/Csv.pm
@@
-446,13
+446,17
@@
in objects.
If not given, headers are taken from the first n lines of data, where n is the
number of different class types.
If not given, headers are taken from the first n lines of data, where n is the
number of different class types.
+In case of multiplexed data the first column must be named 'datatype'. This
+name must be given in the header.
+
Examples:
classic data of one type:
[ 'name', 'street', 'zipcode', 'city' ]
multiplexed data with two different types
Examples:
classic data of one type:
[ 'name', 'street', 'zipcode', 'city' ]
multiplexed data with two different types
- [ [ 'ordernumber', 'customer', 'transdate' ], [ 'partnumber', 'qty', 'sellprice' ] ]
+ [ [ 'datatype', 'ordernumber', 'customer', 'transdate' ],
+ [ 'datatype', 'partnumber', 'qty', 'sellprice' ] ]
=item C<profile> [{profile => \%ACCESSORS, class => class, row_ident => ri},]
=item C<profile> [{profile => \%ACCESSORS, class => class, row_ident => ri},]
@@
-493,7
+497,8
@@
If C<class> is present, the line will be handed to the new sub of this class,
and the return value used instead of the line itself.
C<row_ident> is a string to recognize the right profile and class for each data
and the return value used instead of the line itself.
C<row_ident> is a string to recognize the right profile and class for each data
-line in multiplexed data.
+line in multiplexed data. It must match the value in the column 'dataype' for
+each class.
In case of multiplexed data, C<class> and C<row_ident> must be given.
Example:
In case of multiplexed data, C<class> and C<row_ident> must be given.
Example: