Revision 8d72d404
Von Moritz Bunkus vor fast 11 Jahren hinzugefügt
bin/mozilla/io.pl | ||
---|---|---|
274 | 274 |
my $linetotal = $form->round_amount($form->{"qty_$i"} * $form->{"sellprice_$i"} * (100 - $form->{"discount_$i"}) / 100 / $price_factor, 2); |
275 | 275 |
my $rows = $form->numtextrows($form->{"description_$i"}, 30, 6); |
276 | 276 |
|
277 |
$column_data{runningnumber} = $cgi->textfield(-name => "runningnumber_$i", -size => 5, -value => $i); # HuT |
|
278 |
$column_data{partnumber} = $cgi->textfield(-name => "partnumber_$i", -size => 12, -value => $form->{"partnumber_$i"}); |
|
277 |
$column_data{runningnumber} = $cgi->textfield(-name => "runningnumber_$i", -id => "runningnumber_$i", -size => 5, -value => $i); # HuT
|
|
278 |
$column_data{partnumber} = $cgi->textfield(-name => "partnumber_$i", -id => "partnumber_$i", -size => 12, -value => $form->{"partnumber_$i"});
|
|
279 | 279 |
$column_data{description} = (($rows > 1) # if description is too large, use a textbox instead |
280 |
? $cgi->textarea( -name => "description_$i", -default => $form->{"description_$i"}, -rows => $rows, -columns => 30) |
|
281 |
: $cgi->textfield(-name => "description_$i", -size => 30, -value => $form->{"description_$i"}))
|
|
282 |
. $cgi->button(-value => $locale->text('L'), -onClick => "set_longdescription_window('longdescription_$i')");
|
|
280 |
? $cgi->textarea( -name => "description_$i", -id => "description_$i", -default => $form->{"description_$i"}, -rows => $rows, -columns => 30)
|
|
281 |
: $cgi->textfield(-name => "description_$i", -id => "description_$i", -value => $form->{"description_$i"}, -size => 30))
|
|
282 |
. $cgi->button(-value => $locale->text('L'), -onClick => "kivi.SalesPurchase.edit_longdescription($i)");
|
|
283 | 283 |
|
284 | 284 |
my $qty_dec = ($form->{"qty_$i"} =~ /\.(\d+)/) ? length $1 : 2; |
285 | 285 |
|
... | ... | |
434 | 434 |
my @HIDDENS = map { value => $_}, ( |
435 | 435 |
$cgi->hidden("-name" => "unit_old_$i", "-value" => $form->{"selected_unit_$i"}), |
436 | 436 |
$cgi->hidden("-name" => "price_new_$i", "-value" => $form->format_amount(\%myconfig, $form->{"price_new_$i"})), |
437 |
map { ($cgi->hidden("-name" => $_, "-value" => $form->{$_})); } map { $_."_$i" } |
|
437 |
map { ($cgi->hidden("-name" => $_, "-id" => $_, "-value" => $form->{$_})); } map { $_."_$i" }
|
|
438 | 438 |
(qw(orderitems_id bo pricegroup_old price_old id inventory_accno bin partsgroup partnotes |
439 | 439 |
income_accno expense_accno listprice assembly taxaccounts ordnumber transdate cusordnumber |
440 | 440 |
longdescription basefactor marge_absolut marge_percent marge_price_factor weight), @hidden_vars) |
Auch abrufbar als: Unified diff
io.pl display_row: einige Form-Elemente mit IDs versehen
Sinn und Zweck: einfacherer Zugriff via JavaScript