Jump to content

modifier facture avec détail paiement et restant dû


Recommended Posts

Bonjour à tous,

Je cherche de l'aide car je ne trouve pas.

J'apporte quelques modifications à mon rendu de facture.

Notamment dans paiement, j'ai des clients pro qui me règle en 2 fois (acompte et solde), aussi, dans le détail paiement, j'ai bien les x paiement effectué mais je voudrais ajouter en dessous le reste dû.

dans le fichier invoice.addresses-tab.tpl, j'ajoute la ligne total mais comment effectuer le calcul? je n'arrive même pas à faire le somme.

presta 1.7.7.0

voici le code:

<table id="payment-tab" width="100%" >
	<tr>
		<td class="payment center small grey bold" width="44%">{l s='Détail paiement(s) effectué' d='Shop.Pdf' pdf='true'}</td>
		<td class="payment left white" width="56%">
			<table width="100%" border="0">
				{foreach from=$order_invoice->getOrderPaymentCollection() item=payment}
					<tr>
						<td class="right small">{$payment->payment_method}</td>
						<td class="right small">{displayPrice currency=$payment->id_currency price=$payment->amount}</td>
				
					</tr>
				{/foreach}
				<tr>
						<td class="right small">{'Total'}</td>
						<td class="right small"> ???????????
                        
						</td>
					</tr>
			</table>
			
		</td>
	</tr>
</table>

 

Détail en plus, j'aimerai ajouter la date du règlement et l'id de la transaction sur chaque ligne

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...