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}: