{extends file='documents/index.tpl'} {block name="document_index_head_bottom"}
{s name="DocumentIndexHeadPosition"}{/s} | {s name="DocumentIndexHeadArticleID"}{/s} | {s name="DocumentIndexHeadName"}{/s} | {s name="DocumentIndexHeadQuantity"}{/s} | {s name="DocumentIndexHeadWeigt"}{/s} | {s name="DocumentIndexHeadADR"}{/s} |
{$number+1} | {$position.articleordernumber|truncate:14:""} |
{s name="DocumentIndexPositionNameDefault"}{$position.name|nl2br|wordwrap:65:" \n"}{/s} {if $position.attr4 != ""} {s name="DocumentIndexEachSupplier"}{/s} {$position.attr4} {/if} {if $position.attr5 != ""} {$position.attr5} {/if} {if $position.attr3 != ""} {s name="DocumentIndexEachHint"}{/s} {$position.attr3} {/if} {if $position.attr6 != ""} {s name="DocumentIndexEachUN"}{/s} {$position.attr6} {/if} |
{$position.quantity} | {$cal_weight = $position.attr1 * $position.quantity} {if $cal_weight < 1000} {$cal_weight} g {else} {($cal_weight/1000)|string_format:"%.1f"} kg {/if} {$totWeight = $totWeight + $cal_weight} | {$position.attr2 * $position.quantity} P. {$totADR = $totADR + ($position.attr2 * $position.quantity)} |
{s name="DocumentIndexTotalWeight"}{/s}: | {($totWeight/1000)|string_format:"%.1f"} kg |
{s name="DocumentIndexTotalADR"}{/s}: | {$totADR} Punkte |