Revision 981979b5
Von Sven Schöling vor fast 7 Jahren hinzugefügt
t/datev/datev_format_2018.t | ||
---|---|---|
145 | 145 |
my @sorted = sort { $a->[0] cmp $b->[0] } @{ $lines_aref }; |
146 | 146 |
cmp_deeply $sorted[0], [ '1963,5', 'S', 'EUR', '', '', '', |
147 | 147 |
'1400', '8400', '', '1907', 'meine muh', |
148 |
'', '', '', '', '', '', '', '', '', |
|
148 |
'', '', 'Test customer', '', '', '', '', '', '',
|
|
149 | 149 |
'', '', '', '', '', '', '', '', '', |
150 | 150 |
'', '', '', '', '', '', '', "K\x{e4}stchen", |
151 | 151 |
'299', '','DE12345678', '', '', '', |
... | ... | |
161 | 161 |
]; |
162 | 162 |
cmp_deeply $sorted[1], [ '535', 'S', 'EUR', '', '', '', |
163 | 163 |
'1400', '8300', '', '1907','meine muh', |
164 |
'', '', '', '', '', '', '', '', '', |
|
164 |
'', '', 'Test customer', '', '', '', '', '', '',
|
|
165 | 165 |
'', '', '', '', '', '', '', '', '', |
166 | 166 |
'', '', '', '', '', '', '', "K\x{e4}stchen", |
167 | 167 |
'299', '','DE12345678', '', '', '', |
... | ... | |
244 | 244 |
); |
245 | 245 |
|
246 | 246 |
my @data_csv = sort { $a->[0] cmp $b->[0] } @{ $datev_csv3->lines }; |
247 |
cmp_deeply($data_csv[0], [ 100, 'S', 'EUR', '', '', '', '4660', '1000', 9, '1703', 'Reise März 2',
|
|
248 |
'', '', '', '', '', '', '', '', '', '', '', |
|
247 |
cmp_deeply($data_csv[0], [ '100', 'S', 'EUR', '', '', '', '4660', '1000', 9, '1703', 'Reise März 2',
|
|
248 |
'', '', 'Reisekonsten März 2018 / Ma Schmidt', '', '', '', '', '', '', '', '',
|
|
249 | 249 |
'', '', '', '', '', '', '', '', '', '', '', '', '', |
250 | 250 |
'', '', '', '', '', '', '', '', '', '', '', |
251 | 251 |
'', '', '', '', '', '', '', '', '', '', '', '', '', |
t/datev/invoices.t | ||
---|---|---|
168 | 168 |
is(scalar @{ $datev_csv->warnings }, 0); |
169 | 169 |
|
170 | 170 |
|
171 |
cmp_deeply($data_csv[1], [ 535, 'S', 'EUR', '', '', '', '1400', '8300', '', '0101', "\x{de} sales \x{a5}& i",
|
|
172 |
'', '', '', '', '', '', '', '', '', '', '', |
|
171 |
cmp_deeply($data_csv[1], [ '535', 'S', 'EUR', '', '', '', '1400', '8300', '', '0101', "\x{de} sales \x{a5}& i",
|
|
172 |
'', '', 'Testcustomer', '', '', '', '', '', '', '', '',
|
|
173 | 173 |
'', '', '', '', '', '', '', '', '', '', '', '', '', |
174 | 174 |
'', 'Kostenst', 'Crowd-Fu', '', '', '', '', '', '', '', '', |
175 | 175 |
'', '', '', '', '', '', '', '', '', '', '', '', '', |
... | ... | |
181 | 181 |
); |
182 | 182 |
|
183 | 183 |
cmp_deeply($data_csv[0], [ '249,9', 'S', 'EUR', '', '', '', '1400', '8400', '', '0101', "\x{de} sales \x{a5}& i", |
184 |
'', '', '', '', '', '', '', '', '', '', '', |
|
184 |
'', '', 'Testcustomer', '', '', '', '', '', '', '', '',
|
|
185 | 185 |
'', '', '', '', '', '', '', '', '', '', '', '', '', |
186 | 186 |
'', 'Kostenst', 'Crowd-Fu', '', '', '', '', '', '', '', '', |
187 | 187 |
'', '', '', '', '', '', '', '', '', '', '', '', '', |
... | ... | |
192 | 192 |
'', '', '', '', '' ] |
193 | 193 |
); |
194 | 194 |
cmp_deeply($data_csv[2], [ '784,9', 'S', 'EUR', '', '', '', '1200', '1400', '', '0501', "\x{de} sales \x{a5}& i", |
195 |
'', '', '', '', '', '', '', '', '', '', '', |
|
195 |
'', '', 'Testcustomer', '', '', '', '', '', '', '', '',
|
|
196 | 196 |
'', '', '', '', '', '', '', '', '', '', '', '', '', |
197 | 197 |
'', 'Kostenst', 'Crowd-Fu', '', '', '', '', '', '', '', '', |
198 | 198 |
'', '', '', '', '', '', '', '', '', '', '', '', '', |
Auch abrufbar als: Unified diff
DATEV: Testanpassungen