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