Revision 317af023
Von Sven Schöling vor etwa 7 Jahren hinzugefügt
- ID 317af023997d7e87c79775e3ac7d7154ceabdca7
- Vorgänger aaa71ae8
bin/mozilla/io.pl | ||
---|---|---|
377 | 377 |
my $edit_discounts = $main::auth->assert('edit_prices', 1) && !$::form->{"active_discount_source_$i"}; |
378 | 378 |
$column_data{sellprice} = (!$edit_prices) |
379 | 379 |
? $cgi->hidden( -name => "sellprice_$i", -id => "sellprice_$i", -value => $sellprice_value) . $sellprice_value |
380 |
: $cgi->textfield(-name => "sellprice_$i", -id => "sellprice_$i", -size => 10, -class => "numeric", -value => $sellprice_value); |
|
380 |
: $cgi->textfield(-name => "sellprice_$i", -id => "sellprice_$i", -size => 10, -"data-validate" => "number(-2)", -class => "numeric", -value => $sellprice_value);
|
|
381 | 381 |
$column_data{discount} = (!$edit_discounts) |
382 | 382 |
? $cgi->hidden( -name => "discount_$i", -id => "discount_$i", -value => $discount_value) . $discount_value . ' %' |
383 | 383 |
: $cgi->textfield(-name => "discount_$i", -id => "discount_$i", -size => 3, -"data-validate" => "number", -class => "numeric", -value => $discount_value); |
Auch abrufbar als: Unified diff
Validator: Preise auf 2 Nachkommastellen normalisieren