// Update Accounting for export #2

This commit is contained in:
vSchoener
2011-11-15 14:45:51 +00:00
parent 8c11276d3e
commit ea42e170ce
4 changed files with 209 additions and 0 deletions
@@ -0,0 +1,60 @@
{*
* 2007-2011 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2011 PrestaShop SA
* @version Release: $Revision: 9856 $
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<script type="text/javascript">
$(document).ready(function() {
$('.datepicker').datepicker({
prevText: '',
nextText: '',
dateFormat: 'yy-mm-dd'
});
});
</script>
{if $existingExport}
<div class="hint" style="display:block;">
{l s='The last export has been for this section:'}
<a href="{$smarty.server.REQUEST_URI}&download={$type}">{l s='Click here'}</a>
</div>
<br />
{/if}
<label for="clientPrefix">{l s='Client prefix:'}</label>
<div class="margin-form">
<input type="text" value="{$clientPrefix}" name="clientPrefix" />
</div>
<label for="beginDate">{l s='Begin to:'}</label>
<div class="margin-form">
<input class="datepicker" id="beginDate" type="text" value="" name="beginDate" />
</div>
<label for="endDate">{l s='End to:'}</label>
<div class="margin-form">
<input class="datepicker" id="endDate" type="text" value="" name="endDate" />
</div>
@@ -0,0 +1,42 @@
{*
* 2007-2011 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2011 PrestaShop SA
* @version Release: $Revision: 9856 $
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div class="formAccountingExport" id="block_global_export">
<fieldset>
<legend>{$title}</legend>
<form action="{$smarty.server.REQUEST_URI}" method="POST">
{include file="$pathAccountExportTpl/common_form.tpl"}
<label for="clientPrefix">{l s='Journal:'}</label>
<div class="margin-form">
<input type="text" name="journal" />
</div>
<div class="margin-form">
<input type="submit" class="button" name="submitAccountingExportType" />
<input type="hidden" name="exportType" value="global_export"/>
</div>
</form>
</fieldset>
</div>
@@ -0,0 +1,68 @@
{*
* 2007-2011 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2011 PrestaShop SA
* @version Release: $Revision: 9856 $
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<script type="text/javascript">
$(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');
});
</script>
{foreach from=$preventList key=name item=preventType}
{if !empty($preventType)}
<div class="{$name}">
{foreach from=$preventType item=translationPrevent}
{$translationPrevent}
{/foreach}
</div>
{/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>
@@ -0,0 +1,39 @@
{*
* 2007-2011 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2011 PrestaShop SA
* @version Release: $Revision: 9856 $
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div class="formAccountingExport" id="block_reconciliation_export">
<fieldset>
<legend>{$title}</legend>
<form action="{$smarty.server.REQUEST_URI}" method="POST">
{include file="$pathAccountExportTpl/common_form.tpl"}
<div class="margin-form">
<input type="submit" class="button" name="submitAccountingExportType" />
<input type="hidden" name="exportType" value="reconciliation_export"/>
</div>
</form>
</fieldset>
</div>