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