Evolution n°0000019 pour remise en page des factures

This commit is contained in:
2020-03-28 09:46:23 +01:00
parent 239479d854
commit ed8206cbce
5 changed files with 80 additions and 63 deletions

View File

@@ -24,15 +24,49 @@
*}
<table id="total-tab" width="100%">
<tr>
<td class="grey">
{l s='Total (Tax excl.)' d='Shop.Pdf' pdf='true'}
</td>
<td class="white">
{displayPrice currency=$order->id_currency price=$footer.products_before_discounts_tax_excl}
</td>
</tr>
{if $footer.total_taxes > 0}
<tr>
<td class="grey">
{l s='Total Tax' d='Shop.Pdf' pdf='true'}
</td>
<td class="white">
{displayPrice currency=$order->id_currency price=$footer.total_taxes}
</td>
</tr>
{/if}
<tr>
<td class="grey" width="50%">
{l s='Total Products' d='Shop.Pdf' pdf='true'}
</td>
<td class="white" width="50%">
{displayPrice currency=$order->id_currency price=$footer.products_before_discounts_tax_excl}
{displayPrice currency=$order->id_currency price=$footer.products_before_discounts_tax_incl}
</td>
</tr>
{if !$order->isVirtual()}
<tr>
<td class="grey" width="50%">
{l s='Shipping Costs' d='Shop.Pdf' pdf='true'}
</td>
<td class="white" width="50%">
{if $footer.shipping_tax_excl > 0}
{displayPrice currency=$order->id_currency price=$footer.shipping_tax_incl}
{else}
{l s='Free Shipping' d='Shop.Pdf' pdf='true'}
{/if}
</td>
</tr>
{/if}
{if $footer.product_discounts_tax_excl > 0}
<tr>
@@ -40,25 +74,11 @@
{l s='Total Discounts' d='Shop.Pdf' pdf='true'}
</td>
<td class="white" width="50%">
- {displayPrice currency=$order->id_currency price=$footer.product_discounts_tax_excl}
- {displayPrice currency=$order->id_currency price=$footer.product_discounts_tax_incl}
</td>
</tr>
{/if}
{if !$order->isVirtual()}
<tr>
<td class="grey" width="50%">
{l s='Shipping Costs' d='Shop.Pdf' pdf='true'}
</td>
<td class="white" width="50%">
{if $footer.shipping_tax_excl > 0}
{displayPrice currency=$order->id_currency price=$footer.shipping_tax_excl}
{else}
{l s='Free Shipping' d='Shop.Pdf' pdf='true'}
{/if}
</td>
</tr>
{/if}
{if $footer.wrapping_tax_excl > 0}
<tr>
@@ -69,30 +89,13 @@
</tr>
{/if}
<tr class="bold">
<td class="grey">
{l s='Total (Tax excl.)' d='Shop.Pdf' pdf='true'}
</td>
<td class="white">
{displayPrice currency=$order->id_currency price=$footer.total_paid_tax_excl}
</td>
</tr>
{if $footer.total_taxes > 0}
<tr class="bold">
<td class="grey">
{l s='Total Tax' d='Shop.Pdf' pdf='true'}
</td>
<td class="white">
{displayPrice currency=$order->id_currency price=$footer.total_taxes}
</td>
</tr>
{/if}
<tr class="bold big">
<td class="grey">
{l s='Total' d='Shop.Pdf' pdf='true'}
{l s='Total (Tax incl.)' d='Shop.Pdf' pdf='true'}
</td>
<td class="white">
{displayPrice currency=$order->id_currency price=$footer.total_paid_tax_incl}
</td>
</tr>
</table>