{assign var=POSITION_LIST value=$POSITION_LIST|json_decode:true} {assign var=POSITION_LIST_C value=$POSITION_LIST_C|json_decode:true}
EcmProducts

{$MOD.LBL_PRODUCTION_TAB}: {$MOD.LBL_PRODUCTION_MAKE}


{$MOD.LBL_PRODUCTION_ST}: {$FOCUS->rw_stock_name}  
{foreach from=$POSITION_LIST key="key" item="item" name="components"} {if $item.product_component == 1} {if $item.stock_state<$item.quantity && $item.ecmproductcategory_id!='d7f876b0-1a3d-43a1-7c9b-511ba40df3d1'} {/if} {/if} {/foreach}
{$MOD.LBL_PRODUCTION_CODE} {$MOD.LBL_PRODUCTION_NAME} {$MOD.LBL_PRODUCTION_STATE} {$MOD.LBL_PRODUCTION_REQ}
{$item.product_code} {$item.name}

{$item.stock_state}

{$item.quantity}

{$MOD.LBL_PRODUCTION_ST}: {$FOCUS->pw_stock_name}  
{foreach from=$POSITION_LIST key="key" item="item" name="components"} {if $item.product_component == 0} {/if} {/foreach}
{$MOD.LBL_PRODUCTION_CODE} {$MOD.LBL_PRODUCTION_NAME} {$MOD.LBL_PRODUCTION_STATE} {$MOD.LBL_PRODUCTION_NEW}
{$item.product_code} {$item.name} {$item.stock_state} {$item.quantity}
{foreach from=$POSITION_LIST_C key="key" item="item" name="components"} {if $item.product_component == 1 && $item.stock_state<$item.quantity && $item.ecmproductcategory_id!='d7f876b0-1a3d-43a1-7c9b-511ba40df3d1'} {assign var="check" value=1} {/if} {/foreach} {if $check!=1}{/if} {if $check==1}

{$MOD.LBL_PRODUCTION_ERROR}:

{foreach from=$POSITION_LIST_C key="key" item="item" name="components"} {if $item.product_component == 1 && $item.stock_state<$item.quantity && $item.ecmproductcategory_id!='d7f876b0-1a3d-43a1-7c9b-511ba40df3d1'} {/if} {/foreach}
{$MOD.LBL_PRODUCTION_CODE} {$MOD.LBL_PRODUCTION_NAME} {$MOD.LBL_PRODUCTION_STATE} {$MOD.LBL_PRODUCTION_REQ}
{$item.product_code} {$item.name}

{$item.stock_state}

{$item.quantity}
{/if}