{capture assign="log_list"} {foreach $log as $row} {$row['icon']}
{$row['description']}
{if !$product_id} {$row['product_name']|escape} {$row['sku_name']|escape} {else} {$row['sku_name']|escape} {/if}
{if $row['diff_count'] > 0}+{$row['diff_count']}{else}{$row['diff_count']}{/if} {shopHelper::getStockCountIcon($row['after_count'], $row['stock_id'])} {if $row['after_count'] !== null}{$row['after_count']}{else}∞{/if} {if $row['stock_name'] !== null} @{$row['stock_name']|escape} {/if} {$row['datetime']|wa_datetime:humandatetime} {/foreach} {/capture} {capture assign="lazy_loading_footer"}

{_w('%d log item','%d log items', $offset + $count)} {sprintf(_w('of %d'), $total_count)}

{/capture} {if !$lazy} {function name="get_url_params" stock_id=null order=null}{strip} {if $stock_id || ($stock_id === '0' || $stock_id === 0)}stock_id={$stock_id}&{/if}{if $order}order={$order}{/if} {/strip}{/function} {function name="get_url" stock_id=null order=null}{strip} {if $product_id} #/product/{$product_id}/edit/stockslog/{get_url_params stock_id=$stock_id order=$order} {else} #/stockslog/{get_url_params stock_id=$stock_id order=$order} {/if} {/strip}{/function} {if $log} {else}


{/if}
{* *} {if $log} {$log_list}
[`Description`] {if $product_id}[`SKU name`]{else}[`Product`]{/if} [`Balance`]
{$lazy_loading_footer} {else}

{if isset($stocks[$stock_id])} {sprintf('[`There are no stock update records on @%s yet.`]', $stocks[$stock_id]['name'])} {else} [`There are no stock update records yet.`] {/if}

{/if} {else} {$log_list}
{$lazy_loading_footer} {/if}