Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 3fc38171

Von Andreas Rudin vor etwa 6 Jahren hinzugefügt

  • ID 3fc381717c5e7f0f657f604880fac7b7be4e492b
  • Vorgänger 9439c4f2
  • Nachfolger a58ef474

HP Aenderungen bis Oktober 2018

Unterschiede anzeigen:

bin/mozilla/io.pl
303 303
    my $rows            = $form->numtextrows($form->{"description_$i"}, 30, 6);
304 304

  
305 305
    # quick delete single row
306
    $column_data{runningnumber}  = q|<a onclick= "$('#partnumber_| . $i . q|').val(''); $('#update_button').click();" class="row-position">| .
307
                                   q|<img height="10px" width="10px" src="image/cross.png" alt="| . $locale->text('Remove') . q|"></a> |;
306
    $column_data{runningnumber}  = q|<a onclick="$('#partnumber_| . $i . q|').val(''); $('#update_button').click();" class="row-position">| .
307
                                   q|<img src="image/cross.png" alt="| . $locale->text('Remove') . q|"></a> |;
308 308
    $column_data{runningnumber} .= $cgi->textfield(-name => "runningnumber_$i", -id => "runningnumber_$i", -size => 2,  -value => $i, -class => "row-position wi-smallest");    # HuT
309 309

  
310 310

  
......
313 313
                                       SL::Presenter::Part::classification_abbreviation($form->{"classification_id_$i"}) if $form->{"id_$i"};
314 314
    $column_data{description} = (($rows > 1) # if description is too large, use a textbox instead
315 315
                                ? $cgi->textarea( -name => "description_$i", -id => "description_$i", -default => $form->{"description_$i"}, -rows => $rows, -class => "wi-lightwide")
316
                                : $cgi->textfield(-name => "description_$i", -id => "description_$i",   -value => $form->{"description_$i"}, -class => "wi-lightwide"))
317
                                . $cgi->button(-value => $locale->text('L'), -onClick => "kivi.SalesPurchase.edit_longdescription($i)", -class => "wi-tiny");
316
                                : $cgi->textfield(-name => "description_$i", -id => "description_$i",   -value => $form->{"description_$i"}, -class => "wi-lightwide") )
317
#                               . $cgi->button(-value => $locale->text('L'), -onClick => "kivi.SalesPurchase.edit_longdescription($i)", -class => "wi-tiny neutral");
318
                                . q|<a href="javascript:kivi.SalesPurchase.edit_longdescription(| . $i . q|);" class="button-image edit" title="| . t8('Edit long description') . q|"><img src="image/pencil.png"></a>|;
318 319

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

  
......
433 434

  
434 435
    map { $form->{"${_}_$i"} = $form->format_amount(\%myconfig, $form->{"${_}_$i"}, 2) } qw(marge_absolut marge_percent);
435 436

  
436
    $column_data{marge} = sprintf qq|<span class=\"data\" %s>%s &nbsp;%s%%</data>|,
437
    $column_data{marge} = sprintf qq|<span class=\"data\" %s>%s &nbsp;%s%%</span>|,
437 438
      $marge_color, $form->{"marge_absolut_$i"}, $form->{"marge_percent_$i"};
438 439
    $column_data{listprice} = "<span class=\"data\">" . $form->format_amount(\%myconfig, $form->{"listprice_$i"}, 2) . "</span>";
439 440
    $column_data{lastcost}  = sprintf qq|<input class="wi-normal" name="lastcost_$i" value="%s" type="text">|, $form->format_amount(\%myconfig, $form->{"lastcost_$i"}, $decimalplaces);

Auch abrufbar als: Unified diff