Revision 28fc2476
Von Sven Schöling vor etwa 8 Jahren hinzugefügt
SL/DATEV.pm | ||
---|---|---|
33 | 33 |
use SL::DATEV::KNEFile; |
34 | 34 |
use SL::DB; |
35 | 35 |
use SL::HTML::Util (); |
36 |
use SL::Locale::String qw(t8); |
|
36 | 37 |
|
37 | 38 |
use Data::Dumper; |
38 | 39 |
use DateTime; |
... | ... | |
492 | 493 |
if ($ref2->{trans_id} != $trans->[0]->{trans_id}) { |
493 | 494 |
require SL::DB::Manager::AccTransaction; |
494 | 495 |
if ( $trans->[0]->{trans_id} ) { |
495 |
my $acc_trans_old_obj = SL::DB::Manager::AccTransaction->get_first(where => [ trans_id => $trans->[0]->{trans_id} ]); |
|
496 |
$self->add_error("Unbalanced ledger! Old: " . $acc_trans_old_obj->transaction_name) if ref($acc_trans_old_obj); |
|
496 |
my $acc_trans_obj = SL::DB::Manager::AccTransaction->get_first(where => [ trans_id => $trans->[0]->{trans_id} ]); |
|
497 |
$self->add_error(t8("Export error in transaction #1: Unbalanced ledger before next transaction (#2)", |
|
498 |
$acc_trans_obj->transaction_name, $ref2->{trans_id}) |
|
499 |
); |
|
497 | 500 |
}; |
498 |
if ( $ref2->{trans_id} ) { |
|
499 |
my $acc_trans_curr_obj = SL::DB::Manager::AccTransaction->get_first(where => [ trans_id => $ref2->{trans_id} ]); |
|
500 |
$self->add_error("Unbalanced ledger! New:" . $acc_trans_curr_obj->transaction_name) if ref($acc_trans_curr_obj); |
|
501 |
}; |
|
502 |
$self->add_error("count: $count"); |
|
503 | 501 |
return; |
504 | 502 |
} |
505 | 503 |
|
... | ... | |
670 | 668 |
if (abs($absumsatz) >= (0.01 * (1 + scalar @taxed))) { |
671 | 669 |
require SL::DB::Manager::AccTransaction; |
672 | 670 |
my $acc_trans_obj = SL::DB::Manager::AccTransaction->get_first(where => [ trans_id => $trans->[0]->{trans_id} ]); |
673 |
$self->add_error("Datev-Export fehlgeschlagen! Bei Transaktion " . $acc_trans_obj->transaction_name . " ($absumsatz)"); |
|
674 |
|
|
671 |
$self->add_error(t8("Export error in transaction #1: Rounding error too large #2", |
|
672 |
$acc_trans_obj->transaction_name, $absumsatz) |
|
673 |
); |
|
675 | 674 |
} elsif (abs($absumsatz) >= 0.01) { |
676 | 675 |
$self->add_net_gross_differences($absumsatz); |
677 | 676 |
} |
locale/de/all | ||
---|---|---|
1275 | 1275 |
'Export date' => 'Exportdatum', |
1276 | 1276 |
'Export date from' => 'Exportdatum von', |
1277 | 1277 |
'Export date to' => 'Exportdatum bis', |
1278 |
'Export error in transaction #1: Rounding error too large #2' => 'Exportfehler in Transaktion #1: Zu großer Rundungsfehler (#2)', |
|
1279 |
'Export error in transaction #1: Unbalanced ledger before next transaction (#2)' => 'Exportfehler in Transaktion #1: Unausgeglichene Buchung', |
|
1278 | 1280 |
'Extend automatically by n months' => 'Automatische Verlängerung um x Monate', |
1279 | 1281 |
'Extended' => 'Gesamt', |
1280 | 1282 |
'Extended status' => 'Erweiterter Status', |
Auch abrufbar als: Unified diff
DATEV: Fehlermeldungen verbessert und lokalisiert