From 8e413f64229523fe4e632e7bf9f54aed49321c53 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Fri, 18 Oct 2019 14:45:08 +0200 Subject: [PATCH] Auftrags-Controller: Positions-Update: auch Artikelnummern updaten --- SL/Controller/Order.pm | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/SL/Controller/Order.pm b/SL/Controller/Order.pm index c19c87f2c..1c4bce82a 100644 --- a/SL/Controller/Order.pm +++ b/SL/Controller/Order.pm @@ -1019,8 +1019,14 @@ sub action_update_row_from_master_data { $self->js ->run('kivi.Order.update_sellprice', $item_id, $item->sellprice_as_number) - ->val('.row_entry:has(#item_' . $item_id . ') [name = "order.orderitems[].description"]', $item->description) - ->val('.row_entry:has(#item_' . $item_id . ') [name = "order.orderitems[].longdescription"]', $item->longdescription); + ->html('.row_entry:has(#item_' . $item_id . ') [name = "partnumber"] a', $item->part->partnumber) + ->val ('.row_entry:has(#item_' . $item_id . ') [name = "order.orderitems[].description"]', $item->description) + ->val ('.row_entry:has(#item_' . $item_id . ') [name = "order.orderitems[].longdescription"]', $item->longdescription); + + if ($self->search_cvpartnumber) { + $self->get_item_cvpartnumber($item); + $self->js->html('.row_entry:has(#item_' . $item_id . ') [name = "cvpartnumber"]', $item->{cvpartnumber}); + } } $self->recalc(); -- 2.20.1