X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FWH.pm;h=f05ba4fd5345e14fe94b7b9f164b9a8a673a5811;hb=cbbe00ccddaac72d03a759996e7d55315aff9a5e;hp=48d56e885edbd931fb2fc3a78d0db5fcd221b7ae;hpb=e9d624e651c136d55b4f35e3f5646ac3f5318e40;p=kivitendo-erp.git diff --git a/SL/WH.pm b/SL/WH.pm index 48d56e885..f05ba4fd5 100644 --- a/SL/WH.pm +++ b/SL/WH.pm @@ -807,8 +807,9 @@ sub get_warehouse_report { "chargeid" => "c.id", "warehousedescription" => "w.description", "partunit" => "p.unit", - "stock_value" => "p.lastcost / COALESCE(pfac.factor, 1)", + "stock_value" => ($form->{stock_value_basis} // '') eq 'list_price' ? "p.listprice / COALESCE(pfac.factor, 1)" : "p.lastcost / COALESCE(pfac.factor, 1)", "purchase_price" => "p.lastcost", + "list_price" => "p.listprice", ); $form->{l_classification_id} = 'Y'; $form->{l_part_type} = 'Y'; @@ -1334,7 +1335,7 @@ as the specific reason. The method is transaction safe, in case of errors not a single entry will be made in inventory. -Two prerequisites can be changed with this global parameters +Two prerequisites can be changed with these global parameters =over 2