Revision 73e9f6e3
Von Bernd Bleßmann vor etwa 1 Jahr hinzugefügt
SL/DB/PurchaseInvoice.pm | ||
---|---|---|
187 | 187 |
if ( $tax and $tax->rate != 0 ) { |
188 | 188 |
($netamount, $taxamount) = Form->calculate_tax($params{amount}, $tax->rate, $self->taxincluded, $roundplaces); |
189 | 189 |
}; |
190 |
next unless $netamount; # netamount mustn't be zero |
|
190 |
|
|
191 |
return unless $netamount; # netamount mustn't be zero |
|
191 | 192 |
|
192 | 193 |
my $sign = $self->vendor_id ? -1 : 1; |
193 | 194 |
my $acc = SL::DB::AccTransaction->new( |
Auch abrufbar als: Unified diff
"return" statt "next", um subroutine zu verlassen