X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fic.pl;h=f2ca8a9294402060220869190525e0a0fd059285;hb=2994c1e9337b80e4e9a60cd4393fcf49595da5df;hp=2922cfacbf5285ccbbd104782898a53dda725bbc;hpb=8c7e44938a661e035f62840e1e177353240ace5d;p=kivitendo-erp.git
diff --git a/bin/mozilla/ic.pl b/bin/mozilla/ic.pl
index 2922cfacb..f2ca8a929 100644
--- a/bin/mozilla/ic.pl
+++ b/bin/mozilla/ic.pl
@@ -270,7 +270,7 @@ sub list {
for ($j = 1; $j <= $i; $j++) {
print qq|
-
|;
+
|;
if ($j == 1) {
print qq|
| |;
@@ -752,8 +752,8 @@ sub addtop100 {
} #rof
} #fi
# build data for columns
+ my $i = 0;
foreach my $ref (@{ $form->{parts} }) {
- my $i = 0;
if ($form->{l_subtotal} eq 'Y' && !$ref->{assemblyitem}) {
if ($sameitem ne $ref->{ $form->{sort} }) {
@@ -1473,7 +1473,7 @@ sub form_header {
$form->{notes_rows} = $rows;
IC->retrieve_buchungsgruppen(\%myconfig, $form);
- @{ $form->{BUCHUNGSGRUPPEN} } = grep { $_->{id} eq $form->{buchungsgruppen_id} || ($form->{id} && $form->{orphaned}) || $form->{id} } @{ $form->{BUCHUNGSGRUPPEN} };
+ @{ $form->{BUCHUNGSGRUPPEN} } = grep { $_->{id} eq $form->{buchungsgruppen_id} || ($form->{id} && $form->{orphaned}) || !$form->{id} } @{ $form->{BUCHUNGSGRUPPEN} };
# use JavaScript Calendar or not (yes!)
$form->{jsscript} = 1;
@@ -1954,6 +1954,8 @@ sub save {
map { $form->{"${_}_$i"} = $newform{$_} } qw(partnumber description bin unit listprice inventory_accno income_accno expense_accno sellprice lastcost price_factor_id);
+ $form->{"longdescription_$i"} = $newform{notes};
+
$form->{"sellprice_$i"} = $newform{lastcost} if ($form->{vendor_id});
if ($form->{exchangerate} != 0) {
@@ -2067,30 +2069,13 @@ sub price_row {
my ($numrows) = @_;
- print qq|
-
-
-
- |
-
-|;
+ print $form->parse_html_template('ic/price_row', { PRICES => \@PRICES });
$lxdebug->leave_sub();
}