From e831bee6035c4f9e73efe7a30e1ebb56dd4a054c Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Fri, 23 Nov 2012 12:13:38 +0100 Subject: [PATCH] =?utf8?q?Kosmetik:=20Einr=C3=BCckung=20gefixt?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Controller/DeliveryPlan.pm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/SL/Controller/DeliveryPlan.pm b/SL/Controller/DeliveryPlan.pm index 980234ef5..db166e376 100644 --- a/SL/Controller/DeliveryPlan.pm +++ b/SL/Controller/DeliveryPlan.pm @@ -153,21 +153,21 @@ sub prepare_report { $self->{report} = $report; my @columns = qw(reqdate customer ordnumber partnumber description qty shipped_qty not_shipped_qty); - my @sortable = qw(reqdate customer ordnumber partnumber description ); + my @sortable = qw(reqdate customer ordnumber partnumber description); my %column_defs = ( reqdate => { sub => sub { $_[0]->reqdate_as_date || $_[0]->order->reqdate_as_date } }, description => { sub => sub { $_[0]->description }, - obj_link => sub { $self->link_to($_[0]->part) } }, + obj_link => sub { $self->link_to($_[0]->part) } }, partnumber => { sub => sub { $_[0]->part->partnumber }, - obj_link => sub { $self->link_to($_[0]->part) } }, + obj_link => sub { $self->link_to($_[0]->part) } }, qty => { sub => sub { $_[0]->qty_as_number . ' ' . $_[0]->unit } }, shipped_qty => { sub => sub { $::form->format_amount(\%::myconfig, $_[0]->shipped_qty, 2) . ' ' . $_[0]->unit } }, not_shipped_qty => { sub => sub { $::form->format_amount(\%::myconfig, $_[0]->qty - $_[0]->shipped_qty, 2) . ' ' . $_[0]->unit } }, ordnumber => { sub => sub { $_[0]->order->ordnumber }, - obj_link => sub { $self->link_to($_[0]->order) } }, + obj_link => sub { $self->link_to($_[0]->order) } }, customer => { sub => sub { $_[0]->order->customer->name }, - obj_link => sub { $self->link_to($_[0]->order->customer) } }, + obj_link => sub { $self->link_to($_[0]->order->customer) } }, ); map { $column_defs{$_}->{text} = $::locale->text( $self->get_sort_spec->{$_}->{title} ) } keys %column_defs; -- 2.20.1