1. {*
  2. * 2007-2013 PrestaShop
  3. *
  4. * NOTICE OF LICENSE
  5. *
  6. * This source file is subject to the Academic Free License (AFL 3.0)
  7. * that is bundled with this package in the file LICENSE.txt.
  8. * It is also available through the world-wide-web at this URL:
  9. * http://opensource.org/licenses/afl-3.0.php
  10. * If you did not receive a copy of the license and are unable to
  11. * obtain it through the world-wide-web, please send an email
  12. * to license@prestashop.com so we can send you a copy immediately.
  13. *
  14. * DISCLAIMER
  15. *
  16. * Do not edit or add to this file if you wish to upgrade PrestaShop to newer
  17. * versions in the future. If you wish to customize PrestaShop for your
  18. * needs please refer to http://www.prestashop.com for more information.
  19. *
  20. *  @author PrestaShop SA <contact@prestashop.com>
  21. *  @copyright  2007-2013 PrestaShop SA
  22. *  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
  23. *  International Registered Trademark & Property of PrestaShop SA
  24. *}
  25.  
  26. <script type="text/javascript">
  27.     var Customer = new Object();
  28.     var product_url = '{$link->getAdminLink('AdminProducts', true)|addslashes}';
  29.     var ecotax_tax_excl = parseFloat({$ecotax_tax_excl});
  30.     $(document).ready(function () {
  31.         Customer = {
  32.             "hiddenField": jQuery('#id_customer'),
  33.             "field": jQuery('#customer'),
  34.             "container": jQuery('#customers'),
  35.             "loader": jQuery('#customerLoader'),
  36.             "init": function() {
  37.                 jQuery(Customer.field).typeWatch({
  38.                     "captureLength": 1,
  39.                     "highlight": true,
  40.                     "wait": 50,
  41.                     "callback": Customer.search
  42.                 }).focus(Customer.placeholderIn).blur(Customer.placeholderOut);
  43.             },
  44.             "placeholderIn": function() {
  45.                 if (this.value == '{l s='All customers'}') {
  46.                     this.value = '';
  47.                 }
  48.             },
  49.             "placeholderOut": function() {
  50.                 if (this.value == '') {
  51.                     this.value = '{l s='All customers'}';
  52.                 }
  53.             },
  54.             "search": function()
  55.             {
  56.                 Customer.showLoader();
  57.                 jQuery.ajax({
  58.                     "type": "POST",
  59.                     "url": "{$link->getAdminLink('AdminCustomers')|addslashes}",
  60.                     "async": true,
  61.                     "dataType": "json",
  62.                     "data": {
  63.                         "ajax": "1",
  64.                         "token": "{getAdminToken tab='AdminCustomers'}",
  65.                         "tab": "AdminCustomers",
  66.                         "action": "searchCustomers",
  67.                         "customer_search": Customer.field.val()
  68.                     },
  69.                     "success": Customer.success
  70.                 });
  71.             },
  72.             "success": function(result)
  73.             {
  74.                 if(result.found) {
  75.                     var html = '<ul class="clearfix">';
  76.                     jQuery.each(result.customers, function() {
  77.                         html += '<li><a class="fancybox" href="{$link->getAdminLink('AdminCustomers')}&id_customer='+this.id_customer+'&viewcustomer&liteDisplaying=1">'+this.firstname+' '+this.lastname+'</a>'+(this.birthday ? ' - '+this.birthday:'')+'<br/>';
  78.                         html += '<a href="mailto:'+this.email+'">'+this.email+'</a><br />';
  79.                         html += '<a onclick="Customer.select('+this.id_customer+', \''+this.firstname+' '+this.lastname+'\'); return false;" href="#" class="button">{l s='Choose'}</a></li>';
  80.                     });
  81.                     html += '</ul>';
  82.                 }
  83.                 else
  84.                     html = '<div class="warn">{l s='No customers found'}</div>';
  85.                 Customer.hideLoader();
  86.                 Customer.container.html(html);
  87.                 jQuery('.fancybox', Customer.container).fancybox();
  88.             },
  89.             "select": function(id_customer, fullname)
  90.             {
  91.                 Customer.hiddenField.val(id_customer);
  92.                 Customer.field.val(fullname);
  93.                 Customer.container.empty();
  94.                 return false;
  95.             },
  96.             "showLoader": function() {
  97.                 Customer.loader.fadeIn();
  98.             },
  99.             "hideLoader": function() {
  100.                 Customer.loader.fadeOut();
  101.             }
  102.         };
  103.         Customer.init();
  104.     });
  105. </script>
  106.  
  107. {* END CUSTOMER AUTO-COMPLETE / TO REFACTO *}
  108. <input type=hidden name=submitted_tabs[] value=Prices>
  109.  
  110. <h4>{l s='Product price'}</h4>
  111. <div class=separation></div>
  112. <div class="alert alert-info">
  113.     <span class="glyphicon glyphicon-info-sign"></span> {l s='You must enter either the pre-tax retail price, or the retail price with tax. The input field will be automatically calculated.'}
  114. </div>
  115.  
  116. {include file="controllers/products/multishop/check_fields.tpl" product_tab="Prices"}
  117. <table class="table table-hover">
  118.     <tr>
  119.         <td class=col-lg-2>
  120.             {include file="controllers/products/multishop/checkbox.tpl" field="wholesale_price" type="default"}
  121.             <label for=wholesale_price>{l s='Pre-tax wholesale price:'}</label>
  122.         </td>
  123.         <td>
  124.             <div class=col-lg-2>
  125.                 <div class=input-group>
  126.                     {if $currency->prefix}<span class=input-group-addon>{$currency->prefix}</span>{/if}
  127.                     <input size=11 maxlength=14 name=wholesale_price id=wholesale_price type=text class=form-control value="{{toolsConvertPrice price=$product->wholesale_price}|string_format:'%.2f'}" onchange="this.value = this.value.replace(/,/g, '.');">
  128.                     {if $currency->suffix}<span class=input-group-addon>{$currency->suffix}</span>{/if}
  129.                 </div>
  130.             </div>
  131.             <div class=col-lg-6>
  132.                 <small class=text-primary>{l s='Wholesale price'}</small>
  133.             </div>
  134.         </td>
  135.     </tr>
  136.     <tr>
  137.         <td>
  138.             {include file="controllers/products/multishop/checkbox.tpl" field="price" type="price"}
  139.             <label for=priceTE>{l s='Pre-tax retail price:'}</label>
  140.         </td>
  141.         <td>
  142.             <div class=col-lg-2>
  143.                 <div class=input-group>
  144.                     {if $currency->prefix}<span class=input-group-addon>{$currency->prefix}</span>{/if}
  145.                     <input size=11 maxlength=14 id=priceTE name=price_displayed type=text class=form-control value="{{toolsConvertPrice price=$product->price}|string_format:'%.2f'}" onchange="noComma('priceTE'); $('#priceTEReal').val(this.value);" onkeyup="$('#priceType').val('TE'); $('#priceTEReal').val(this.value.replace(/,/g, '.')); if (isArrowKey(event)) return; calcPriceTI();">
  146.                     <input type=hidden  id=priceTEReal name=price value="{toolsConvertPrice price=$product->price}" />
  147.                     {if $currency->suffix}<span class=input-group-addon>{$currency->suffix}</span>{/if}
  148.                 </div>
  149.             </div>
  150.             <div class=col-lg-6>
  151.                 <small class=text-primary>{l s='The pre-tax retail price to sell this product'}</small>
  152.             </div>
  153.         </td>
  154.     </tr>
  155.     <tr>
  156.         <td>
  157.             {include file="controllers/products/multishop/checkbox.tpl" field="id_tax_rules_group" type="default"}
  158.             <label for=id_tax_rules_group>{l s='Tax rule:'}</label>
  159.         </td>
  160.         <td>
  161.             <script>
  162.                 noTax = {if $tax_exclude_taxe_option}true{else}false{/if};
  163.                 taxesArray = new Array ();
  164.                 taxesArray[0] = 0;
  165.                 {foreach $tax_rules_groups as $tax_rules_group}
  166.                     {if isset($taxesRatesByGroup[$tax_rules_group['id_tax_rules_group']])}
  167.                     taxesArray[{$tax_rules_group.id_tax_rules_group}] = {$taxesRatesByGroup[$tax_rules_group['id_tax_rules_group']]};
  168.                         {else}
  169.                     taxesArray[{$tax_rules_group.id_tax_rules_group}] = 0;
  170.                     {/if}
  171.                 {/foreach}
  172.                 ecotaxTaxRate = {$ecotaxTaxRate / 100};
  173.             </script>
  174.             <span {if $tax_exclude_taxe_option}style=display:none{/if} >
  175.                 <div class=col-lg-2>
  176.                     <div class=input-group>
  177.                          <select onChange="javascript:calcPrice(); unitPriceWithTax('unit');" name=id_tax_rules_group id=id_tax_rules_group {if $tax_exclude_taxe_option}disabled=disabled{/if}>
  178.                             <option value=0>{l s='No Tax'}</option>
  179.                             {foreach from=$tax_rules_groups item=tax_rules_group}
  180.                                 <option value="{$tax_rules_group.id_tax_rules_group}" {if $product->getIdTaxRulesGroup() == $tax_rules_group.id_tax_rules_group}selected=selected{/if}>
  181.                                     {$tax_rules_group['name']|htmlentitiesUTF8}
  182.                                 </option>
  183.                             {/foreach}
  184.                         </select>
  185.                         {if $tax_exclude_taxe_option}
  186.                             <small class=text-danger>
  187.                                 {l s='Taxes are currently disabled'}</span>
  188.                                 (<strong><a href="{$link->getAdminLink('AdminTaxes')|escape:'htmlall':'UTF-8'}">{l s='Tax options'}</a></strong>)
  189.                             </span>
  190.                             <input type=hidden value="{$product->getIdTaxRulesGroup()}" name=id_tax_rules_group />
  191.                         {/if}
  192.                     </div>
  193.                 </div>
  194.                 <div class=col-lg-6>
  195.                     <a class="btn btn-primary confirm_leave" href="{$link->getAdminLink('AdminTaxRulesGroup')|escape:'htmlall':'UTF-8'}&addtax_rules_group&id_product={$product->id}">
  196.                         <span class="glyphicon glyphicon-plus-sign"></span> {l s='Create'}
  197.                     </a>
  198.                 </div>
  199.             </span>
  200.         </td>
  201.     </tr>
  202.     <tr {if !$ps_use_ecotax} style=display:none{/if}>
  203.         <td>
  204.             {include file="controllers/products/multishop/checkbox.tpl" field="ecotax" type="default"}
  205.             <label for=ecotax>{l s='Eco-tax (tax incl.):'}</label>
  206.         </td>
  207.         <td>
  208.             <div class=col-lg-2>
  209.                 <div class=input-group>
  210.                     {if $currency->prefix}<span class=input-group-addon>{$currency->prefix}</span>{/if}
  211.                     <input size=11 maxlength=14 id=ecotax name=ecotax type=text class=form-control value="{$product->ecotax|string_format:'%.2f'}" onkeyup="$('#priceType').val('TI');if (isArrowKey(event))return; calcPriceTE(); this.value = this.value.replace(/,/g, '.'); if (parseInt(this.value) > getE('priceTE').value) this.value = getE('priceTE').value; if (isNaN(this.value)) this.value = 0;">
  212.                     {if $currency->suffix}<span class=input-group-addon>{$currency->suffix}</span>{/if}
  213.                 </div>
  214.             </div>
  215.             <div class=col-lg-6>
  216.                 <small class=text-primary>({l s='already included in price'})</small>
  217.             </div>
  218.         </td>
  219.     </tr>
  220.     <tr {if !$country_display_tax_label || $tax_exclude_taxe_option}style=display:none{/if} >
  221.         <td>
  222.             <label for=priceTI>{l s='Retail price with tax:'}</label>
  223.         </td>
  224.         <td>
  225.             <div class=col-lg-2>
  226.                 <div class=input-group>
  227.                     {if $currency->prefix}<span class=input-group-addon>{$currency->prefix}</span>{/if}
  228.                     <input size=11 maxlength=14 id=priceTI type=text class=form-control onchange="noComma('priceTI');" onkeyup="$('#priceType').val('TI');if (isArrowKey(event)) return;  calcPriceTE();">
  229.                     <input id=priceType name=priceType type=hidden value=TE />
  230.                     {if $currency->suffix}<span class=input-group-addon>{$currency->suffix}</span>{/if}
  231.                 </div>
  232.             </div>
  233.         </td>
  234.     </tr>
  235.     <tr id=tr_unit_price>
  236.         <td>
  237.             {include file="controllers/products/multishop/checkbox.tpl" field="unit_price" type="unit_price"}
  238.             <label for=unit_price>{l s='Unit price:'}</label>
  239.         </td>
  240.         <td>
  241.             <div class=col-lg-2>
  242.                 <div class=input-group>
  243.                     {if $currency->prefix}<span class=input-group-addon>{$currency->prefix}</span>{/if}
  244.                     <input size=11 maxlength=14 id=unit_price name=unit_price type=text value="{$unit_price|string_format:'%.2f'}" onkeyup="if (isArrowKey(event)) return ;this.value = this.value.replace(/,/g, '.'); unitPriceWithTax('unit');">
  245.                     {if $currency->suffix}<span class=input-group-addon>{$currency->suffix}</span>{/if}
  246.  
  247.                 </div>
  248.             </div>
  249.             <div class="col-lg-1 text-center">
  250.                 <strong class=text-primary>{l s='per'}</strong>
  251.             </div>
  252.             <div class=col-lg-1>
  253.                 <input size=6 maxlength=10 id=unity name=unity type=text value="{$product->unity|htmlentitiesUTF8}" onkeyup="if (isArrowKey(event)) return ;unitySecond();" onchange="unitySecond();">
  254.             </div>
  255.             <div class=col-lg-4>
  256.                 {if $ps_tax && $country_display_tax_label}
  257.                     <span class=text-primary>{l s='or'} {$currency->prefix} 0.00{$currency->suffix} {l s='per'} {$product->unity} {l s='with tax'}</span><br>
  258.                 {/if}
  259.                 <small class=text-primary><em>{l s='e.g. per lb.'}</em></small>
  260.             </div>
  261.         </td>
  262.     </tr>
  263.     <tr>
  264.         <td>
  265.             {include file="controllers/products/multishop/checkbox.tpl" field="on_sale" type="default"}
  266.             <label>&nbsp;</label>
  267.         </td>
  268.         <td>
  269.             <div class=col-lg-8>
  270.                 <input type=checkbox name=on_sale id=on_sale {if $product->on_sale}checked=checked{/if} value=1>&nbsp;
  271.                 {l s='Display the "on sale" icon on the product page, and in the text found within the product listing.'}          
  272.             </div>
  273.         </td>
  274.     </tr>
  275.     <tr>
  276.         <td>
  277.             <label>{l s='Final retail price:'}</label>
  278.         </td>
  279.         <td>
  280.             <div class="col-lg-8 text-success">
  281.                 <strong>
  282.                     {$currency->prefix}<span id=finalPrice>0.00</span>{$currency->suffix}<span {if $ps_tax}style=display:none{/if}> ({l s='tax incl.'})</span>
  283.                 </strong>
  284.                 <strong {if $ps_tax}style=display:none{/if} >
  285.                     {if $country_display_tax_label} / {/if}
  286.                     {$currency->prefix}<span id=finalPriceWithoutTax></span>{$currency->suffix} {if $country_display_tax_label}({l s='tax excl.'}){/if}
  287.                 </strong>          
  288.             </div>
  289.         </td>
  290.     </tr>
  291. </table>
  292.  
  293.  
  294. {if isset($specificPriceModificationForm)}
  295.     <h4>{l s='Specific prices'}</h4>
  296.     <div class=separation></div>
  297.  
  298.     <div class="alert alert-info">
  299.         <span class="glyphicon glyphicon-info-sign"></span> {l s='You can set specific prices for clients belonging to different groups, different countries, etc...'}
  300.     </div>
  301.  
  302.     <a class="btn btn-primary" href=# id=show_specific_price>{l s='Add a new specific price'} <span class="glyphicon glyphicon-chevron-down"></span></a>
  303.     <a class="btn btn-primary" href=# id=hide_specific_price style=display:none>{l s='Cancel new specific price'} <span class="glyphicon glyphicon-chevron-up"></span></a>
  304.  
  305.     <br/><br/>
  306.     <script type="text/javascript">
  307.     var product_prices = new Array();
  308.     {foreach from=$combinations item='combination'}
  309.         product_prices['{$combination.id_product_attribute}'] = '{$combination.price|@addcslashes:'\''}';
  310.     {/foreach}
  311.     </script>
  312.  
  313.     <div id=add_specific_price style=display:none>
  314.         <script type="text/javascript">
  315.             $(document).ready(function(){
  316.                 product_prices['0'] = $('#sp_current_ht_price').html();
  317.                 $('#id_product_attribute').change(function() {
  318.                     $('#sp_current_ht_price').html(product_prices[$('#id_product_attribute option:selected').val()]);
  319.                 });
  320.                 $('#leave_bprice').click(function() {
  321.                     if (this.checked)
  322.                         $('#sp_price').attr('disabled','disabled');
  323.                     else
  324.                         $('#sp_price').removeAttr('disabled');
  325.                 });
  326.                 $('.datepicker').datetimepicker({
  327.                     prevText:'',
  328.                     nextText:'',
  329.                     dateFormat:'yy-mm-dd',
  330.                     currentText:'{l s='Now'}',
  331.                     closeText:'{l s='Done'}',
  332.                     ampm:false,
  333.                     amNames:['AM', 'A'],
  334.                     pmNames:['PM', 'P'],
  335.                     timeFormat:'hh:mm:ss tt',
  336.                     timeSuffix:'',
  337.                     timeOnlyTitle:'{l s='Choose Time'}',
  338.                     timeText:'{l s='Time'}',
  339.                     hourText:'{l s='Hour'}',
  340.                     minuteText:'{l s='Minute'}',
  341.                 });
  342.             });
  343.         </script>
  344.         <table class="table table-hover">
  345.             <tr>
  346.                 <td class=col-lg-2>
  347.                     <label>{l s='For:'}</label>
  348.                 </td>
  349.                 <td>
  350.                     {if !$multi_shop}
  351.                         <input type=hidden name=sp_id_shop value=0>
  352.                     {else}
  353.                         <div class=col-lg-2>
  354.                             <select name=sp_id_shop id=sp_id_shop>
  355.                                 {if !$admin_one_shop}<option value=0>{l s='All shops'}</option>{/if}
  356.                                 {foreach from=$shops item=shop}
  357.                                     <option value="{$shop.id_shop}">{$shop.name|htmlentitiesUTF8}</option>
  358.                                 {/foreach}
  359.                             </select>
  360.                         </div>
  361.                     {/if}
  362.                     <div class=col-lg-2>
  363.                         <select name=sp_id_currency id=spm_currency_0 onchange="changeCurrencySpecificPrice(0);">
  364.                             <option value="0">{l s='All currencies'}</option>
  365.                             {foreach from=$currencies item=curr}
  366.                                 <option value="{$curr.id_currency}">{$curr.name|htmlentitiesUTF8}</option>
  367.                             {/foreach}
  368.                         </select>
  369.                     </div>
  370.                     <div class=col-lg-2>
  371.                         <select name=sp_id_country id=sp_id_country>
  372.                             <option value=0>{l s='All countries'}</option>
  373.                             {foreach from=$countries item=country}
  374.                                 <option value="{$country.id_country}">{$country.name|htmlentitiesUTF8}</option>
  375.                             {/foreach}
  376.                         </select>
  377.                     </div>
  378.                     <div class=col-lg-2>
  379.                         <select name=sp_id_group id=sp_id_group>
  380.                             <option value=0>{l s='All groups'}</option>
  381.                             {foreach from=$groups item=group}
  382.                                 <option value="{$group.id_group}">{$group.name}</option>
  383.                             {/foreach}
  384.                         </select>
  385.                     </div>
  386.                 </td>
  387.             </tr>
  388.             <tr>
  389.                 <td>
  390.                     <label>{l s='Customer:'}</label>
  391.                 </td>
  392.                 <td>
  393.                     <div class=col-lg-2>
  394.                         <input type=hidden name=sp_id_customer id=id_customer value=0>
  395.                         <input type=text name=customer value="{l s='All customers'}" id=customer autocomplete=off>                     
  396.                     </div>
  397.                     <div class=col-lg-5>
  398.                         <img src=../img/admin/field-loader.gif id=customerLoader style=display:none>
  399.                         <div id=customers></div>
  400.                     </div>
  401.                 </td>
  402.             </tr>
  403.             {if $combinations|@count != 0}
  404.                 <tr>
  405.                     <td>
  406.                         <label>{l s='Combination:'}</label>
  407.                     </td>
  408.                     <td>
  409.                         <div class=col-lg-2>
  410.                             <select id=sp_id_product_attribute name=sp_id_product_attribute>
  411.                                 <option value="0">{l s='Apply to all combinations'}</option>
  412.                                 {foreach from=$combinations item='combination'}
  413.                                     <option value="{$combination.id_product_attribute}">{$combination.attributes}</option>
  414.                                 {/foreach}
  415.                             </select>
  416.                         </div>
  417.                     </td>
  418.                 </tr>
  419.             {/if}
  420.             <tr>
  421.                 <td>
  422.                     <label>{l s='Available from:'}</label>
  423.                 </td>
  424.                 <td>
  425.                     <div class=col-lg-2>
  426.                         <input class=datepicker type=text name=sp_from id=sp_from>
  427.                     </div>
  428.                     <div class="col-lg-1 text-center">
  429.                         <strong class=text-primary>{l s='to'}</strong>
  430.                     </div>
  431.                     <div class=col-lg-2>
  432.                         <input class=datepicker type=text name=sp_to id=sp_to>
  433.                     </div>
  434.                 </td>
  435.             </tr>
  436.             <tr>
  437.                 <td>
  438.                     <label>{l s='Starting at'}</label>
  439.                 </td>
  440.                 <td>
  441.                     <div class=col-lg-2>
  442.                         <div class=input-group>
  443.                             <input type=text name=sp_from_quantity value=1 class=form-control size=3>
  444.                             <span class=input-group-addon>{l s='unit'}</span>
  445.                         </div>
  446.                     </div>
  447.                 </td>
  448.             </tr>
  449.             <tr>
  450.                 <td>
  451.                     <label>{l s='Product price'}
  452.                         {if $country_display_tax_label}
  453.                             {l s='(tax excl.):'}
  454.                         {/if}
  455.                     </label>
  456.                 </td>
  457.                 <td>
  458.                     <div class=col-lg-2>
  459.                         <div class=input-group>
  460.                             {if $currency->prefix}<span id=spm_currency_sign_pre_0 class=input-group-addon>{$currency->prefix}</span>{/if}
  461.                             <input type=text disabled=disabled name=sp_price id=sp_price class=form-control value="{$product->price|string_format:'%.2f'}" size=11>
  462.                             {if $currency->suffix}<span id=spm_currency_sign_post_0 class=input-group-addon>{$currency->suffix}</span>{/if}
  463.                         </div>
  464.                     </div>
  465.                     <div class=col-lg-6>
  466.                         <div class=input-group>
  467.                             <input id=leave_bprice type=checkbox value=1 checked=checked name=leave_bprice> {l s='Leave base price:'}
  468.                         </div>
  469.                     </div>
  470.                 </td>
  471.             </tr>
  472.             <tr>
  473.                 <td>
  474.                     <label>{l s='Apply a discount of:'}</label>
  475.                 </td>
  476.                 <td>
  477.                     <div class=col-lg-2>
  478.                         <input type=text name=sp_reduction value=0.00 size=11>
  479.                     </div>
  480.                     <div class=col-lg-2>
  481.                         <select name=sp_reduction_type>
  482.                             <option selected=selected>-</option>
  483.                             <option value=amount>{l s='Amount'}</option>
  484.                             <option value=percentage>{l s='Percentage'}</option>
  485.                         </select>
  486.                     </div>
  487.                     <div class=col-lg-4>
  488.                         <small class=text-primary>{l s='The discount is applied after the tax'}</small>
  489.                     </div>
  490.                 </td>
  491.             </tr>
  492.         </table>
  493.     </div>
  494.  
  495.     <table class="table table-hover" id=specific_prices_list>
  496.         <thead>
  497.             <tr>
  498.                 <th>{l s='Rule'}</th>
  499.                 <th>{l s='Combination'}</th>
  500.                 {if $multi_shop}<th>{l s='Shop'}</th>{/if}
  501.                 <th>{l s='Currency'}</th>
  502.                 <th>{l s='Country'}</th>
  503.                 <th>{l s='Group'}</th>
  504.                 <th>{l s='Customer'}</th>
  505.                 <th>{l s='Fixed price'}</th>
  506.                 <th>{l s='Impact'}</th>
  507.                 <th>{l s='Period'}</th>
  508.                 <th>{l s='From (quantity)'}</th>
  509.                 <th>{l s='Action'}</th>
  510.             </tr>
  511.         </thead>
  512.         <tbody>
  513.         {$specificPriceModificationForm}
  514.         <script type="text/javascript">
  515.             $(document).ready(function() {
  516.                 calcPriceTI();
  517.                 unitPriceWithTax('unit');
  518.             });
  519.         </script>
  520. {/if}