Revision 137c9df3
Von Moritz Bunkus vor mehr als 16 Jahren hinzugefügt
bin/mozilla/do.pl | ||
---|---|---|
756 | 756 |
return ''; |
757 | 757 |
} |
758 | 758 |
|
759 |
AM->retrieve_all_units(); |
|
760 |
|
|
759 | 761 |
my $in_out = $form->{type} =~ /^sales/ ? 'out' : 'in'; |
760 | 762 |
my $sinfo = DO->unpack_stock_information('packed' => $form->{"stock_${in_out}_${i}"}); |
761 | 763 |
|
... | ... | |
763 | 765 |
|
764 | 766 |
my $content = $form->format_amount_units('amount' => $sum * 1, |
765 | 767 |
'part_unit' => $form->{"partunit_$i"}, |
766 |
'amount_unit' => $units->{$form->{"partunit_$i"}}->{base_unit}, |
|
768 |
'amount_unit' => $all_units->{$form->{"partunit_$i"}}->{base_unit},
|
|
767 | 769 |
'conv_units' => 'convertible_not_smaller', |
768 | 770 |
'max_places' => 2); |
769 | 771 |
$content .= qq| <input type="button" onclick="open_stock_in_out_window('${in_out}', $i);" value="?">|; |
bin/mozilla/io.pl | ||
---|---|---|
122 | 122 |
$stock_in_out_title = $locale->text('Transfer To Stock'); |
123 | 123 |
$stock_in_out = 'in'; |
124 | 124 |
} |
125 |
|
|
126 |
retrieve_partunits(); |
|
125 | 127 |
} |
126 | 128 |
|
127 | 129 |
# column_index |
... | ... | |
333 | 335 |
push @hidden_vars, "stock_${stock_in_out}_sum_qty", "stock_${stock_in_out}"; |
334 | 336 |
} |
335 | 337 |
|
336 |
push @hidden_vars, qw(partunit) if ($is_purchase); |
|
337 |
|
|
338 | 338 |
my @HIDDENS = map { value => $_}, ( |
339 | 339 |
$cgi->hidden("-name" => "unit_old_$i", "-value" => $form->{"selected_unit_$i"}), |
340 | 340 |
$cgi->hidden("-name" => "price_new_$i", "-value" => $form->format_amount(\%myconfig, $form->{"price_new_$i"})), |
Auch abrufbar als: Unified diff
Fehler in der Berechnung des angezeigten Lagerausgangs/Lagereingangs in Lieferscheinen.