[-] BO : fixed bug #PSFV-504 - Even if the invoices management is disabled, you can create an invoice

This commit is contained in:
aFolletete
2012-04-13 10:01:21 +00:00
parent 2735f855c9
commit 1ad006db8b
2 changed files with 7 additions and 2 deletions
@@ -118,11 +118,13 @@
</tr>
{/if}
{/if}
{foreachelse}
{foreachelse}
<tr>
<td colspan="5" class="center">
<h3>{l s='No document is available'}</h3>
{if $invoice_management_active}
<p><a class="button" href="{$currentIndex}&viewOrder&submitGenerateInvoice&id_order={$order->id}&token={$smarty.get.token|escape:'htmlall':'UTF-8'}">{l s='Generate invoice'}</a></p>
{/if}
</td>
</tr>
{/foreach}