AnonSec Shell
Server IP : 162.214.74.102  /  Your IP : 216.73.217.80
Web Server : Apache
System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64
User : lrsys ( 1015)
PHP Version : 5.6.40
Disable Function : exec,passthru,shell_exec,system
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/lrsys/public_html/lrsys_apps/imobles/ui/theme/lrsys/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/lrsys/public_html/lrsys_apps/imobles/ui/theme/lrsys/add-product.tpl
{include file="sections/header.tpl"}
<div class="wrapper wrapper-content">
    <div class="row">

        <div class="col-lg-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>
                        {*if $type eq 'Product'*}
                            {$title}
                            {*else*}
                            {*$_L['Add Service']*}
                        {*/if*}
                    </h5>
                    <div class="ibox-tools">
                           <a href="{$_url}ps/p-list" class="btn btn-primary btn-xs">{$_L['List Products']}</a>
                    </div>
                </div>
                <div class="ibox-content" id="ibox_form">
                    <div class="alert alert-danger" id="emsg">
                        <span id="emsgbody"></span>
                    </div>

                    <form class="form-horizontal" id="rform">

 
                        <ul class="nav nav-tabs" id="nav_tabs">
                            {if isset($pluginsInstalled['module_med_scheduling'])}
                                <li class="active"><a data-toggle="tab" href="#tuss_table">{$_L['Scheduling TUSS table'] }</a></li> 
                                <li><a style="" data-toggle="tab" href="#general_data">{$_L['General Data']}</a></li>
                                <li><a data-toggle="tab" href="#complementary_data">{$_L['Complementary Data'] }</a></li>
                                <li><a data-toggle="tab" href="#stock">{$_L['Stock'] }</a></li>
                                <li><a data-toggle="tab" href="#comments">{$_L['Comments'] }</a></li> 
                            {else}
                                <li class="active"><a style="" data-toggle="tab" href="#general_data">{$_L['General Data']}</a></li>
                                <li><a style="" data-toggle="tab" href="#price_different">{$_L['Differential prices']}</a></li>
                                <li><a data-toggle="tab" href="#complementary_data">{$_L['Complementary Data'] }</a></li>
                                <li><a data-toggle="tab" href="#stock">{$_L['Stock'] }</a></li>
                                <li id='li_production'><a data-toggle="tab" href="#production">{$_L['Production'] }</a></li>
                                <li id='li_costs'><a data-toggle="tab"  href="#costs">{$_L['Costs']}</a></li> 
                                <li><a data-toggle="tab" href="#comments">{$_L['Comments'] }</a></li> 
                            {/if}
                        </ul>

                        <div class="tab-content">
                            <div id="general_data" class="tab-pane fade in {if !isset($pluginsInstalled['module_med_scheduling'])}active{/if}">
                        
                                <div class="row" style="margin-top:20px"> 
                                    <div class=" col-md-6 col-sm-12 col-xs-12">
                                        <label class="control-label" for="name">{$_L['Description']}{$_L['*']}</label>
                                        <input type="text" {if isset($product['tiss_procedures_id'])}readonly{/if} id="description" name="description" class="form-control" autocomplete="off" placeholder="{$_L['Full Product Description']}" value="{$product['description']}">
                                    </div>
                                    
                                    <div class=" col-md-3 col-sm-12 col-xs-12">
                                        <label class="control-label" for="item_number">{$_L['Code']}</label>
                                        <input type="text" id="item_number" value="{$nxt}" name="item_number" class="form-control" placeholder="{$_L['Code or reference (optional)']}" autocomplete="off">
                                    </div>
                                    
                                    <div class=" col-md-3 col-sm-12 col-xs-12">
                                        <label class="control-label" for="cod_nf">{$_L['Code NF']}</label>
                                        <input type="text" id="cod_nf" value="{$product['cod_nf']}" name="cod_nf" class="form-control" placeholder="{$_L['NF product code (optional)']}" autocomplete="off">
                                    </div>
                    
                                    <div class="col-md-12 col-sm-12 col-xs-12">
                                       <label class="control-label" >{$_L['Origin']}</label>
                                       <select name="origin" id="origin" class="form-control select2" style="width:100%">
                                           <option value="">{$_L['Select Origin']}</option>
                                                {foreach $origins as $o}
                                                    <option value="{$o['id']}" {if $o['id']==$product['sys_items_scr_id']}selected{/if}>{$o['id']} - {$_L[$o['desc']]}</option>
                                                {/foreach}
                                       </select>
                                        <span class="help-block">{$_L['Origin of the product according to ICMS']}</span>
                                    </div>   
                                       
                                    
                                    <div class="col-md-3 col-sm-12 col-xs-12">
                                        <label class="control-label"> {$_L['NCM']}</label>                            
                                        <input type="text" id="mercosur_nomenclature"  name="mercosur_nomenclature" class="form-control ncm" autocomplete="off" value="{if $product['mercosur_nomenclature']!= null } {str_pad($product['mercosur_nomenclature'], 8, "0", STR_PAD_LEFT)}{/if}">
                                        <span class="help-block">{$_L['Common nomenclature of Mercosur']}</span>
                                        <span class="help-block"><a href="http://www4.receita.fazenda.gov.br/simulador/PesquisarNCM.jsp" target="_blank">{$_L['Search NCM']}</a></span>
                                 
                                    </div>
                                    
                                    <div class="col-md-3 col-sm-12 col-xs-12">
                                        <label class="control-label" for="sales_price">{$_L['Sales Price']}</label>
                                        <input type="text" id="sales_price" name="sales_price" value='{$product['sales_price']}' class="form-control amount" autocomplete="off" data-a-sign="{$_c['currency_code']} "  data-a-dec="{$_c['dec_point']}" data-a-sep="{$_c['thousands_sep']}" data-d-group="2">
                                    </div>
                                    
                                    <div class="col-md-3 col-sm-12 col-xs-12">
                                        <label class="control-label" for="sales_price">{$_L['Discount Margin']} (%)</label>
                                        <input type="text" id="margin_discount" name="margin_discount" value='{$product['margin_discount']}' class="form-control  input-unit" autocomplete="off" data-a-sign=""  data-a-dec="{$_c['dec_point']}" data-a-sep="{$_c['thousands_sep']}" data-d-group="2">
                                    </div>
                                    
                           
                                    <div class="col-md-3 col-sm-12 col-xs-12">
                                        <label class="control-label" >{$_L['Unit']}{$_L['*']}</label>
                                        <select name="unit" id="unit" class="form-control select2" style="width:100%"></select>
                                        <span class="help-block"><a href="#" id="add_new_unit">{$_L['Add New Unit']}</a> </span>
                                    </div>
                                
                                </div>  
                                
                                <div class="row"> 
                                    <div class="col-xs-12 div_form">  <h2> {$_L['Expedition']}</h2> </div>
                                 
                                    <div class=" col-md-4 col-sm-12 col-xs-12">
                                        <label class="control-label">{$_L['GTIN/EAN']}</label>
                                        <input value='{$product['barcode']}' type="text" id="barcode" name="barcode" class="form-control" autocomplete="off" placeholder="{$_L['Barcode']}">
                                        <span class="help-block">{$_L['Global Trade Item Number']}</span>
                                    </div>
                                    
                                    <div class=" col-md-4 col-sm-12 col-xs-12">
                                        <label class="control-label" for="name">{$_L['GTIN / EAN packing']}</label>
                                        <input value='{$product['barcode_marketing']}' type="text" id="barcode_marketing" name="barcode_marketing" class="form-control" autocomplete="off" placeholder="{$_L['Marketing barcode']}">
                                    </div>
                                    <div class="col-md-4 col-sm-12 col-xs-12">
                                        <label class="control-label">{$_L['Location']}</label>
                                        <select name="location" id="location" class="form-control select2" style="width:100%"></select>  
                                        <span class="help-block">{$_L['Physical location in stock']}</span>
                                        <span class="help-block"><a href="#" id="add_new_location">{$_L['Add New Location']}</a> </span>
                                    </div>
                                </div>
                                <div class="row"> 
                                    <div class=" col-md-4 col-sm-12 col-xs-12">
                                        <label class="control-label" >{$_L['Net weight']}</label>
                                        <div class="input-group">
                                            <input value='{$product['net_weight']}' type="text" id="net_weight" name="net_weight" class="form-control input-float" autocomplete="off" data-v-min="0"  data-v-max="9999999999.999"  data-a-dec="{$_c['dec_point']}" data-a-sep="" data-d-group="3">
                                            <span class="input-group-addon  after">Kg</span>
                                        </div>
                                    </div>
                                    <div class=" col-md-4 col-sm-12 col-xs-12">
                                        <label class="control-label">{$_L['Gross weight']}</label>
                                        <div class="input-group">
                                            <input value='{$product['gross_weight']}' type="text" id="gross_weight" name="gross_weight" class="form-control input-float" autocomplete="off" data-v-min="0"  data-v-max="9999999999.999"  data-a-dec="{$_c['dec_point']}" data-a-sep="" data-d-group="3">
                                            <span class="input-group-addon  after">Kg</span>
                                        </div>
                                    </div>
                                        
                           
                                    <input type="hidden" id="product_packing_id" value="{$product_packing['id']}">
                                    <input type="hidden" id="category_id" value="{$product['category_id']}">
                                    <input type="hidden" id="sys_items_manufacturer_id" value="{$product['sys_items_manufacturer_id']}">
                                    <input type="hidden" id="location_id" value="{$product['sys_items_location_id']}">
                                    <input type="hidden" id="unit_id"  value="{$product['unit_id']}">
                                    <input type="hidden" id="type" name="type" value="{$type}">
                                    <input type="hidden" id="id" name="id" value="{$product['id']}">
                                </div>
                            </div> <!-- Fim dados gerais -->
                            
                            
                            <div id="price_different" class="tab-pane fade">
                    
                                <div class="row" style="margin-top:20px"> 
                                    <div class=" col-md-12 col-sm-12 col-xs-12">  
                                        <table class="table invoice-table" id="product_prices">
                                            <thead>
                                            <tr>
                                                <th class="col-xs-2" data-toggle="tooltip" title="{$_L['PRODUCT_PRICE_TOOTIP_PRICE']}" data-original-title="{$_L['PRODUCT_PRICE_TOOTIP_PRICE']}">{$_L['Price']} {$_L["*"]}</th>
                                                <th class="col-xs-1" data-toggle="tooltip" title="{$_L['PRODUCT_PRICE_TOOTIP_QUANTITY']}" data-original-title="{$_L['PRODUCT_PRICE_TOOTIP_QUANTITY']}">{$_L['Quantity']}</th>
                                                <th class="col-xs-3" data-toggle="tooltip" title="{$_L['PRODUCT_PRICE_TOOTIP_SEGMENTS']}" data-original-title="{$_L['PRODUCT_PRICE_TOOTIP_SEGMENTS']}">{$_L['Segments']}</th>
                                                <th class="col-xs-3" data-toggle="tooltip" title="{$_L['PRODUCT_PRICE_TOOTIP_CUSTOMERS']}" data-original-title="{$_L['PRODUCT_PRICE_TOOTIP_CUSTOMERS']}">{$_L['Customers']}</th>
                                                <th class="col-xs-1" data-toggle="tooltip" title="{$_L['PRODUCT_PRICE_TOOTIP_DELIVERY']}" data-original-title="{$_L['PRODUCT_PRICE_TOOTIP_DELIVERY']}">{$_L['Delivery']}</th>
                                                <th class="col-xs-2" data-toggle="tooltip" title="{$_L['PRODUCT_PRICE_TOOTIP_DISCOUNT']}" data-original-title="{$_L['PRODUCT_PRICE_TOOTIP_DISCOUNT']}">{$_L['Discount']}</th>
                                                <th width="10px"></th>
                                            </tr>
                                            </thead>
                                            <tbody>
                                                {$row=0}
                                                 {foreach $sys_items_price_different as $price_d} 
                                                     
                                                       <tr>
                                                            <td class=""><input type="hidden" name="product_row[]" value="{$row}">
                                                                <input type="text" value="{$price_d->sales_price}" class="form-control amount" name="product_prices[]" >  
                                                            </td>  
                                                            <td class="">
                                                                <input type="text" value="{$price_d->quantity}" class="form-control input-unit" name="product_quantity[]" >  
                                                            </td>  
                                                            <td> 
                                                                <select  name="product_segment_{$row}[]" multiple="multiple"  class="form-control product_segment select2" style="width:100%">
                                                                    {foreach $segments as $seg} 
                                                                        <option value="{$seg->id}" {if in_array($seg->id,$price_d['array_segments'])}selected{/if}>{$seg->name}</option>';
                                                                    {/foreach} 
                                                                <select> 
                                                                <div class="form-group">
                                                                    <label class="col-md-8 control-label" for="" data-toggle="tooltip" title="{$_L['PRODUCT_PRICE_TOOTIP_CHILDREN']}" data-original-title="{$_L['PRODUCT_PRICE_TOOTIP_DISCOUNT']}">{$_L['Apply for children']}</label><div class="col-md-4">
                                                                    <input type="checkbox" {if $price_d->apply_children_segments==1}checked{/if} data-toggle="toggle" data-size="small" data-on="{$_L['Yes']}" data-off="{$_L['No']}"  name="apply_children_segments[{$row}]" value="1"></div></div>
                                                            </td>
                                                            <td> 
                                                                <select  name="product_clients_{$row}[]" multiple="multiple"  class="form-control product_clients select2" style="width:100%">
                                                                    {foreach $clients as $cl} 
                                                                        <option value="{$cl->id}" {if in_array($cl->id,$price_d['array_clients'])}selected{/if}>{$cl->account}{if not empty($cl->email)} - {$cl->email} {/if}</option>';
                                                                  {/foreach} 
                                                                <select>
                                                            </td>
                                                            <td> 
                                                                <select  name="product_type_delivery[]"  class="form-control " style="width:100%">
                                                                    <option value="All" {if $price_d->type_delivery=="All"}selected{/if}>{$_L['All Type']}</option>
                                                                    <option value="Delivery" {if $price_d->type_delivery=="Delivery"}selected{/if}>{$_L['Delivery']}</option>
                                                                    <option value="Withdrawal" {if $price_d->type_delivery=="Withdrawal"}selected{/if}>{$_L['Withdrawal']}</option>
                                                                <select>
                                                            </td>  
                                                            <td class=""> 
                                                                <div class="input-group">
                                                                    <input type="text" value="{$price_d->margin_discount}" class="form-control discount" name="product_margin_discount[]" >  
                                                                    <span class="input-group-addon  after" id="span_type_disc">%</span> 
                                                                </div> 
                                                            </td>
                                                            <td class="{$row++}">
                                                                <span class="btn btn-danger btn-xs delete_price" ><i class="fa fa-trash"></i> </span>
                                                            </td>
                                                         </tr>
                                                 
                                                {/foreach}
                                            </tbody>
                                        </table>
                                    </div>
                                    <div class="col-xs-12">
                                        <input type="hidden" id="product_prices_row" value="{$row}">
                                        <button type="button" class="btn btn-primary" id="price-add"><i class="fa fa-plus"></i> {$_L['Add Price']}
                                        </button>
                                    </div>
                                </div>
                            </div>
                         
                            <div id="complementary_data" class="tab-pane fade in ">                             
                                <div class="row" style="margin-top:20px">
                                    <div class="col-xs-12 div_form">  <h2>{$_L['Categorization']}</h2> </div>

                                    <div class=" col-md-12 col-sm-12 col-xs-12">
                                        <label class="control-label" >{$_L['Category']}</label>
                                        <select name="category" id="category" class="form-control select2" style="width: 100%"></select>
                                        <span class="help-block">{$_L['Categorization according to the tree of product categories']}</span>
                                        <span class="help-block"><a href="#" id="add_new_category">{$_L['Add New Category']}</a> </span>
                                    </div>
                                        <div class="col-xs-12 div_form">  <h2>{$_L['Complementary description']}</h2></div>
                                    <div class="col-md-12 col-sm-12 col-xs-12">
                                        <textarea id="complementary_description" name="complementary_description" class="form-control" rows="10">{$product['complementary_description']}</textarea>
                                        <span class="help-block">{$_L['Field displayed in commercial proposals, sales orders and product description in e-commerce. Allows you to use HTML tags.']}</span>
                                    </div> 
                                    
                                    <div class="col-xs-12 div_form">  <h2>{$_L['Packing']}</h2> </div>
                                    <div class="col-xs-12" > <span class="help-block">{$_L['The dimensions of the package will only be considered in the Sales Expedition with only one item and one unit.']}</span></div>
                                    
                                    <div class="col-md-3 col-sm-12 col-xs-12">
                                       <label class="control-label" >{$_L['Type of packaging']}</label>
                                       <select name="packing_type" id="packing_type" class="form-control select2" style="width: 100%">
                                            <option value="">{$_L['Select packaging']}</option>
                                            <option value="envelope" {if $product_packing['type']=='envelope'}selected{/if}>{$_L['Envelope']}</option>
                                            <option value="package_box" {if $product_packing['type']=='package_box'}selected{/if}>{$_L['Package/Box']}</option>
                                            <option value="roller_cylinder" {if $product_packing['type']=='roller_cylinder'}selected{/if}>{$_L['Roller/Cylinder']}</option>
                                       </select>
                                    </div>  
                                    
                                    <div id="div_packing" class="col-md-6 col-sm-12 col-xs-12">
                                       <label class="control-label" >{$_L['Packing']}</label>
                                        <select name="packing" id="packing" class="form-control select2" style="width: 100%">
                                        </select>
                                    </div>  
                                    <div id="img_pack" class="col-md-6 col-sm-12 col-xs-12"></div>
                                </div>
                                <div class="row">       
                                    <div id="div_pack_width" class=" col-md-3 col-sm-12 col-xs-12">
                                        <label class="control-label" >{$_L['Width']}</label>
                                        <div class="input-group">
                                            <input type="text" id="pack_width" name="pack_width" class="form-control input-float" autocomplete="off" data-v-min="0"  data-v-max="9999999999.9"  data-a-dec="{$_c['dec_point']}" data-a-sep="{$_c['thousands_sep']}" data-d-group="3">
                                            <span class="input-group-addon  after">cm</span>
                                        </div>
                                    </div>
                                     
                                       
                                    <div id="div_pack_height" class=" col-md-3 col-sm-12 col-xs-12">
                                        <label class="control-label" >{$_L['Height']}</label>
                                        <div class="input-group">
                                            <input type="text" id="pack_height" name="pack_height" class="form-control  input-float" autocomplete="off" data-v-min="0"  data-v-max="9999999999.9"  data-a-dec="{$_c['dec_point']}" data-a-sep="{$_c['thousands_sep']}" data-d-group="3">
                                            <span class="input-group-addon  after">cm</span>
                                        </div>
                                    </div>
                                    
                                    <div id="div_pack_length" class=" col-md-3 col-sm-12 col-xs-12">
                                        <label class="control-label" >{$_L['Length']}</label>
                                        <div class="input-group">
                                            <input type="text" id="pack_length" name="pack_length" class="form-control input-float" autocomplete="off" data-v-min="0"  data-v-max="9999999999.9"  data-a-dec="{$_c['dec_point']}" data-a-sep="{$_c['thousands_sep']}" data-d-group="3">
                                            <span class="input-group-addon  after">cm</span>
                                        </div>
                                    </div>
                                    
                                    <div id="div_pack_diameter" class=" col-md-3 col-sm-12 col-xs-12">
                                        <label class="control-label" >{$_L['Diameter']}</label>
                                        <div class="input-group">
                                            <input type="text" id="pack_diameter" name="pack_diameter" class="form-control input-float" autocomplete="off" data-v-min="0"  data-v-max="9999999999.9"  data-a-dec="{$_c['dec_point']}" data-a-sep="{$_c['thousands_sep']}" data-d-group="3">
                                            <span class="input-group-addon  after">cm</span>
                                        </div>
                                    </div>
                                 
                                </div>
                                <div class='row'>
                                    <div class="col-xs-12 div_form">  <h2> {$_L['Images']}</h2></div>
                              
                                        <div class="col-xs-12">
                                            <div action="" class="dropzone" id="upload_container">
                                                <div class="dz-message">
                                                    <h3> <i class="fa fa-cloud-upload"></i>  {$_L['Drop File Here']}</h3>
                                                    <br />
                                                    <span class="note">{$_L['Click to Upload']}</span>
                                                </div>
                                            </div>
                                  
                                            <input type="hidden" name="images" id="images" value="{$images_user}">
                                        </div>
                                </div>
                                <div class='row'>
                                    <div class="col-xs-12 div_form">  <h2> {$_L['Tags']}</h2> </div>
                               
                                        <div class="col-md-12 col-sm-12 col-xs-12">
                                                <label class="control-label" >{$_L['Select Tags']}</label>
                                                <select name="tags[]" id="tags" class="form-control select2" multiple="multiple" style="width: 100%"></select>
                                                <span class="help-block">{$_L['The tags serve to classify the products (Example: Brand, Group, Color, etc ...)']}</span> 
                                                <span class="help-block"><a href="#" data-type='group_tags' class="add_new_product_tag">{$_L['Add New Group Tags']}</a> </span>
                                                <span class="help-block"><a href="#" data-type='tags'  class="add_new_product_tag">{$_L['Add New Tag']}</a> </span>       
                                        </div>
                                </div>
                                <div class='row'>
                                    <div class="col-xs-12 div_form">  <h2> {$_L['Tax information']}</h2></div>
                               
                                    <div class="col-md-3 col-sm-12 col-xs-12">
                                        <label class="control-label"> {$_L['CEST Code']}</label>                            
                                        <input type="text" id="cest_code"  name="cest_code" class="form-control cest" autocomplete="off" value="{$product['cest_code']}">
                                        <span class="help-block">{$_L['Tax Substitution Specifier Code']}</span>
                                        <span clas="help-block"><a href="https://www.codigocest.com.br/" target="_blank">https://www.codigocest.com.br</a>
                                    </div>
                                    
                                    <div class="col-md-3 col-sm-12 col-xs-12">
                                        <label class="control-label"> {$_L['IPI Framework Code']}</label>                            
                                        <input type="text" id="ipi_code"  name="ipi_code" class="form-control" maxlength="60" autocomplete="off" value="{$product['ipi_code']}">
                                        <span class="help-block">{$_L['IPI Code of Legal Framework']}</span>
                                        <span clas="help-block"><a href=" {APP_URL }/application/storage/product/doc/tabela_enquadramento_IPI.pdf" target="_blank">{$_L['View PDF']}</a>
                              
                                    </div>
                                    
                                    <div class="col-md-3 col-sm-12 col-xs-12">
                                        <label class="control-label" >{$_L['Fixed IPI value']}</label>
                                        <input type="text" id="ipi_fixed_amount" name="ipi_fixed_amount" value='{$product['ipi_fixed_amount']}' class="form-control amount" autocomplete="off" data-a-sign="{$_c['currency_code']} "  data-a-dec="{$_c['dec_point']}" data-a-sep="{$_c['thousands_sep']}" data-d-group="2">
                                        <span class="help-block">{$_L['Only for products with specific taxation'] }</span>
                                    </div>
                                    
                                    <div class="col-md-3 col-sm-12 col-xs-12">
                                        <label class="control-label">{$_L['IPI framework class']}</label>                              
                                         <div class="input-group">
                                             <input type="text" id="ipi_framework" value='{$product['ipi_framework']}' name="ipi_framework" maxlength="60" class="form-control" autocomplete="off">
                                            <span class="input-group-addon  after"><a href="#" id="list_ipi_framework"><i class='fa fa-search '></i></a></span>
                                        </div>
                                        <span class="help-block">{$_L['Fill only for drinks and cigarettes']}</span>
                                    </div>
                         
                                </div>
                                <div class='row'>
                                    <div class="col-xs-12 div_form">  <h2> {$_L['Additional Information']}</h2> </div>
                               
                                    <div class=" col-md-12 col-sm-12 col-xs-12">
                                        <label class="control-label" >{$_L['Manufacturer']}</label>
                                        <select name="manufacturer" id="manufacturer" class="form-control select2" style="width: 100%"></select>
                                        <span class="help-block"><a href="#" id="add_new_manufacturer">{$_L['Add New Manufacturer']}</a> </span>
                                    </div>
                                    
                                    <!-- TODO: LR -  GRAVAR OS DADOS DOS FORNECEDORES PARA O PRODUTO. POR ENQUANTO NÃO FAZ NADA -->
                                    <div class="col-md-12 col-sm-12 col-xs-12">
                                        <label class="control-label" for="employees">{$_L['Payee']}</label>
                                        <select class="form-control select2 employees" name="employees[]" multiple style="width:100%">
                                        </select>
                                    </div> 
                                    
                                    <div class="col-md-3 col-sm-12 col-xs-12">
                                        <label class="control-label"> {$_L['Items per package'] }  (<span class="addon-unity">un</span>)</label>                            
                                        <div class="input-group">
                                            <input type="text" id="item_per_package"  name="item_per_package" class="form-control input-unit" maxlength="60" autocomplete="off" value="{$product['item_per_package']}">
                                        </div>
                                    </div>
                                            
                                 <!--   <div class="col-md-3 col-sm-12 col-xs-12">
                                        <label class="control-label" >{$_L['Cost price']}</label>
                                        <input type="text" id="cost_price" name="cost_price" value='{$product['cost_price']}' class="form-control amount" autocomplete="off" data-a-sign="{$_c['currency_code']} "  data-a-dec="{$_c['dec_point']}" data-a-sep="{$_c['thousands_sep']}" data-d-group="2">
                                    </div> -->
                                    
                                    <div class="col-md-3 col-sm-12 col-xs-12">
                                        <label class="control-label" >{$_L['Status']}</label>
                                        <select name="status" id="status" class="form-control select2" style="width:100%">
                                            <option value="Active" {if $product['status']=='Active'}selected{/if}>{$_L['Active'] }</option>
                                            <option value="Inactive" {if $product['status']=='Inactive'}selected{/if}>{$_L['Inactive']}</option>
                                        </select>
                                    </div>
                                </div>
                            </div>
                            
                            <div id="stock" class="tab-pane fade in ">
                                <div class="row" style="margin-top:20px">   
                                    
                                    {if $product['id'] <= 0}
                                    <div class=" col-md-3 col-sm-12 col-xs-12">
                                        <label class="control-label" >{$_L['Current Stock']}</label>
                                        <div class="input-group">
                                            <input type="text" id="current_stock" name="current_stock" value="{$stock['current_stock']}" class="form-control input-unit" autocomplete="off">
                                            <span class="input-group-addon addon-unity after">un</span>
                                        </div>
                                        <span class="help-block">{$_L['Enter whether you want to post the initial product stock']}</span>
                                    </div>
                                    {/if}
                                    <div class=" col-md-3 col-sm-12 col-xs-12">
                                        <label class="control-label" >{$_L['Minimum Stock']}</label>
                                        <div class="input-group">
                                            <input type="text" id="minumum_stock" name="minumum_stock" value="{$stock['minumum_stock']}" class="form-control input-unit" autocomplete="off">
                                            <span class="input-group-addon addon-unity after">un</span>
                                        </div>
                                        <span class="help-block">{$_L['Minimum quantity of product in stock']}</span>
                                    </div>
                                    <div class=" col-md-3 col-sm-12 col-xs-12">
                                        <label class="control-label" >{$_L['Maximum Stock']}</label>
                                        <div class="input-group">
                                            <input type="text" id="maximum_stock" name="maximum_stock" value="{$stock['maximum_stock']}" class="form-control input-unit" autocomplete="off">
                                            <span class="input-group-addon addon-unity after">un</span>
                                        </div>
                                        <span class="help-block">{$_L['Maximum quantity of product in stock']}</span>
                                    </div>
                                    <div class=" col-md-3 col-sm-12 col-xs-12">
                                        <label class="control-label" >{$_L['Stock Control']}</label>
                                        <select name="control_stock" id="control_stock" class="form-control">
                                            <option value="1"  {if $stock['control_stock']==1}selected{/if} >{$_L['Yes']}</option>
                                            <option value="0" {if $stock['control_stock']==0}selected{/if}>{$_L['No']}</option>
                                        </select>  
                                        <span class="help-block">{$_L['Tracking of stock movement']}</span>
                                    </div>
                                </div>
                            </div>
                            
                            <div id="production" class="tab-pane fade in ">
                                <div class="row" style="margin-top:20px">                                         
                                    <div class="col-md-4 col-sm-12 col-xs-12">
                                        <label class="control-label" >{$_L['Product type']}</label>
                                        <select name="type_of_product" id="type_of_product" class="form-control select2" style="width:100%">
                                            <option value="Finished product" {if $product['type_of_product']=='Finished product'}selected{/if}>{$_L['Finished product'] }</option>
                                            <option value="Part or part" {if $product['type_of_product']=='Part or part'}selected{/if}>{$_L['Part or part']}</option>
                                            <option value="Feedstock" {if $product['type_of_product']=='Feedstock'}selected{/if}>{$_L['Feedstock']}</option>
                                            <option value="Component" {if $product['type_of_product']=='Component'}selected{/if}>{$_L['Component']}</option>
                                            <option value="Paking Material" {if $product['type_of_product']=='Paking Material'}selected{/if}>{$_L['Paking Material']}</option>
                                            <option value="Expedient Material" {if $product['type_of_product']=='Expedient Material'}selected{/if}>{$_L['Expedient Material']}</option>
                                            <option value="Maintenance Material" {if $product['type_of_product']=='Maintenance Material'}selected{/if}>{$_L['Maintenance Material']}</option>
                                            <option value="Consumption Material" {if $product['type_of_product']=='Consumption Material'}selected{/if}>{$_L['Consumption Material']}</option>
                                        </select>
                                        <span class="help-block">{$_L['Components, parts or raw materials may comprise a finished product or component.']}</span> 
                                    </div>
                                    <div class="col-md-3 col-sm-12 col-xs-12">
                                        <label class="control-label" >{$_L['Production']}</label>
                                        <select name="production" id="production" class="form-control select2" style="width:100%">
                                            <option value="Own" {if $product['production']=='Own'}selected{/if}>{$_L['Own'] }</option>
                                            <option value="The 3rd" {if $product['production']=='The 3rd'}selected{/if}>{$_L['The 3rd']}</option>
                                        </select>
                                        <span class="help-block">{$_L['Own or third-party production']}</span> 
                                   </div>
                                </div>
                                <div class='row structure'>
                                    <div class="col-xs-12 div_form">  <h2> {$_L['Structure']}</h2> </div>
                                        <div class="col-md-12 col-sm-12 col-xs-12">
                                            <table class="table invoice-table" id="production_items">
                                                <thead>
                                                <tr>
                                                    <th width="">{$_L['Product']}</th>
                                                    <th width="130">{$_L['Qty']}</th>
                                                    <th width="120">{$_L['Price']}</th>
                                                    <th width="160">{$_L['Total']}</th>
                                                    <th class='col-xs-1'></th>
                                                </tr>
                                                </thead>
                                                <tbody></tbody>
                                                <tfoot>
                                                <tr>
                                                    <th></th>
                                                    <th></th>
                                                    <th></th>
                                                    <th> {$_c['currency_code']} <span class="amount" id="sub_total"> </span></th>
                                                    <th></th>
                                                </tr>
                                                </tfoot>
                                            </table>
                                                
                                               
                                            <button type="button" class="btn btn-primary" id="product-add"><i class="fa fa-search"></i> {$_L['Add Product']}</button> 
                                            &nbsp;&nbsp;&nbsp;
                                            <a data-toggle="tab" class="cost-add"  href="#costs">{$_L['Update Product Cost']}</a> 
                                           
                                        </div>
                                </div>
                                <div class='row step'>
                                    <div class="col-xs-12 div_form">  <h2> {$_L['Production Steps']}</h2> </div>
                                        <div class="col-md-12 col-sm-12 col-xs-12">
                                        
                                                <table class="table invoice-table" id="step_items">
                                                    <thead>
                                                    <tr>
                                                        <th width="">{$_L['Description']}</th>
                                                    </tr>
                                                    </thead>
                                                    <tbody>
                                                        {foreach $product_steps as $ps}
                                                            <tr> <td><input type="text" name="description_step[]" maxlength="100" class="form-control"  value="{$ps['description']}"></td>  <td class="col-xs-1"><button class="btn btn-danger btn-xs delete_step_item" ><i class="fa fa-trash"></i> </button></td></tr>
                                                        {/foreach}
                                                    </tbody>
                                                </table>
                                                <button type="button" class="btn btn-primary" id="step-add"><i
                                    class="fa fa-plus"></i> {$_L['Add Step']}</button> 
                                        </div>
                                </div>
                            </div>
                            
                            <div id="costs" class="tab-pane fade in ">
                                <div class="row" style="margin-top:20px">                                         
                                    <div class="col-xs-12"> 
                                            <table class="table invoice-table" id="cost_items">
                                                <thead>
                                                <tr>
                                                    <th width="">{$_L['From']}</th>
                                                    <th width="">{$_L['Current Balance'] }</th>
                                                    <th width="">{$_L['Previous balance']}</th>
                                                    <th width="">{$_L['Recoverable taxes']}</th>
                                                    <th width="">{$_L['Cost price']}</th>
                                                    <th width="">{$_L['Average cost']}</th>
                                                    <th width="">{$_L['Sales Price']}</th>
                                                    <th class='col-xs-1'></th>
                                                </tr>
                                                </thead>
                                                <tbody>
                                                    {foreach $product_costs as $pc}
                                                        <tr>
                                                            <td> <input type="text" value="{$pc['cost_date']}" class="form-control datepicker" name="cost_date[]" datepicker data-date-format="yyyy-mm-dd" data-auto-close="true"> </td>
                                                            <td> <input type="text"  name="cost_current_balance[]" value="{$pc['current_balance']}"  class="form-control amount" autocomplete="off" data-a-sign="{$_c['currency_code']} "  data-a-dec="{$_c['dec_point']}" data-a-sep="{$_c['thousands_sep']}" data-d-group="2"></td>
                                                            <td> <input type="text"  name="cost_previus_balance[]" value="{$pc['previus_balance']}" class="form-control amount" autocomplete="off" data-a-sign="{$_c['currency_code']} "  data-a-dec="{$_c['dec_point']}" data-a-sep="{$_c['thousands_sep']}" data-d-group="2"></td>
                                                            <td> <input type="text"  name="cost_recoverable_taxes[]" value="{$pc['recoverable_taxes']}" class="form-control amount" autocomplete="off" data-a-sign="{$_c['currency_code']} "  data-a-dec="{$_c['dec_point']}" data-a-sep="{$_c['thousands_sep']}" data-d-group="2"></td>
                                                            <td> <input type="text"  value="{$pc['cost_price']}" name="cost_price[]"  class="form-control amount" autocomplete="off" data-a-sign="{$_c['currency_code']} "  data-a-dec="{$_c['dec_point']}" data-a-sep="{$_c['thousands_sep']}" data-d-group="2"></td>
                                                            <td> <input type="text"   value="{$pc['cost_average']}" name="cost_average[]"  class="form-control amount" autocomplete="off" data-a-sign="{$_c['currency_code']} "  data-a-dec="{$_c['dec_point']}" data-a-sep="{$_c['thousands_sep']}" data-d-group="2"></td>
                                                            <td> <input type="text" value="{$pc['sale_price']}"  name="cost_sales_price[]"  class="form-control amount" autocomplete="off" data-a-sign="{$_c['currency_code']} "  data-a-dec="{$_c['dec_point']}" data-a-sep="{$_c['thousands_sep']}" data-d-group="2"></td>
                                                            <td class="col-xs-1"> <button class="btn btn-danger btn-xs delete_cost_item" ><i class="fa fa-trash"></i> </button></td></tr>
                                                        
                                                    {/foreach}
                                                </tbody>
                                            </table>
                                                <button type="button" class="btn btn-primary cost-add" ><i
                                                    class="fa fa-plus"></i> {$_L['Enter new cost price']}</button> 
                                        </div>
                                
                                </div>
                            </div>
                            
                            <div id="comments" class="tab-pane fade in ">
                                <div class="row" style="margin-top:20px">    
                                        <div class="col-md-12 col-sm-12 col-xs-12">
                                            <label class="control-label" for="product_notes">{$_L['General product notes']}</label>
                                            <textarea id="product_notes" name="product_notes" class="form-control" rows="15">{$product['notes']}</textarea>
                                            <span class="help-block">{$_L['Internal usage information. It is not displayed to the client.']}</span>
                                    </div> 
                                </div>
                            </div>
                                    
                            {if isset($pluginsInstalled['module_med_scheduling'])}
                            <div id="tuss_table" class="tab-pane fade in {if isset($pluginsInstalled['module_med_scheduling'])}active{/if}">
                                <div class="row" style="margin-top:20px">    
                                        <div class="col-md-12 col-sm-12 col-xs-12">
                                            <label class="control-label" for="expense_item">{$_L['Scheduling TUSS table'] }</label>
                                            <select id="expense_item" name="expense_item"  class="form-control">
                                                {if isset($product['tiss_procedures_id'])}
                                                <option selected value="{$product['tiss_procedures_id']}">{$product['tiss_procedures_id']} - {$product['description']}</option>
                                                {else}
                                                <option selected value="0">{$_L['Select']}</option>
                                                {/if}
                                            </select>
                                    </div> 
                                </div>
                            </div>
                            {/if}
                        </div>    


                        <div class="row" style="margin-top:20px">  
                            <div class=" col-md-12 form-group">
                                <div class="col-md-offset-2 col-lg-10">
                                    <button class="md-btn md-btn-primary waves-effect waves-light" type="submit" id="submit"><i class="fa fa-check"></i> {$_L['Save']}</button> | <a href="{$_url}ps/p-list/">{$_L['Or Cancel']}</a>
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>

</div>
                                
                         


               
                                
<div id="modal_add_item" class="modal fade-scale" tabindex="-1" data-width="600" style="display: none;">
    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
        <h4 class="modal-title">{$_L['Attach File']}</h4>
    </div>
    <div class="modal-body">
        <div class="row">
            <div class="col-md-12">
                <form action="" class="dropzone" id="upload_container">
                    <div class="dz-message">
                        <h3> <i class="fa fa-cloud-upload"></i>  {$_L['Drop File Here']}</h3>
                        <br />
                        <span class="note">{$_L['Click to Upload']}</span>
                    </div>
                </form>
            </div>
        </div>
    </div>
    <div class="modal-footer">
        <button type="button" data-dismiss="modal" class="btn btn-danger">Close</button>
    </div>
</div>
                    

                                    
<input type="hidden" id="_dec_point" name="_dec_point" value="{$_c['dec_point']}">
<input type="hidden" value="{$_c['thousands_sep']}" name="_mil_point" id="_mil_point">
<input type="hidden" value="{$_c['currency_code']}" name="_curr_code" id="_curr_code">
<input type="hidden" value="{$dataAtual}" id="data_atual">

                                    
{include file="sections/footer.tpl"}

Anon7 - 2022
AnonSec Team