Revision 73e9f6e3
Von Bernd Bleßmann vor etwa 1 Jahr hinzugefügt
SL/DB/Invoice.pm | ||
---|---|---|
380 | 380 |
if ( $tax and $tax->rate != 0 ) { |
381 | 381 |
($netamount, $taxamount) = Form->calculate_tax($params{amount}, $tax->rate, $self->taxincluded, $roundplaces); |
382 | 382 |
}; |
383 |
next unless $netamount; # netamount mustn't be zero |
|
383 |
|
|
384 |
return unless $netamount; # netamount mustn't be zero |
|
385 |
|
|
384 | 386 |
my $sign = $self->customer_id ? 1 : -1; |
385 | 387 |
my $acc = SL::DB::AccTransaction->new( |
386 | 388 |
amount => $netamount * $sign, |
Auch abrufbar als: Unified diff
"return" statt "next", um subroutine zu verlassen