Modification de la facture pour intégrer taxe sur frais de port

This commit is contained in:
2020-12-09 15:08:03 +01:00
parent bd13055424
commit 5bffee869e
3 changed files with 24 additions and 22 deletions

View File

@@ -105,6 +105,9 @@
.table-3-module span {
font-size: 11px;
}
.section {
background-color: orange;
}
.align-left {
text-align: left;
@@ -324,8 +327,10 @@
<tr>
<td class="table-3-1"><p>{intl l="Total products without tax"}</p></td>
<td class="table-3-1 align-right"><p>{format_money number={$totalItemsPriceWtTaxes} currency_id=$CURRENCY}</p></td>
<!-- <td class="table-3-1 align-right"><p>{format_money number={$TOTAL_AMOUNT - $POSTAGE_UNTAXED} currency_id=$CURRENCY}</p></td>-->
</tr>
<!-- Séparateur //-->
<tr><td colspan="2" class="table-3-1"></td></tr>
{strip}
{capture name="tax"}
{foreach $taxes as $name=>$prices}
@@ -350,12 +355,10 @@
{/capture}
{/strip}
<!-- Sous-total HT -->
<!-- tail des taxes -->
<tr>
<td class="table-3-1"><p>{intl l="Total without tax"}</p></td>
<td class="table-3-1 align-right"><p>{format_money number={$totalItemsPriceWtTaxes} currency_id=$CURRENCY}</p></td>
<td colspan="2" class="table-3-1 section">tail des taxes</td>
</tr>
<!-- Total taxes -->
{if $smarty.capture.tax ne ""}
<tr>
@@ -365,21 +368,21 @@
{$smarty.capture.tax nofilter}
{/if}
<!-- Total TTC -->
<tr>
<td class="table-3-1" ><p>{intl l="Total products with tax"}</p></td>
<td class="table-3-1 align-right"><p>{format_money number={$totalItemsPriceWtTaxes + $TOTAL_TAX} currency_id=$CURRENCY}</p></td>
</tr>
<!-- Frais de livraison TTC -->
<tr>
<td class="table-3-1"><p>{intl l="Postage"}</p></td>
<td class="table-3-1 align-right"><p>{format_money number=$POSTAGE currency_id=$CURRENCY}</p></td>
</tr>
<!-- Total TTC -->
<!-- Séparateur //-->
<tr><td colspan="2" class="table-3-1"></td></tr>
<!-- Total produits TTC -->
<tr>
<td class="table-3-1" ><p>{intl l="Total with tax"}</p></td>
<td class="table-3-1 align-right"><p>{format_money number={$totalItemsPriceWtTaxes + $TOTAL_TAX + $POSTAGE} currency_id=$CURRENCY}</p></td>
<td class="table-3-1 align-right"><p>{format_money number=$TOTAL_TAXED_AMOUNT-$POSTAGE currency_id=$CURRENCY}</p></td>
</tr>
<!-- Frais de livraison TTC -->
<tr>
<td class="table-3-1"><p>{intl l="Postage TTC"}</p></td>
<td class="table-3-1 align-right"><p>{format_money number=$POSTAGE currency_id=$CURRENCY}</p></td>
</tr>
<!-- Remise -->
{if $DISCOUNT}
<tr>
@@ -389,7 +392,7 @@
{/if}
<!-- Total -->
<tr>
<td class="table-3-1" style="background:#f6993c;"><h3 style="color:white;">{intl l="Total"}</h3></td>
<td class="table-3-1" style="background:#f6993c;"><h3 style="color:white;">{intl l="Total to pay"}</h3></td>
<td class="table-3-1 align-right" style="background:#f6993c;"><h3 style="color:white;">{format_money number=$TOTAL_TAXED_AMOUNT currency_id=$CURRENCY}</h3></td>
</tr>
</table>