{if $resproductCombo || $resproductComboMini}
<div class="grid_table01" id="combohead">
<table width="100%" cellspacing="0" cellpadding="0" border="0" >
                <tr align="left" valign="top">
                  <th width="5%" align="left" valign="middle">{$language.lblSlNo} </th>
                  <th align="left" valign="middle">{$resproductCombo[0]['custnameco']}</th>
                   <th align="left" valign="middle">{$resproductCombo[0]['custnameup']}</th>
                  <th width="8%" align="left" valign="middle">{$language.lblVSBID}</th>
                  <th width="8%" align="left" valign="middle">{$language.lblStatus}</th>
                  <th width="10%" align="center" valign="middle">{$language.lblQuantity}</th>
                  
                </tr>
                {assign var="Count" value=1}
                {assign var="prevValue" value=""}
                {foreach from=$resproductCombo item="productCombo"}	
                <tr align="left" valign="top" id="row_{$productCombo.customOptionCombID}">
                  <td align="left" valign="top">{$Count}</td>
                  <td align="left" valign="top">{$productCombo['custnamevalue1']} (Code:{$productCombo['extVariantCode']})</td>
                  <td align="left" valign="top">{$productCombo['custnamevalue2']} (Code:{$productCombo['intVariantCode']})</td>
                  <td align="left" valign="top">{$productCombo['vsbID']}</td>
                 <td align="left" valign="top">{if $productCombo['status']=='A'}{$language.lblActive}{else}{$language.lblInactive}{/if}</td>
                 
                 {if $prevValue neq $productCombo['customOptionID']}
                    {if $resproductStock[$productCombo['customOptionID']]['stock']|default:'' >0}
                        {assign var="rowspan" value="{$resproductStock[$productCombo['customOptionID']]['stock']}"}
                    {else}                     
                        {assign var="rowspan" value="1"}
                    {/if}
                    <td align="center" valign="middle" rowspan="{$rowspan}">{$rowspan}</td>
		  {/if}
                  
                
                </tr>{assign var="Count" value=	$Count+1}
                {assign var="prevValue" value="{$productCombo['customOptionID']}"}
	{/foreach}	 
</table>
{if $resproductComboMini|default:''|count>0}
    <div>&nbsp;</div>
<table width="100%" cellspacing="0" cellpadding="0" border="0" >
                <tr align="left" valign="top">
                  <th width="5%" align="left" valign="middle">{$language.lblSlNo} </th>
                  <th align="left" valign="middle">{$resproductComboMini[0]['custnameco']}</th>
                   <th align="left" valign="middle">{$resproductComboMini[0]['custnameup']}</th>
                  <th width="8%" align="left" valign="middle">{$language.lblVSBID}</th>
                  <th width="8%" align="left" valign="middle">{$language.lblStatus}</th>
                  <th width="10%" align="center" valign="middle">{$language.lblQuantity}</th>
                  
                </tr>
                {assign var="Count" value=1}
                {assign var="prevValue" value=""}
                {foreach from=$resproductComboMini item="productComboMini"}	
                <tr align="left" valign="top" id="row_{$productComboMini.customOptionCombID}">
                  <td align="left" valign="top">{$Count}</td>
                  <td align="left" valign="top">{$productComboMini['custnamevalue1']} (Code:{$productComboMini['bonnetStripeCode']})</td>
                  <td align="left" valign="top">{$productComboMini['custnamevalue2']} (Code:{$productComboMini['roofCapCode']})</td>
                  <td align="left" valign="top">{$productComboMini['vsbID']}</td>
                 <td align="left" valign="top">{if $productComboMini['status']=='A'}{$language.lblActive}{else}{$language.lblInactive}{/if}</td>
                 
                 {if $prevValue neq $productComboMini['customOptionID']}
                    {if $resproductStockMini[$productComboMini['customOptionID']]['stock']|default:'' >0}
                        {assign var="rowspan" value="{$resproductStockMini[$productComboMini['customOptionID']]['stock']}"}
                    {else}                     
                        {assign var="rowspan" value="1"}
                    {/if}
                    <td align="center" valign="middle" rowspan="{$rowspan}">{$rowspan}</td>
		  {/if}
                  
                
                </tr>{assign var="Count" value=	$Count+1}
                {assign var="prevValue" value="{$productComboMini['customOptionID']}"}
	{/foreach}	 
</table>
{/if}
</div>
{else}
 <div class="message_info">{$language.msgNoRecords}</div>
{/if}

 <div class="message_info" style="display:None" id="comboNorecords">{$language.msgNoRecords}</div>
