Revision 361d8846
Von Sven Schöling vor fast 12 Jahren hinzugefügt
SL/DB/Invoice.pm | ||
---|---|---|
188 | 188 |
sub _post_add_acctrans { |
189 | 189 |
my ($self, $entries) = @_; |
190 | 190 |
|
191 |
my $default_tax_id = SL::DB::Manager::Tax->find_by(taxkey => 0)->id; |
|
192 |
|
|
193 | 191 |
while (my ($chart_id, $spec) = each %{ $entries }) { |
194 |
$spec = { taxkey => 0, tax_id => $default_tax_id, amount => $spec } unless ref $spec;
|
|
192 |
$spec = { taxkey => 0, amount => $spec } unless ref $spec; |
|
195 | 193 |
SL::DB::AccTransaction->new(trans_id => $self->id, |
196 | 194 |
chart_id => $chart_id, |
197 | 195 |
amount => $spec->{amount}, |
198 |
tax_id => $spec->{tax_id}, |
|
199 | 196 |
taxkey => $spec->{taxkey}, |
200 | 197 |
project_id => $self->globalproject_id, |
201 | 198 |
transdate => $self->transdate)->save; |
Auch abrufbar als: Unified diff
Revert "tax_id in acc_trans"
This reverts commit 357d134d265637fb37ed2cd47da2ce3ef44d015a.