Revision 50e62c57
Von Moritz Bunkus vor fast 14 Jahren hinzugefügt
bin/mozilla/do.pl | ||
---|---|---|
939 | 939 |
'amount_unit' => $all_units->{$form->{"partunit_$i"}}->{base_unit}, |
940 | 940 |
'conv_units' => 'convertible_not_smaller', |
941 | 941 |
'max_places' => 2); |
942 |
$content .= qq| <input type="button" onclick="open_stock_in_out_window('${in_out}', $i);" value="?">|;
|
|
942 |
$content = qq|<span id="stock_in_out_qty_display_${i}">${content}</span> <input type="button" onclick="open_stock_in_out_window('${in_out}', $i);" value="?">|;
|
|
943 | 943 |
|
944 | 944 |
$main::lxdebug->leave_sub(); |
945 | 945 |
|
... | ... | |
1061 | 1061 |
$main::lxdebug->leave_sub(); |
1062 | 1062 |
} |
1063 | 1063 |
|
1064 |
sub _stock_in_out_set_qty_display { |
|
1065 |
my $stock_info = shift; |
|
1066 |
my $form = $::form; |
|
1067 |
my $all_units = AM->retrieve_all_units(); |
|
1068 |
my $sum = AM->sum_with_unit(map { $_->{qty}, $_->{unit} } @{ $stock_info }); |
|
1069 |
$form->{qty_display} = $form->format_amount_units(amount => $sum * 1, |
|
1070 |
part_unit => $form->{partunit}, |
|
1071 |
amount_unit => $all_units->{ $form->{partunit} }->{base_unit}, |
|
1072 |
conv_units => 'convertible_not_smaller', |
|
1073 |
max_places => 2); |
|
1074 |
} |
|
1075 |
|
|
1064 | 1076 |
sub set_stock_in { |
1065 | 1077 |
$main::lxdebug->enter_sub(); |
1066 | 1078 |
|
... | ... | |
1079 | 1091 |
|
1080 | 1092 |
$form->{stock} = YAML::Dump($stock_info); |
1081 | 1093 |
|
1094 |
_stock_in_out_set_qty_display($stock_info); |
|
1095 |
|
|
1082 | 1096 |
$form->header(); |
1083 | 1097 |
print $form->parse_html_template('do/set_stock_in_out'); |
1084 | 1098 |
|
... | ... | |
1172 | 1186 |
stock_in_out_form(); |
1173 | 1187 |
|
1174 | 1188 |
} else { |
1189 |
_stock_in_out_set_qty_display($stock_info); |
|
1190 |
|
|
1175 | 1191 |
$form->header(); |
1176 | 1192 |
print $form->parse_html_template('do/set_stock_in_out'); |
1177 | 1193 |
} |
Auch abrufbar als: Unified diff
Lieferschein ein- und auslagern: sofort Mengenanzeige in entsprechender Zeile aktualisieren, wenn Popup mit Lagermengen geschlossen wird
Fix für Bug 1400.