1 package SL::BackgroundJob::SelfTest::Transactions;
5 use parent qw(SL::BackgroundJob::SelfTest::Base);
9 use Rose::Object::MakeMethods::Generic (
10 scalar => [ qw(dbh fromdate todate) ],
18 $self->tester->plan(tests => 21);
20 $self->check_konten_mit_saldo_nicht_in_guv;
21 $self->check_bilanzkonten_mit_pos_eur;
22 $self->check_balanced_individual_transactions;
23 $self->check_verwaiste_acc_trans_eintraege;
24 $self->check_verwaiste_invoice_eintraege;
25 $self->check_ar_acc_trans_amount;
26 $self->check_ap_acc_trans_amount;
27 $self->check_netamount_laut_invoice_ar;
28 $self->check_invnumbers_unique;
29 $self->check_summe_stornobuchungen;
32 $self->check_ar_overpayments;
33 $self->check_ap_overpayments;
34 $self->check_paid_stornos;
35 $self->check_stornos_ohne_partner;
36 $self->check_overpayments;
37 $self->check_every_account_with_taxkey;
38 $self->calc_saldenvortraege;
39 $self->check_missing_tax_bookings;
40 $self->check_bank_transactions_overpayments;
46 # TODO FIXME calc dates better, unless this is wanted
47 $self->fromdate(DateTime->new(day => 1, month => 1, year => DateTime->today->year));
48 $self->todate($self->fromdate->clone->add(years => 1)->add(days => -1));
49 $self->dbh($::form->get_standard_dbh);
52 sub check_konten_mit_saldo_nicht_in_guv {
56 SELECT c.accno, c.description, c.category, SUM(a.amount) AS Saldo
59 WHERE c.id = a.chart_id
60 and (c.category like 'I' or c.category like 'E')
63 and a.transdate >= ? and a.transdate <= ?
64 GROUP BY c.accno,c.description,c.category,c.pos_bilanz,c.pos_eur
67 my $konten_nicht_in_guv = selectall_hashref_query($::form, $self->dbh, $query, $self->fromdate, $self->todate);
69 my $correct = 0 == scalar grep { $_->{Saldo} } @$konten_nicht_in_guv;
71 $self->tester->ok($correct, "Erfolgskonten mit Saldo nicht in GuV (Saldenvortragskonten können ignoriert werden, sollten aber 0 sein)");
73 for my $konto (@$konten_nicht_in_guv) {
74 $self->tester->diag($konto);
79 sub check_bilanzkonten_mit_pos_eur {
82 my $query = qq|SELECT accno, description FROM chart WHERE (category = 'A' OR category = 'L' OR category = 'Q') AND (pos_eur IS NOT NULL OR pos_eur != 0)|;
84 my $bilanzkonten_mit_pos_eur = selectall_hashref_query($::form, $self->dbh, $query);
85 if (@$bilanzkonten_mit_pos_eur) {
86 $self->tester->ok(0, "Es gibt Bilanzkonten die der GuV/EÜR zugeordnet sind)");
87 $self->tester->diag("$_->{accno} $_->{description}") for @$bilanzkonten_mit_pos_eur;
89 $self->tester->ok(1, "Keine Bilanzkonten in der GuV");
93 sub check_balanced_individual_transactions {
97 select sum(ac.amount) as amount,trans_id,ar.invnumber as ar,ap.invnumber as ap,gl.reference as gl
99 left join ar on (ar.id = ac.trans_id)
100 left join ap on (ap.id = ac.trans_id)
101 left join gl on (gl.id = ac.trans_id)
102 where ac.transdate >= ? AND ac.transdate <= ?
103 group by trans_id,ar.invnumber,ap.invnumber,gl.reference
104 having sum(ac.amount) != 0;|;
106 my $acs = selectall_hashref_query($::form, $self->dbh, $query, $self->fromdate, $self->todate);
108 $self->tester->ok(0, "Es gibt unausgeglichene acc_trans-Transaktionen:");
109 for my $ac (@{ $acs }) {
110 $self->tester->diag("trans_id: $ac->{trans_id}, amount = $ac->{amount}, ar: $ac->{ar} ap: $ac->{ap} gl: $ac->{gl}");
113 $self->tester->ok(1, "Alle acc_trans Transaktionen ergeben in Summe 0, keine unausgeglichenen Transaktionen");
117 sub check_verwaiste_acc_trans_eintraege {
121 select trans_id,amount,accno,description from acc_trans a
122 left join chart c on (c.id = a.chart_id)
123 where trans_id not in (select id from gl union select id from ar union select id from ap order by id)
124 and a.transdate >= ? and a.transdate <= ? ;|;
126 my $verwaiste_acs = selectall_hashref_query($::form, $self->dbh, $query, $self->fromdate, $self->todate);
127 if (@$verwaiste_acs) {
128 $self->tester->ok(0, "Es gibt verwaiste acc-trans Einträge! (wo ar/ap/gl-Eintrag fehlt)");
129 $self->tester->diag($_) for @$verwaiste_acs;
131 $self->tester->ok(1, "Keine verwaisten acc-trans Einträge (wo ar/ap/gl-Eintrag fehlt)");
135 sub check_verwaiste_invoice_eintraege {
136 # this check is always run for all invoice entries in the entire database
139 select * from invoice i
140 where trans_id not in (select id from ar WHERE ar.transdate >=? AND ar.transdate <=?
142 select id from ap WHERE ap.transdate >= ? and ap.transdate <= ?)
143 AND i.transdate >=? AND i.transdate <=?|;
145 my $verwaiste_invoice = selectall_hashref_query($::form, $self->dbh, $query, $self->fromdate, $self->todate,
146 $self->fromdate, $self->todate, $self->fromdate, $self->todate);
149 if (@$verwaiste_invoice) {
150 $self->tester->ok(0, "Es gibt verwaiste invoice Einträge! (wo ar/ap-Eintrag fehlt)");
151 for my $invoice ( @{ $verwaiste_invoice }) {
152 $self->tester->diag("invoice: id: $invoice->{id} trans_id: $invoice->{trans_id} description: $invoice->{description} itime: $invoice->{itime}");
155 $self->tester->ok(1, "Keine verwaisten invoice Einträge (wo ar/ap-Eintrag fehlt)"); }
158 sub check_netamount_laut_invoice_ar {
161 select sum(round(cast(i.qty*(i.fxsellprice * (1-i.discount)) as numeric), 2))
163 left join ar a on (a.id = i.trans_id)
164 where a.transdate >= ? and a.transdate <= ?;|;
165 my ($netamount_laut_invoice) = selectfirst_array_query($::form, $self->dbh, $query, $self->fromdate, $self->todate);
167 $query = qq| select sum(netamount) from ar where transdate >= ? and transdate <= ? AND invoice; |;
168 my ($netamount_laut_ar) = selectfirst_array_query($::form, $self->dbh, $query, $self->fromdate, $self->todate);
170 # should be enough to get a diff below 1. We have currently the following issues:
171 # verkaufsbericht berücksichtigt keinen rabatt
172 # fxsellprice ist mit mwst-inklusive
173 my $correct = abs($netamount_laut_invoice - $netamount_laut_ar) < 1;
175 $self->tester->ok($correct, "Summe laut Verkaufsbericht sollte gleich Summe aus Verkauf -> Berichte -> Rechnungen sein");
177 $self->tester->diag("Netto-Summe laut Verkaufsbericht (invoice): $netamount_laut_invoice");
178 $self->tester->diag("Netto-Summe laut Verkauf -> Berichte -> Rechnungen: $netamount_laut_ar");
182 sub check_invnumbers_unique {
185 my $query = qq| select invnumber,count(invnumber) as count from ar
186 where transdate >= ? and transdate <= ?
188 having count(invnumber) > 1; |;
189 my $non_unique_invnumbers = selectall_hashref_query($::form, $self->dbh, $query, $self->fromdate, $self->todate);
191 if (@$non_unique_invnumbers) {
192 $self->tester->ok(0, "Es gibt doppelte Rechnungsnummern");
193 for my $invnumber (@{ $non_unique_invnumbers }) {
194 $self->tester->diag("invnumber: $invnumber->{invnumber} $invnumber->{count}x");
197 $self->tester->ok(1, "Alle Rechnungsnummern sind eindeutig");
201 sub check_summe_stornobuchungen {
205 select sum(amount) from ar a JOIN customer c ON (a.customer_id = c.id)
207 AND a.transdate >= ? and a.transdate <= ?|;
208 my ($summe_stornobuchungen_ar) = selectfirst_array_query($::form, $self->dbh, $query, $self->fromdate, $self->todate);
211 select sum(amount) from ap a JOIN vendor c ON (a.vendor_id = c.id)
213 AND a.transdate >= ? and a.transdate <= ?|;
214 my ($summe_stornobuchungen_ap) = selectfirst_array_query($::form, $self->dbh, $query, $self->fromdate, $self->todate);
216 $self->tester->ok($summe_stornobuchungen_ap == 0, 'Summe aller Einkaufsrechnungen (stornos + stornierte) soll 0 sein');
217 $self->tester->ok($summe_stornobuchungen_ar == 0, 'Summe aller Verkaufsrechnungen (stornos + stornierte) soll 0 sein');
218 $self->tester->diag("Summe Verkaufsrechnungen (ar): $summe_stornobuchungen_ar") if $summe_stornobuchungen_ar;
219 $self->tester->diag("Summe Einkaufsrechnungen (ap): $summe_stornobuchungen_ap") if $summe_stornobuchungen_ap;
226 select invnumber,paid,
227 (select sum(amount) from acc_trans a left join chart c on (c.id = a.chart_id) where trans_id = ar.id and c.link like '%AR_paid%') as accpaid ,
228 paid+(select sum(amount) from acc_trans a left join chart c on (c.id = a.chart_id) where trans_id = ar.id and c.link like '%AR_paid%') as diff
231 (select sum(amount) from acc_trans a left join chart c on (c.id = a.chart_id) where trans_id = ar.id and c.link like '%AR_paid%') is not null
233 AND transdate >= ? and transdate <= ?
236 my $paid_diffs_ar = selectall_hashref_query($::form, $self->dbh, $query, $self->fromdate, $self->todate);
238 my $errors = scalar grep { $_->{diff} != 0 } @$paid_diffs_ar;
240 $self->tester->ok(!$errors, "Vergleich ar paid mit acc_trans AR_paid");
242 for my $paid_diff_ar (@{ $paid_diffs_ar }) {
243 next if $paid_diff_ar->{diff} == 0;
244 $self->tester->diag("ar invnumber: $paid_diff_ar->{invnumber} : paid: $paid_diff_ar->{paid} acc_paid= $paid_diff_ar->{accpaid} diff: $paid_diff_ar->{diff}");
252 select invnumber,paid,
253 (select sum(amount) from acc_trans a left join chart c on (c.id = a.chart_id) where trans_id = ap.id and c.link like '%AP_paid%') as accpaid ,
254 paid-(select sum(amount) from acc_trans a left join chart c on (c.id = a.chart_id) where trans_id = ap.id and c.link like '%AP_paid%') as diff
257 (select sum(amount) from acc_trans a left join chart c on (c.id = a.chart_id) where trans_id = ap.id and c.link like '%AP_paid%') is not null
258 AND transdate >= ? and transdate <= ?
261 my $paid_diffs_ap = selectall_hashref_query($::form, $self->dbh, $query, $self->fromdate, $self->todate);
263 my $errors = scalar grep { $_->{diff} != 0 } @$paid_diffs_ap;
265 $self->tester->ok(!$errors, "Vergleich ap paid mit acc_trans AP_paid");
266 for my $paid_diff_ap (@{ $paid_diffs_ap }) {
267 next if $paid_diff_ap->{diff} == 0;
268 $self->tester->diag("ap invnumber: $paid_diff_ap->{invnumber} : paid: $paid_diff_ap->{paid} acc_paid= $paid_diff_ap->{accpaid} diff: $paid_diff_ap->{diff}");
272 sub check_ar_overpayments {
276 select invnumber,paid,amount,transdate,c.customernumber,c.name from ar left join customer c on (ar.customer_id = c.id)
277 where abs(paid) > abs(amount)
278 AND transdate >= ? and transdate <= ?
279 order by invnumber;|;
281 my $overpaids_ar = selectall_hashref_query($::form, $self->dbh, $query, $self->fromdate, $self->todate);
283 my $correct = 0 == @$overpaids_ar;
285 $self->tester->ok($correct, "Keine Überzahlungen laut ar.paid");
286 for my $overpaid_ar (@{ $overpaids_ar }) {
287 $self->tester->diag("ar invnumber: $overpaid_ar->{invnumber} : paid: $overpaid_ar->{paid} amount= $overpaid_ar->{amount} transdate = $overpaid_ar->{transdate}");
291 sub check_ap_overpayments {
295 select invnumber,paid,amount,transdate,vc.vendornumber,vc.name from ap left join vendor vc on (ap.vendor_id = vc.id)
296 where abs(paid) > abs(amount)
297 AND transdate >= ? and transdate <= ?
298 order by invnumber;|;
300 my $overpaids_ap = selectall_hashref_query($::form, $self->dbh, $query, $self->fromdate, $self->todate);
302 my $correct = 0 == @$overpaids_ap;
304 $self->tester->ok($correct, "Überzahlungen laut ap.paid:");
305 for my $overpaid_ap (@{ $overpaids_ap }) {
306 $self->tester->diag("ap invnumber: $overpaid_ap->{invnumber} : paid: $overpaid_ap->{paid} amount= $overpaid_ap->{amount} transdate = $overpaid_ap->{transdate}");
310 sub check_paid_stornos {
314 SELECT ar.invnumber,sum(amount - COALESCE((SELECT sum(amount)*-1
315 FROM acc_trans LEFT JOIN chart ON (acc_trans.chart_id=chart.id)
316 WHERE link ilike '%paid%' AND acc_trans.trans_id=ar.id ),0)) as "open"
320 AND (ar.customer_id = customer.id)
321 AND ar.transdate >= ? and ar.transdate <= ?
322 GROUP BY ar.invnumber|;
323 my $paid_stornos = selectall_hashref_query($::form, $self->dbh, $query, $self->fromdate, $self->todate);
325 $self->tester->ok(0 == @$paid_stornos, "Keine bezahlten Stornos");
326 for my $paid_storno (@{ $paid_stornos }) {
327 $self->tester->diag("invnumber: $paid_storno->{invnumber} offen: $paid_storno->{open}");
331 sub check_stornos_ohne_partner {
335 SELECT (SELECT cast ('ar' as text)) as invoice ,ar.id,invnumber,storno,amount,transdate,type,customernumber as cv_number
337 LEFT JOIN customer c on (c.id = ar.customer_id)
338 WHERE storno_id is null AND storno is true AND ar.id not in (SELECT storno_id FROM ar WHERE storno_id is not null AND storno is true)
339 AND ar.transdate >= ? and ar.transdate <= ?
341 SELECT (SELECT cast ('ap' as text)) as invoice,ap.id,invnumber,storno,amount,transdate,type,vendornumber as cv_number
343 LEFT JOIN vendor v on (v.id = ap.vendor_id)
344 WHERE storno_id is null AND storno is true AND ap.id not in (SELECT storno_id FROM ap WHERE storno_id is not null AND storno is true)
345 AND ap.transdate >= ? and ap.transdate <= ?|;
347 my $stornos_ohne_partner = selectall_hashref_query($::form, $self->dbh, $query, $self->fromdate, $self->todate,
348 $self->fromdate, $self->todate);
350 $self->tester->ok(@$stornos_ohne_partner == 0, 'Es sollte keine Stornos ohne Partner geben');
351 if (@$stornos_ohne_partner) {
352 $self->tester->diag("Stornos ohne Partner, oder Storno über Jahreswechsel hinaus");
354 my $stornoheader = 0;
355 for my $storno (@{ $stornos_ohne_partner }) {
356 if (!$stornoheader++) {
357 $self->tester->diag(join "\t", keys %$storno);
359 $self->tester->diag(join "\t", map { $storno->{$_} } keys %$storno);
363 sub check_overpayments {
366 # Vergleich ar.paid und das was laut acc_trans bezahlt wurde
367 # "als bezahlt markieren" ohne sauberes Ausbuchen führt zu Differenzen bei offenen Forderungen
368 # geht nur auf wenn acc_trans Zahlungseingänge auch im Untersuchungszeitraum lagen
369 # Stornos werden rausgefiltert
372 invnumber,customernumber,name,ar.transdate,ar.datepaid,
374 amount-paid as "open via ar",
375 paid as "paid via ar",
376 coalesce((SELECT sum(amount)*-1 FROM acc_trans LEFT JOIN chart ON (acc_trans.chart_id=chart.id)
377 WHERE link ilike '%paid%' AND acc_trans.trans_id=ar.id AND acc_trans.transdate <= ?),0) as "paid via acc_trans"
378 FROM ar left join customer c on (c.id = ar.customer_id)
381 AND transdate >= ? AND transdate <= ?|;
383 my $invoices = selectall_hashref_query($::form, $self->dbh, $query, $self->todate, $self->fromdate, $self->todate);
385 my $count_overpayments = scalar grep {
386 $_->{"paid via ar"} != $_->{"paid via acc_trans"}
387 || ( $_->{"amount"} - $_->{"paid via acc_trans"} != $_->{"open via ar"}
388 && $_->{"paid via ar"} != $_->{"paid via acc_trans"} )
391 $self->tester->ok($count_overpayments == 0, 'Vergleich ar.paid und das was laut acc_trans bezahlt wurde');
393 if ($count_overpayments) {
394 for my $invoice (@{ $invoices }) {
395 if ($invoice->{"paid via ar"} != $invoice->{"paid via acc_trans"}) {
396 $self->tester->diag("paid via ar (@{[ $invoice->{'paid via ar'} * 1 ]}) != paid via acc_trans (@{[ $invoice->{'paid via acc_trans'} * 1 ]}) (at least until transdate!)");
397 if (defined $invoice->{datepaid}) {
398 $self->tester->diag("datepaid = $invoice->{datepaid})");
400 $self->tester->diag("Überzahlung bei Rechnung: $invoice->{invnumber}") if $invoice->{"paid via acc_trans"} > $invoice->{amount};
401 } elsif ( $invoice->{"amount"} - $invoice->{"paid via acc_trans"} != $invoice->{"open via ar"} && $invoice->{"paid via ar"} != $invoice->{"paid via acc_trans"}) {
402 $self->tester->diag("amount - paid_via_acc_trans != open_via_ar");
403 $self->tester->diag("Überzahlung bei Rechnung: $invoice->{invnumber}") if $invoice->{"paid via acc_trans"} > $invoice->{amount};
411 sub calc_saldenvortraege {
414 my $saldenvortragskonto = '9000';
416 # Saldo Saldenvortragskonto 9000 am Jahresanfang
418 select sum(amount) from acc_trans where chart_id = (select id from chart where accno = ?) and transdate <= ?|;
419 my ($saldo_9000_jahresanfang) = selectfirst_array_query($::form, $self->dbh, $query, $saldenvortragskonto, DateTime->new(day => 1, month => 1, year => DateTime->today->year));
420 $self->tester->diag("Saldo 9000 am 01.01.@{[DateTime->today->year]}: @{[ $saldo_9000_jahresanfang * 1 ]} (sollte 0 sein)");
422 # Saldo Saldenvortragskonto 9000 am Jahresende
424 select sum(amount) from acc_trans where chart_id = (select id from chart where accno = ?) and transdate <= ?|;
425 my ($saldo_9000_jahresende) = selectfirst_array_query($::form, $self->dbh, $query, $saldenvortragskonto, DateTime->new(day => 31, month => 12, year => DateTime->today->year));
426 $self->tester->diag("Saldo $saldenvortragskonto am 31.12.@{[DateTime->today->year]}: @{[ $saldo_9000_jahresende * 1 ]} (sollte 0 sein)");
429 sub check_every_account_with_taxkey {
432 my $query = qq|SELECT accno, description FROM chart WHERE id NOT IN (select chart_id from taxkeys)|;
433 my $accounts_without_tk = selectall_hashref_query($::form, $self->dbh, $query);
435 if ( scalar @{ $accounts_without_tk } > 0 ){
436 $self->tester->ok(0, "Folgende Konten haben keinen gültigen Steuerschlüssel:");
438 for my $account_without_tk (@{ $accounts_without_tk } ) {
439 $self->tester->diag("Kontonummer: $account_without_tk->{accno} Beschreibung: $account_without_tk->{description}");
442 $self->tester->ok(1, "Jedes Konto hat einen gültigen Steuerschlüssel!");
446 sub check_ar_acc_trans_amount {
450 select sum(ac.amount) as amount, ar.invnumber,ar.netamount
451 from acc_trans ac left join ar on (ac.trans_id = ar.id)
452 WHERE ac.chart_link like 'AR_amount%'
453 AND ac.transdate >= ? AND ac.transdate <= ?
454 group by invnumber,netamount having sum(ac.amount) <> ar.netamount|;
456 my $ar_amount_not_ac_amount = selectall_hashref_query($::form, $self->dbh, $query, $self->fromdate, $self->todate);
458 if ( scalar @{ $ar_amount_not_ac_amount } > 0 ) {
459 $self->tester->ok(0, "Folgende Ausgangsrechnungen haben einen falschen Netto-Wert im Nebenbuch:");
461 for my $ar_ac_amount_nok (@{ $ar_amount_not_ac_amount } ) {
462 $self->tester->diag("Rechnungsnummer: $ar_ac_amount_nok->{invnumber} Hauptbuch-Wert: $ar_ac_amount_nok->{amount}
463 Nebenbuch-Wert: $ar_ac_amount_nok->{netamount}");
466 $self->tester->ok(1, "Hauptbuch-Nettowert und Debitoren-Nebenbuch-Nettowert stimmen überein.");
471 sub check_ap_acc_trans_amount {
475 select sum(ac.amount) as amount, ap.invnumber,ap.netamount
476 from acc_trans ac left join ap on (ac.trans_id = ap.id)
477 WHERE ac.chart_link like 'AR_amount%'
478 AND ac.transdate >= ? AND ac.transdate <= ?
479 group by invnumber,netamount having sum(ac.amount) <> ap.netamount*-1|;
481 my $ap_amount_not_ac_amount = selectall_hashref_query($::form, $self->dbh, $query, $self->fromdate, $self->todate);
483 if ( scalar @{ $ap_amount_not_ac_amount } > 0 ) {
484 $self->tester->ok(0, "Folgende Eingangsrechnungen haben einen falschen Netto-Wert im Nebenbuch:");
486 for my $ap_ac_amount_nok (@{ $ap_amount_not_ac_amount } ) {
487 $self->tester->diag("Rechnungsnummer: $ap_ac_amount_nok->{invnumber} Hauptbuch-Wert: $ap_ac_amount_nok->{amount}
488 Nebenbuch-Wert: $ap_ac_amount_nok->{netamount}");
491 $self->tester->ok(1, "Hauptbuch-Nettowert und Kreditoren-Nebenbuch-Nettowert stimmen überein.");
497 sub check_missing_tax_bookings {
501 # check tax bookings. all taxkey <> 0 should have tax bookings in acc_trans
503 my $query = qq| select trans_id, chart.accno,transdate from acc_trans left join chart on (chart.id = acc_trans.chart_id)
504 WHERE taxkey NOT IN (SELECT taxkey from tax where rate=0) AND trans_id NOT IN
505 (select trans_id from acc_trans where chart_link ilike '%tax%' and trans_id IN
506 (SELECT trans_id from acc_trans where taxkey NOT IN (SELECT taxkey from tax where rate=0)))
507 AND transdate >= ? AND transdate <= ?|;
509 my $missing_tax_bookings = selectall_hashref_query($::form, $self->dbh, $query, $self->fromdate, $self->todate);
511 if ( scalar @{ $missing_tax_bookings } > 0 ) {
512 $self->tester->ok(0, "Folgende Konten weisen Buchungen ohne Steuer auf:");
514 for my $acc_trans_nok (@{ $missing_tax_bookings } ) {
515 $self->tester->diag("Kontonummer: $acc_trans_nok->{accno} Belegdatum: $acc_trans_nok->{transdate} Trans-ID: $acc_trans_nok->{trans_id}.
516 Kann über System -> Korrekturen im Hauptbuch bereinigt werden.");
519 $self->tester->ok(1, "Hauptbuch-Nettowert und Nebenbuch-Nettowert stimmen überein.");
523 sub check_bank_transactions_overpayments {
527 select id,amount,invoice_amount, purpose,transdate from bank_transactions where abs(invoice_amount) > abs(amount)
528 AND transdate >= ? AND transdate <= ? order by transdate|;
530 my $overpaids_bank_transactions = selectall_hashref_query($::form, $self->dbh, $query, $self->fromdate, $self->todate);
532 my $correct = 0 == @$overpaids_bank_transactions;
534 $self->tester->ok($correct, "Keine überbuchte Banktransaktion (der zugeordnete Betrag ist nicht höher, als der Überweisungsbetrag).");
535 for my $overpaid_bank_transaction (@{ $overpaids_bank_transactions }) {
536 $self->tester->diag("Überbuchte Bankbewegung!
537 Verwendungszweck: $overpaid_bank_transaction->{purpose}
538 Transaktionsdatum: $overpaid_bank_transaction->{transdate}
539 Betrag= $overpaid_bank_transaction->{amount} Zugeordneter Betrag = $overpaid_bank_transaction->{invoice_amount}
540 Bitte kontaktieren Sie Ihren kivitendo-DB-Admin, der die Überweisung wieder zurücksetzt (Table: bank_transactions Column: invoice_amount).");
553 SL::BackgroundJob::SelfTest::Transactions - base tests
557 Several tests for data integrity.
565 G. Richardson E<lt>information@richardson-bueren.deE<gt>
566 Jan Büren E<lt>information@richardson-bueren.deE<gt>
567 Sven Schoeling E<lt>s.schoeling@linet-services.deE<gt>