X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/d919a7dcc958edf6c7cd2546690347ea9c157f6e..d1054383fa90478db0424f5dc255d5836bc494d7:/bin/mozilla/ic.pl diff --git a/bin/mozilla/ic.pl b/bin/mozilla/ic.pl index f00ce0873..450d12439 100644 --- a/bin/mozilla/ic.pl +++ b/bin/mozilla/ic.pl @@ -188,7 +188,7 @@ sub generate_report { 'ordnumber' => { 'text' => $locale->text('Order Number'), }, 'partnumber' => { 'text' => $locale->text('Part Number'), }, 'partsgroup' => { 'text' => $locale->text('Partsgroup'), }, - 'priceupdate' => { 'text' => $locale->text('Updated'), }, + 'priceupdate' => { 'text' => $locale->text('Price updated'), }, 'quonumber' => { 'text' => $locale->text('Quotation'), }, 'rop' => { 'text' => $locale->text('ROP'), }, 'sellprice' => { 'text' => $locale->text('Sell Price'), }, @@ -435,7 +435,7 @@ sub generate_report { my $callback = build_std_url('action=generate_report', grep { $form->{$_} } @hidden_variables); my @sort_full = qw(partnumber description onhand soldtotal deliverydate insertdate shop); - my @sort_no_revers = qw(partsgroup priceupdate invnumber ordnumber quonumber name image drawing serialnumber); + my @sort_no_revers = qw(partsgroup invnumber ordnumber quonumber name image drawing serialnumber); foreach my $col (@sort_full) { $column_defs{$col}->{link} = join '&', $callback, "sort=$col", map { "$_=" . E($form->{$_}) } qw(revers lastsort); @@ -582,6 +582,9 @@ sub generate_report { $row->{type_and_classific}{data} = SL::Presenter::Part::type_abbreviation($ref->{part_type}). SL::Presenter::Part::classification_abbreviation($ref->{classification_id}); + # last price update + $row->{priceupdate}{data} = SL::DB::Part->new(id => $ref->{id})->load->last_price_update->valid_from->to_kivitendo; + $report->add_data($row); my $next_ref = $form->{parts}[$idx + 1];