Revision 73b9848f
Von Kivitendo Admin vor mehr als 7 Jahren hinzugefügt
bin/mozilla/io.pl | ||
---|---|---|
672 | 672 |
map { |
673 | 673 |
$form->{"${_}_$i"} = |
674 | 674 |
$form->format_amount(\%myconfig, $form->{"${_}_$i"}, $decimalplaces) |
675 |
} qw(sellprice lastcost qty) if $form->{item} ne 'assembly';
|
|
676 |
$form->{"discount_$i"} = $form->format_amount(\%myconfig, $form->{"discount_$i"} * 100.0) if $form->{item} ne 'assembly';
|
|
675 |
} qw(sellprice lastcost qty) if $form->{part_type} ne 'assembly';
|
|
676 |
$form->{"discount_$i"} = $form->format_amount(\%myconfig, $form->{"discount_$i"} * 100.0) if $form->{part_type} ne 'assembly';
|
|
677 | 677 |
|
678 | 678 |
delete $form->{nextsub}; |
679 | 679 |
|
... | ... | |
727 | 727 |
my $count = 0; |
728 | 728 |
|
729 | 729 |
# remove any makes or model rows |
730 |
if ($form->{item} eq 'assembly') {
|
|
730 |
if ($form->{part_type} eq 'assembly') {
|
|
731 | 731 |
|
732 | 732 |
# fuer assemblies auskommentiert. seiteneffekte? ;-) wird die woanders benoetigt? |
733 | 733 |
#$form->{sellprice} = 0; |
... | ... | |
760 | 760 |
$form->redo_rows(\@flds, \@a, $count, $form->{assembly_rows}); |
761 | 761 |
$form->{assembly_rows} = $count; |
762 | 762 |
|
763 |
} elsif ($form->{item} !~ m{^(?:part|service)$}) {
|
|
763 |
} elsif ($form->{part_type} !~ m{^(?:part|service)$}) {
|
|
764 | 764 |
remove_emptied_rows(1); |
765 | 765 |
|
766 | 766 |
$form->{creditremaining} -= &invoicetotal; |
Auch abrufbar als: Unified diff
$form->{item} nach $form->{part_type} umbenannt
Damit das Feld automatisch dem Datenbanknamen entspricht.