Files
crm.e5.pl/modules/EcmInsideOrders/tpl/MakeProduction.tpl

147 lines
5.9 KiB
Smarty
Raw Normal View History

2024-04-27 09:23:34 +02:00
{assign var=POSITION_LIST value=$POSITION_LIST|json_decode:true}
{assign var=POSITION_LIST_C value=$POSITION_LIST_C|json_decode:true}
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td>
<img src="themes/Sugar/images/EcmProducts.gif" style="margin-top: 3px; margin-right: 3px;" alt="EcmProducts" width="16" border="0" height="16"></td>
<td><h2>{$MOD.LBL_PRODUCTION_TAB}: {$MOD.LBL_PRODUCTION_MAKE}</h2></td>
</tr>
</table><br />
<form action="index.php?module=EcmInsideOrders&action=SaveProduction&record={$smarty.get.record}" method="post"><ul class="tablist" style="width:100%;">
<li>
<a class="current" href="#">{$MOD.LBL_STOCK_RW}</a>
</li>
</ul>
<table style="border-top: 0px none; margin-bottom: 4px;width:100%" class="tabForm" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="100%" nowrap="" >
{$MOD.LBL_PRODUCTION_ST}:
<span id="rw_stock_id" class="tabDetailViewDF"><b>{$FOCUS->rw_stock_name}</b></span>
</span>
&nbsp;
</td>
</tr>
<tr>
<td class="dataLabel" width="100%" nowrap="nowrap">
<table border="0" cellspacing="0" cellpadding="0" style="width:100%;" class="ListView">
<tr>
<td style="text-align:left;font-weight: bold;" class="oddListRowS1">
{$MOD.LBL_PRODUCTION_CODE}
</td>
<td style="text-align:left;font-weight: bold;" class="oddListRowS1">
{$MOD.LBL_PRODUCTION_NAME}
</td>
<td style="text-align:left;font-weight: bold;" class="oddListRowS1">
{$MOD.LBL_PRODUCTION_STATE}
</td>
<td style="text-align:left;font-weight: bold;" class="oddListRowS1">
{$MOD.LBL_PRODUCTION_REQ}</td>
</tr>
{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}
<tr style="background-color:{cycle values="#e6e6e6;,#ffffff;"}">
<td style="text-align:left;" class="oddListRowS1">{$item.product_code}</td>
<td style="text-align:left;" class="oddListRowS1">{$item.name}</td>
<td style="text-align:left;" class="oddListRowS1"><p style="color:{if $item.stock_state<$item.quantity && $item.ecmproductcategory_id!='d7f876b0-1a3d-43a1-7c9b-511ba40df3d1'}red;{/if}">{$item.stock_state}</p></td>
<td style="text-align:left;" class="oddListRowS1">{$item.quantity}</td>
</tr>
{/if}
{/foreach}
</table>
</td>
</tr>
</table>
<br>
<ul class="tablist" style="width:100%;">
<li>
<a class="current" href="#">{$MOD.LBL_STOCK_PW}</a>
</li>
</ul>
<table style="border-top: 0px none; margin-bottom: 4px;width:100%" class="tabForm" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="100%" nowrap="" >
{$MOD.LBL_PRODUCTION_ST}:
<span id="rw_stock_id" class="tabDetailViewDF"><b>{$FOCUS->pw_stock_name}</b></span>
</span>
&nbsp;
</td>
</tr>
<tr>
<td class="dataLabel" width="100%" nowrap="nowrap">
<table border="0" cellspacing="0" cellpadding="0" style="width:100%;" class="ListView">
<tr>
<td style="text-align:left;font-weight: bold;" class="oddListRowS1">
{$MOD.LBL_PRODUCTION_CODE}
</td>
<td style="text-align:left;font-weight: bold;" class="oddListRowS1">
{$MOD.LBL_PRODUCTION_NAME}
</td>
<td style="text-align:left;font-weight: bold;" class="oddListRowS1">
{$MOD.LBL_PRODUCTION_STATE}
</td>
<td style="text-align:left;font-weight: bold;" class="oddListRowS1">
{$MOD.LBL_PRODUCTION_NEW}</td>
</tr>
{foreach from=$POSITION_LIST key="key" item="item" name="components"}
{if $item.product_component == 0}
<tr style="background-color:{cycle values="#e6e6e6;,#ffffff;"}">
<td style="text-align:left;" class="oddListRowS1">{$item.product_code}</td>
<td style="text-align:left;" class="oddListRowS1">{$item.name}</td>
<td style="text-align:left;" class="oddListRowS1">{$item.stock_state}</td>
<td style="text-align:left;" class="oddListRowS1">{$item.quantity}</td>
</tr>
{/if}
{/foreach}
</table>
</td>
</tr>
</table>
{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}<input type="submit" class="button" name="save_documents" value="{$MOD.LBL_PRODUCTION_CREATE}" />{/if}
{if $check==1}<p style="color:red">{$MOD.LBL_PRODUCTION_ERROR}:</p>
<table border="0" cellspacing="0" cellpadding="0" style="width:100%;" class="ListView">
<tr>
<td style="text-align:left;font-weight: bold;" class="oddListRowS1">
{$MOD.LBL_PRODUCTION_CODE}
</td>
<td style="text-align:left;font-weight: bold;" class="oddListRowS1">
{$MOD.LBL_PRODUCTION_NAME}
</td>
<td style="text-align:left;font-weight: bold;" class="oddListRowS1">
{$MOD.LBL_PRODUCTION_STATE}
</td>
<td style="text-align:left;font-weight: bold;" class="oddListRowS1">
{$MOD.LBL_PRODUCTION_REQ}</td>
</tr>
{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'}
<tr style="background-color:{cycle values="#e6e6e6;,#ffffff;"}">
<td style="text-align:left;" class="oddListRowS1">{$item.product_code}</td>
<td style="text-align:left;" class="oddListRowS1">{$item.name}</td>
<td style="text-align:left;" class="oddListRowS1"><p style="color:{if $item.stock_state<$item.quantity && $item.ecmproductcategory_id!='d7f876b0-1a3d-43a1-7c9b-511ba40df3d1'}red;{/if}">{$item.stock_state}</p></td>
<td style="text-align:left;" class="oddListRowS1">{$item.quantity}</td>
</tr>
{/if}
{/foreach}
</table>
{/if}