Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 3f264030

Von Sven Schöling vor etwa 7 Jahren hinzugefügt

  • ID 3f264030b123e8aef1ea35b088beedc7248ee47f
  • Vorgänger 58eece5d
  • Nachfolger bcda139b

kivi.Validator: display_row: qty und sellprice als Nummerninputs geflaggt

Unterschiede anzeigen:

bin/mozilla/io.pl
317 317

  
318 318
    my $qty_dec = ($form->{"qty_$i"} =~ /\.(\d+)/) ? length $1 : 2;
319 319

  
320
    $column_data{qty}  = $cgi->textfield(-name => "qty_$i", -size => 5, -value => $form->format_amount(\%myconfig, $form->{"qty_$i"}, $qty_dec));
320
    $column_data{qty}  = $cgi->textfield(-name => "qty_$i", -size => 5, -"data-validate" => "number", -class => "numeric", -value => $form->format_amount(\%myconfig, $form->{"qty_$i"}, $qty_dec));
321 321
    $column_data{qty} .= $cgi->button(-onclick => "calculate_qty_selection_window('qty_$i','alu_$i', 'formel_$i', $i)", -value => $locale->text('*/'))
322 322
                       . $cgi->hidden(-name => "formel_$i", -value => $form->{"formel_$i"}) . $cgi->hidden("-name" => "alu_$i", "-value" => $form->{"alu_$i"})
323 323
      if $form->{"formel_$i"};
......
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, -onBlur => "check_right_number_format(this)", -value => $sellprice_value);
380
                                : $cgi->textfield(-name => "sellprice_$i", -id => "sellprice_$i", -size => 10, -"data-validate" => "number", -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
                                  : $cgi->textfield(-name => "discount_$i", -id => "discount_$i", -size => 3, -value => $discount_value);
383
                                  : $cgi->textfield(-name => "discount_$i", -id => "discount_$i", -size => 3, -"data-validate" => "number", -class => "numeric", -value => $discount_value);
384 384

  
385 385
    if ($is_delivery_order) {
386 386
      $column_data{stock_in_out} =  calculate_stock_in_out($i);

Auch abrufbar als: Unified diff