{% load i18n %}
{% load base_filters %}

{% trans "Greetings:" %}<br /><br />
A transaction 
was processed {% if pt.status %}successfully{% endif %}{% if not pt.status %}but failed{% endif %} 
for the recurring payment ({{ pt.recurring_payment }}) 
on <a href="{{ site_url }}">{{ site_display_name }}</a>.
<br /><br />

<div><h2>{% trans "Transaction details:" %}</h2></div>

<div>
<table border="0" width="90%">
	
	<tr>
		<td>Payment amount:</td><td>{{ pt.amount|format_currency }}</td>
	</tr>
	<tr>
		<td>Result code:</td><td>{{ pt.result_code }}</td>
	</tr>
	<tr>
		<td>Message code:</td><td>{{ pt.message_code }}</td>
	</tr>
	<tr>
		<td>Message text:</td><td>{{ pt.message_text }}</td>
	</tr>
	<tr>
		<td>Transaction date:</td><td>{{ pt.create_dt|date }}</td>
	</tr>
	{% if user_in_texas %}
	<tr>
		<td style="color: red;">State:</td><td style="color: red;">{{ pt.payment.state }}</td>
		
	</tr>
	{% endif %}
</table>

</div>


<br />
<div><h2>{% trans "More info for this recurring cycle:" %}</h2></div>

<div>
<table border="0" width="90%">
	<tr>
		<td>Customer:</td><td>{{ pt.recurring_payment.user.get_full_name }}({{ pt.recurring_payment.user.email }})</td>
	</tr>
	<tr>
		<td>Guid:</td><td>{{ pt.recurring_payment.guid }}</td>
	</tr>
	<tr>
		<td>Current cycle start:</td><td>{{ pt.recurring_payment_invoice.billing_cycle_start_dt|date }}</td>
	</tr>
	<tr>
		<td>Current cycle end:</td><td>{{ pt.recurring_payment_invoice.billing_cycle_end_dt|date }}</td>
	</tr>
	

</table>

</div>

<br />
{% trans "Thanks!" %}
<br /><br />

<P>{% trans "Time submitted:" %} {% now "D d M Y P" %}</P>

<p align="center">
 {% trans "This e-mail was generated by Tendenci&reg; Software - a" %}
 {% trans "web based membership management software solution" %}
 {% trans "www.tendenci.com developed by Schipul - The Web Marketing Company" %}
</p>