[-] BO : Make a lot of changement on the Accounting (accouting plan / configuration / customer)
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13987 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -24,74 +24,6 @@
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
function validateInputDate(input, displayError)
|
||||
{
|
||||
{literal}
|
||||
dateRegex = /^\d{4}-\d{1,2}-\d{1,2}$/
|
||||
{/literal}
|
||||
|
||||
if (!input.val().match(dateRegex))
|
||||
{
|
||||
input.parent().find('span.input-error').fadeIn('fast');
|
||||
return false;
|
||||
}
|
||||
input.parent().find('span.input-error').css('display','none');
|
||||
return true;
|
||||
}
|
||||
|
||||
function validateAccountingForm()
|
||||
{
|
||||
validation = true;
|
||||
|
||||
$('span.input-error').css('display', 'none');
|
||||
$('.datepicker:visible').each(function() {
|
||||
if (!(validateInputDate($(this), true)))
|
||||
validation = false;
|
||||
});
|
||||
|
||||
return validation;
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
$('#export_menu').find('a').each(function() {
|
||||
$(this).click(function() {
|
||||
blockID = 'block_' + $(this).attr('id');
|
||||
if (!$('#' + blockID).is(':visible'))
|
||||
{
|
||||
|
||||
$('.formAccountingExport:visible').each(function() {
|
||||
$(this).fadeOut('fast', function() {
|
||||
$('#' + blockID).fadeIn('fast');
|
||||
});
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
$('#' + '{$defaultType}').fadeIn('fast');
|
||||
|
||||
$('.datepicker').each(function() {
|
||||
$(this).change(function() {
|
||||
validateInputDate($(this), true);
|
||||
});
|
||||
$(this).datepicker({
|
||||
prevText: '',
|
||||
nextText: '',
|
||||
dateFormat: 'yy-mm-dd'
|
||||
});
|
||||
});
|
||||
|
||||
$('.formAccountingExport form input[type="submit"]').each(function()
|
||||
{
|
||||
$(this).click(function() {
|
||||
return validateAccountingForm();
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
{foreach from=$preventList key=name item=preventType}
|
||||
{if !empty($preventType)}
|
||||
<div class="{$name}">
|
||||
@@ -102,16 +34,4 @@
|
||||
{/if}
|
||||
{/foreach}
|
||||
|
||||
<div id="export_menu">
|
||||
<div class="toolbarBox">
|
||||
<div class="pageTitle">
|
||||
<h3>
|
||||
<span id="current_obj" style="font-weight: normal;">{l s='Export:'}</span>
|
||||
</h3>
|
||||
{l s='Select which export you want to do:'}<br />
|
||||
{foreach from=$exportTypeList item=export}
|
||||
<a id="{$export['type']}" class="button" href="javascript:void(0);">{$export['name']}</a>
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user