Revision 6f2c9845
Von Bernd Bleßmann vor fast 5 Jahren hinzugefügt
SL/DB/Invoice.pm | ||
---|---|---|
303 | 303 |
$chart_link = SL::DB::Manager::Chart->find_by(id => $chart_id)->{'link'}; |
304 | 304 |
$chart_link ||= ''; |
305 | 305 |
|
306 |
SL::DB::AccTransaction->new(trans_id => $self->id, |
|
307 |
chart_id => $chart_id, |
|
308 |
amount => $spec->{amount}, |
|
309 |
tax_id => $spec->{tax_id}, |
|
310 |
taxkey => $spec->{taxkey}, |
|
311 |
project_id => $self->globalproject_id, |
|
312 |
transdate => $self->transdate, |
|
313 |
chart_link => $chart_link)->save; |
|
306 |
if ($spec->{amount} != 0) { |
|
307 |
SL::DB::AccTransaction->new(trans_id => $self->id, |
|
308 |
chart_id => $chart_id, |
|
309 |
amount => $spec->{amount}, |
|
310 |
tax_id => $spec->{tax_id}, |
|
311 |
taxkey => $spec->{taxkey}, |
|
312 |
project_id => $self->globalproject_id, |
|
313 |
transdate => $self->transdate, |
|
314 |
chart_link => $chart_link)->save; |
|
315 |
} |
|
314 | 316 |
} |
315 | 317 |
} |
316 | 318 |
|
Auch abrufbar als: Unified diff
S:D:Invoice: _post_add_acctrans: Keine Tranaktionen mit Summe == 0 speichern.
Das liefert einen Fehler beim DATEV-Export. Zudem filtert die Buchungsroutine
der Rechnungsmaske diese Buchungen aus raus.
Bezieht sich auch auf #414
Refs #414