Revision cd6bfeee
Von Moritz Bunkus vor etwa 5 Jahren hinzugefügt
bin/mozilla/io.pl | ||
---|---|---|
} else {
|
||
$obj->$method($value);
|
||
}
|
||
|
||
if ($method eq 'discount') {
|
||
$obj->discount($obj->discount / 100.0);
|
||
}
|
||
|
||
} else {
|
||
$obj->{__additional_form_attributes}{$method} = $value;
|
||
}
|
Auch abrufbar als: Unified diff
make_record(_item): discount-Feld richtig behandeln
In der Maske und daher in $::form stehen die Werte in Prozent, in den
DB-Spalten und damit den Rose-Attributen werden sie aber als Faktor
gespeichert, sprich z.B. 0.05 für 5%.