From: Bernd Bleßmann Date: Mon, 3 May 2021 11:23:47 +0000 (+0200) Subject: Zeiterfassung: Konvertierung: base_qty in Einheit des Artikels umwandeln X-Git-Tag: kivitendo-mebil_0.1-0~9^2~278 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=42c64631976e6a243552c2f728c2d0ff250f4406;p=kivitendo-erp.git Zeiterfassung: Konvertierung: base_qty in Einheit des Artikels umwandeln --- 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, );