<{assign var="inv1" value="false"}> <{foreach from=$objs item=obj name="pkg_for1"}>
<{$obj.bn}> <{$obj.name}> <{*$object_alias[$obj_type]|default:'礼包'*}><{t}>礼包<{/t}> <{$obj.price}> <{if $order_delivery_list}> <{$obj.quantity}> <{$obj.amount}> <{$obj.quantity - $obj.left_nums}> <{$obj.left_nums}> <{else}> <{$obj.amount}> <{$obj.quantity}> <{/if}> <{if $obj.left_nums === 0}>-<{else}><{/if}> <{foreach from=$branch_list item=branch}> <{/foreach}>
<{foreach from=$obj.order_items item=item}> <{if $item.delete=='false'}>
<{$item.bn}> <{$item.name}> <{$item.addon}> - <{if $order_delivery_list}> <{$item.quantity}> - <{if ($item.quantity - $item.left_nums)>0}><{$item.quantity - $item.left_nums}><{else}>-<{/if}> <{if $item.left_nums == 0}>-<{else}><{$item.left_nums}><{/if}> <{else}> - <{$item.quantity}> <{/if}> <{if $item.left_nums == 0}>-<{else}><{/if}> <{foreach from=$branch_list item=branch name=bl}> <{if isset($item.branch_store[$branch.branch_id])}> <{assign var="inv1" value="true"}> class="branch <{if $item.branch_store[$branch.branch_id] >= $branch.stock_threshold}>ColColorGreen<{elseif $item.branch_store[$branch.branch_id] > 0 && $item.branch_store[$branch.branch_id] < $branch.stock_threshold}>ColColorRed<{else}>ColColorGray<{/if}><{/if}>" data-storeid="<{$branch.branch_id}>"><{$item.branch_store[$branch.branch_id]}> <{else}> class="ColColorGray"<{/if}>>-<{assign var="inv" value="true"}> <{/if}> <{/foreach}> <{if empty($branch_list)}>-<{/if}> <{$item.return_num}>
<{/if}> <{/foreach}> <{/foreach}>