{#let showAmount=cdi:ItemStoredResultsQuteFunctions.showAmount(inventoryItem.or(null))} {#paginationButtons searchFormId=searchFormId searchResults=searchResults}{/paginationButtons} Image Label Id? {#if showType??}Type{/if} {#if showItem??}Item{/if} {#if showStorage??}{#icons/storageBlock}{/icons/storageBlock} Stored In{/if} {#if showAmount}Amount{/if} {#icons/flags /} Flags Actions {#if searchResults.get("empty").asBoolean()}

Nothing Stored

{#if actionType == 'full'}
{! TODO:: maybe an add button !} {!!}
{/if} {#else} {#for result in searchResults.get("results")} {#let id=result.get("id").asText() labelText=result.get("labelText").asText() itemId=result.get("item").asText()} {#if !result.get("imageIds").isEmpty()} {/if} {labelText} ...{id.substring(id.length() - 6)}{#copyTextButton fromTitle=true /} {#if showType}{cdi:EnumFormattingService.formatEnum(result.get("type").asText())}{/if} {#if showItem}{result.get("item-name").asText()}{/if}{!TODO:: link this !} {#if showStorage}{result.get("state").get("storageBlock-labelText").asText()}{/if}{!TODO:: link !} {#if showAmount} {#if cdi:ItemStoredResultsQuteFunctions.storedIsAmount(result)} {#amountDisplay amount=result.get("amount")}{/amountDisplay} {#else} n/a {/if} {/if} {#if result.get("notificationStatus").get("lowStock").asBoolean()} {#icons/lowStock /} {/if} {#if result.get("notificationStatus").get("expiredWarning").asBoolean()} {#icons/expiring /} {/if} {#if result.get("notificationStatus").get("expired").asBoolean()} {#icons/expired /} {/if} {#if actionType == 'full'} {!TODO:: configure to choose row or modal. Separate button/group?!} {!!} {#itemStored/transaction/buttons/transactionDropdown dropdownClasses="btn-sm me-1" buttonText=false storedId=id itemId=itemId checkinButton=false /} {#else if actionType == 'select'} {#else if actionType == 'view'} {#icons/view /} {/if} {/let} {/for} {/if} {#paginationButtons searchFormId=searchFormId searchResults=searchResults}{/paginationButtons} {/let}