Revision 8aec62ea
Von Bernd Bleßmann vor etwa 1 Jahr hinzugefügt
SL/Controller/Part.pm | ||
---|---|---|
1018 | 1018 |
|
1019 | 1019 |
sub check_lastcost_modified { |
1020 | 1020 |
my ($self) = @_; |
1021 |
return abs($self->part->lastcost - $self->part->last_price_update->lastcost) < 0.009 ? undef : 1; |
|
1021 |
|
|
1022 |
return (abs($self->part->lastcost - $self->part->last_price_update->lastcost) >= 0.009) |
|
1023 |
|| (abs(($self->part->price_factor ? $self->part->price_factor->factor : 1) - $self->part->last_price_update->price_factor) >= 0.009); |
|
1022 | 1024 |
} |
1023 | 1025 |
|
1024 | 1026 |
sub parse_form { |
Auch abrufbar als: Unified diff
S:C:Part: Prüfung, ob sich der EK geändert hat, berücksichtig Preisfaktor