+ # add value of goods in report
+ if ($main::auth->assert('sales_order_edit') && $::instance_conf->get_delivery_plan_show_value_of_goods) {
+ $column_defs{value_of_goods} = { sub => sub { $::form->format_amount(\%::myconfig, $_[0]->value_of_goods, 2) . ' ' . $_[0]->taxincluded } };
+ }
+
+ # hotfix for today
+ # if visible is not working
+ if ($vc eq 'customer') {
+ $column_defs{customer} = { sub => sub { $_[0]->order->customer->name },
+ obj_link => sub { $self->link_to($_[0]->order->customer) } };
+ }
+ if ($vc eq 'vendor') {
+ $column_defs{vendor} = { sub => sub { $_[0]->order->vendor->name },
+ obj_link => sub { $self->link_to($_[0]->order->vendor) } },
+ }
+