Revision c7cff765
Von Jan Büren vor fast 4 Jahren hinzugefügt
SL/DATEV.pm | ||
---|---|---|
461 | 461 |
} |
462 | 462 |
return $self->{locked}; |
463 | 463 |
} |
464 |
sub imported { |
|
465 |
my $self = shift; |
|
466 |
|
|
467 |
if (@_) { |
|
468 |
$self->{imported} = $_[0]; |
|
469 |
} |
|
470 |
return $self->{imported}; |
|
471 |
} |
|
464 | 472 |
|
465 | 473 |
sub generate_datev_data { |
466 | 474 |
$main::lxdebug->enter_sub(); |
... | ... | |
514 | 522 |
$ar_accno = "CASE WHEN ac.chart_link = 'AR' THEN ct.customernumber ELSE c.accno END as accno"; |
515 | 523 |
$ap_accno = "CASE WHEN ac.chart_link = 'AP' THEN ct.vendornumber ELSE c.accno END as accno"; |
516 | 524 |
} |
525 |
my $gl_imported; |
|
526 |
if ( !$self->imported ) { |
|
527 |
$gl_imported = " AND NOT imported"; |
|
528 |
} |
|
517 | 529 |
|
518 | 530 |
my $query = |
519 | 531 |
qq|SELECT ac.acc_trans_id, ac.transdate, ac.gldate, ac.trans_id,ar.id, ac.amount, ac.taxkey, ac.memo, |
... | ... | |
597 | 609 |
$trans_id_filter |
598 | 610 |
$gl_itime_filter |
599 | 611 |
$gl_department_id_filter |
612 |
$gl_imported |
|
600 | 613 |
$filter |
601 | 614 |
|
602 | 615 |
ORDER BY trans_id, acc_trans_id|; |
SL/DB/MetaSetup/GLTransaction.pm | ||
---|---|---|
16 | 16 |
employee_id => { type => 'integer' }, |
17 | 17 |
gldate => { type => 'date', default => 'now' }, |
18 | 18 |
id => { type => 'integer', not_null => 1, sequence => 'glid' }, |
19 |
imported => { type => 'boolean', default => 'false' }, |
|
19 | 20 |
itime => { type => 'timestamp', default => 'now()' }, |
20 | 21 |
mtime => { type => 'timestamp' }, |
21 | 22 |
notes => { type => 'text' }, |
bin/mozilla/datev.pl | ||
---|---|---|
119 | 119 |
); |
120 | 120 |
$data{use_pk} = $::form->{use_pk}; |
121 | 121 |
$data{locked} = $::form->{locked}; |
122 |
$data{imported} = $::form->{imported}; |
|
122 | 123 |
} else { |
123 | 124 |
die 'invalid exporttype'; |
124 | 125 |
} |
locale/de/all | ||
---|---|---|
1433 | 1433 |
'Export date to' => 'Exportdatum bis', |
1434 | 1434 |
'Export error in transaction #1: Rounding error too large #2' => 'Exportfehler in Transaktion #1: Zu großer Rundungsfehler (#2)', |
1435 | 1435 |
'Export error in transaction #1: Unbalanced ledger before next transaction (#2)' => 'Exportfehler in Transaktion #1: Unausgeglichene Buchung', |
1436 |
'Export imported bookings' => 'Importierte Buchungen exportieren', |
|
1436 | 1437 |
'Export with CV Charts' => 'Mit Personenkonten exportieren', |
1437 | 1438 |
'Extend automatically by n months' => 'Automatische Verlängerung um x Monate', |
1438 | 1439 |
'Extended' => 'Gesamt', |
sql/Pg-upgrade2/add_gl_imported.sql | ||
---|---|---|
1 |
-- @tag: add_gl_imported |
|
2 |
-- @description: Dialogbuchungsimport entsprechend kennzeichnen |
|
3 |
-- @depends: release_3_5_6 |
|
4 |
|
|
5 |
ALTER TABLE gl ADD imported BOOLEAN DEFAULT 'f'; |
|
6 |
|
templates/webpages/datev/export_bewegungsdaten.html | ||
---|---|---|
107 | 107 |
<td align=left>[% 'Lock bookings' | $T8 %]</td> |
108 | 108 |
<td align=left></td> |
109 | 109 |
<td colspan="3">[% L.yes_no_tag('locked', 0) %]</td> |
110 |
</tr> |
|
111 |
<tr> |
|
112 |
<td align=left>[% 'Export imported bookings' | $T8 %]</td> |
|
113 |
<td align=left></td> |
|
114 |
<td colspan="3">[% L.yes_no_tag('imported', 0) %]</td> |
|
110 | 115 |
</tr> |
111 | 116 |
</table> |
112 | 117 |
</td> |
Auch abrufbar als: Unified diff
Dialogbuchungen um Boolean imported erweitert.
Buchungen mit diesem Boolean können beim DATEV-Export
gefiltert werden. Anwendungsfall sind bspw. in DATEV
erstellte Lohnbuchungen, die dann in kivi importiert werden