{strip}

{tr}Parts List{/tr}: {$gContent->getTitle()|escape}

{formfeedback hash=$formfeedback} {form id="part_order"} {assign var=lastGroup value=-1} {if $gXrefInfo->mGroups.quantity && $gXrefInfo->mGroups.quantity->mXrefs} {foreach from=$gXrefInfo->mGroups.quantity->mXrefs item=row} {math equation="floor(x/1000)" x=$row.xorder|default:0 assign=thisGroup} {math equation="x % 1000" x=$row.xorder|default:0 assign=posInGroup} {if $thisGroup != $lastGroup} {assign var=lastGroup value=$thisGroup} {/if} {/foreach} {else} {/if}
{tr}Order{/tr} {tr}Component{/tr} {tr}Description{/tr} {tr}Qty{/tr} {tr}Ref designators{/tr}
{tr}Group{/tr} {$thisGroup}
{$posInGroup} {if $row.xref > 0} {$row.linked_title|default:$row.xref|escape} {else}   {/if} {$row.linked_data|escape} {$row.xkey|escape} {if $row.item eq 'PRT' && $row.part_size} of {$row.part_size|escape}{if $row.part_size_ext} {$row.part_size_ext|escape}{/if}{/if} {$row.xkey_ext|escape}
{tr}No parts list found{/tr}
{/form}
{/strip}