Revision 373cec3f
Von Moritz Bunkus vor fast 14 Jahren hinzugefügt
SL/DB/Invoice.pm | ||
---|---|---|
13 | 13 |
use SL::DB::Helper::LinkedRecords; |
14 | 14 |
use SL::DB::Helper::PriceTaxCalculator; |
15 | 15 |
use SL::DB::Helper::TransNumberGenerator; |
16 |
use SL::DB::AccTransaction; |
|
16 | 17 |
use SL::DB::Employee; |
17 | 18 |
|
18 | 19 |
__PACKAGE__->meta->add_relationship( |
... | ... | |
155 | 156 |
|
156 | 157 |
while (my ($chart_id, $spec) = each %{ $entries }) { |
157 | 158 |
$spec = { taxkey => 0, amount => $spec } unless ref $spec; |
158 |
SL::DB::AccTrans->new(trans_id => $self->id, |
|
159 |
chart_id => $chart_id, |
|
160 |
amount => $spec->{amount}, |
|
161 |
taxkey => $spec->{taxkey}, |
|
162 |
project_id => $self->globalproject_id, |
|
163 |
transdate => $self->transdate)->save; |
|
159 |
SL::DB::AccTransaction->new(trans_id => $self->id,
|
|
160 |
chart_id => $chart_id,
|
|
161 |
amount => $spec->{amount},
|
|
162 |
taxkey => $spec->{taxkey},
|
|
163 |
project_id => $self->globalproject_id,
|
|
164 |
transdate => $self->transdate)->save;
|
|
164 | 165 |
} |
165 | 166 |
} |
166 | 167 |
|
Auch abrufbar als: Unified diff
Eines der zwei Models für acc_trans gelöscht