From a4fabddffa575300a46354b36a1b3a9ef1efbbfa Mon Sep 17 00:00:00 2001 From: BlubbFish Date: Wed, 15 Apr 2020 17:50:52 +0200 Subject: [PATCH] #13 basiseinheit ls --- documents/index_thw_ls.tpl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/documents/index_thw_ls.tpl b/documents/index_thw_ls.tpl index 62f6172..31965df 100644 --- a/documents/index_thw_ls.tpl +++ b/documents/index_thw_ls.tpl @@ -70,10 +70,10 @@ {$cal_weight = $position.attr1 * $position.quantity} - {if $cal_weight < 1000} - {$cal_weight} g + {if $cal_weight < 1} + {$cal_weight*1000} g {else} - {($cal_weight/1000)|string_format:"%.1f"} kg + {($cal_weight)|string_format:"%.1f"} kg {/if} {$totWeight = $totWeight + $cal_weight} @@ -92,7 +92,7 @@ {s name="DocumentIndexTotalWeight"}{/s}: - {($totWeight/1000)|string_format:"%.1f"} kg + {($totWeight)|string_format:"%.1f"} kg {s name="DocumentIndexTotalADR"}{/s}: