From 42c64631976e6a243552c2f728c2d0ff250f4406 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Mon, 3 May 2021 13:23:47 +0200 Subject: [PATCH] Zeiterfassung: Konvertierung: base_qty in Einheit des Artikels umwandeln --- SL/DB/DeliveryOrder.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SL/DB/DeliveryOrder.pm b/SL/DB/DeliveryOrder.pm index 6068b13aa..30db8e627 100644 --- a/SL/DB/DeliveryOrder.pm +++ b/SL/DB/DeliveryOrder.pm @@ -250,9 +250,9 @@ sub new_from_time_recordings { parts_id => $part_by_part_id{$key}->id, description => $part_by_part_id{$key}->description, qty => $qty, - base_qty => $qty, + base_qty => $h_unit->convert_to($qty, $part_by_part_id{$key}->unit_obj), unit_obj => $h_unit, - sellprice => $part_by_part_id{$key}->sellprice, + sellprice => $part_by_part_id{$key}->sellprice, # Todo: use price rules to get sellprice longdescription => $longdescription, ); -- 2.20.1