Revision 11185756
Von Jan Büren vor fast 3 Jahren hinzugefügt
SL/DB/Invoice.pm | ||
---|---|---|
361 | 361 |
($netamount, $taxamount) = Form->calculate_tax($params{amount}, $tax->rate, $self->taxincluded, $roundplaces); |
362 | 362 |
}; |
363 | 363 |
next unless $netamount; # netamount mustn't be zero |
364 |
|
|
365 | 364 |
my $sign = $self->customer_id ? 1 : -1; |
366 | 365 |
my $acc = SL::DB::AccTransaction->new( |
367 | 366 |
amount => $netamount * $sign, |
... | ... | |
427 | 426 |
$self->add_transactions( $acc ); |
428 | 427 |
push( @$acc_trans, $acc ); |
429 | 428 |
return $acc_trans; |
430 |
};
|
|
429 |
} |
|
431 | 430 |
|
432 | 431 |
sub validate_acc_trans { |
433 | 432 |
my ($self, %params) = @_; |
Auch abrufbar als: Unified diff
Kosmetik ;