{#if itemSearchIt.hasResults()}

{#icons/storageTypeUniqueMulti /} Unique Multi Items

{#printouts/storageBlockInventorySheet/itemTables/itemTable auth=auth db=db options=options itemSearchIt=itemSearchIt storageBlock=storageBlock} {#tableHeaderCells} {#printouts/storageBlockInventorySheet/itemTables/itemStdHeaderPre options=options /} # Stored {#printouts/storageBlockInventorySheet/itemTables/stored/storedHeaders storageType='UNIQUE_MULTI' options=options /} {#printouts/storageBlockInventorySheet/itemTables/itemStdHeaderPost options=options /} {/tableHeaderCells} {#tableBodyRows} {#for curItemResult in itemSearchIt} {#let startIndex=curItemResult.get("pagingCalculations").get("pageResultIndexStart").asInt()} {#for curItem in curItemResult.get("results")} {#let blockStats = curItem.get("stats").get("storageBlockStats").get(storageBlock.get("id").asText())} {#let storedIt=cdi:PrintoutDataUtilService.searchStoredInBlockResultsIterator(auth, db, curItem.get("id").asText(), storageBlock.get("id").asText())} {#let numStored=storedIt.getCurResults().get("numResultsForEntireQuery").asInt()} {#for curStoredResult in storedIt} {#for curStored in curStoredResult.get("results")} {#if curStored_isFirst} {#printouts/storageBlockInventorySheet/itemTables/itemStdRowPre options=options item=curItem resultNo=(curItem_index + startIndex) rowspan=numStored /} {blockStats.get("total").get("value").asInt()}{blockStats.get("total").get("unit").get("symbol").asText()} {/if} {#printouts/storageBlockInventorySheet/itemTables/stored/storedData storageType='UNIQUE_MULTI' stored=curStored options=options /} {#printouts/storageBlockInventorySheet/itemTables/itemStdRowPost options=options item=curItem /} {/for} {/for} {/let} {/let} {/for} {/for} {/tableBodyRows} {/printouts/storageBlockInventorySheet/itemTables/itemTable} {/if}