Skip to content
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.

Commit

Permalink
Merge pull request #994 from yverdon/feature/apply-ckeditor-migration…
Browse files Browse the repository at this point in the history
…-to-payment-reports

Apply CKEditor migration to payment reports
  • Loading branch information
AlexandreJunod authored May 22, 2024
2 parents 3eb474c + 3cee35c commit fed039b
Showing 1 changed file with 58 additions and 54 deletions.
112 changes: 58 additions & 54 deletions geocity/apps/reports/management/commands/add_payment_reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,33 +65,35 @@ def _create_payment_report(self, group, layout):
order=4,
report=report,
title="",
content="""<table border="1" cellpadding="1" cellspacing="1" style="width:100%">
<tbody>
<tr>
<td><strong>Libell&eacute;</strong></td>
<td>&nbsp;</td>
<td style="text-align:right"><strong>Prix CHF TTC</strong></td>
</tr>
<tr>
<td>
<p>&nbsp;</p>
<p>{{ transaction_data.line_text }} : {{request_data.properties.submission_price.text}}</p>
<p>&nbsp;</p>
</td>
<td>&nbsp;</td>
<td style="text-align:right">{{request_data.properties.submission_price.amount}}</td>
</tr>
<tr>
<td><strong>Montant pay&eacute;</strong></td>
<td>&nbsp;</td>
<td style="text-align:right"><strong>{{request_data.properties.submission_price.amount}}</strong></td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>""",
content="""<div class="raw-html-embed">
<table border="1" cellpadding="1" cellspacing="1" style="width:100%">
<tbody>
<tr>
<td><strong>Libell&eacute;</strong></td>
<td>&nbsp;</td>
<td style="text-align:right"><strong>Prix CHF TTC</strong></td>
</tr>
<tr>
<td>
<p>&nbsp;</p>
<p>{{ transaction_data.line_text }} : {{request_data.properties.submission_price.text}}</p>
<p>&nbsp;</p>
</td>
<td>&nbsp;</td>
<td style="text-align:right">{{request_data.properties.submission_price.amount}}</td>
</tr>
<tr>
<td><strong>Montant pay&eacute;</strong></td>
<td>&nbsp;</td>
<td style="text-align:right"><strong>{{request_data.properties.submission_price.amount}}</strong></td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
</div>""",
)
section_paragraph_4.save()

Expand Down Expand Up @@ -149,33 +151,35 @@ def _create_refund_report(self, group, layout):
order=4,
report=report,
title="",
content="""<table border="1" cellpadding="1" cellspacing="1" style="width:100%">
<tbody>
<tr>
<td><strong>Libell&eacute;</strong></td>
<td>&nbsp;</td>
<td style="text-align:right"><strong>Prix CHF TTC</strong></td>
</tr>
<tr>
<td>
<p>&nbsp;</p>
<p>{{ transaction_data.line_text }} : {{request_data.properties.submission_price.text}}</p>
<p>&nbsp;</p>
</td>
<td>&nbsp;</td>
<td style="text-align:right">-{{request_data.properties.submission_price.amount}}</td>
</tr>
<tr>
<td><strong>Montant rembours&eacute;</strong></td>
<td>&nbsp;</td>
<td style="text-align:right"><strong>-{{request_data.properties.submission_price.amount}}</strong></td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>""",
content="""<div class="raw-html-embed">
<table border="1" cellpadding="1" cellspacing="1" style="width:100%">
<tbody>
<tr>
<td><strong>Libell&eacute;</strong></td>
<td>&nbsp;</td>
<td style="text-align:right"><strong>Prix CHF TTC</strong></td>
</tr>
<tr>
<td>
<p>&nbsp;</p>
<p>{{ transaction_data.line_text }} : {{request_data.properties.submission_price.text}}</p>
<p>&nbsp;</p>
</td>
<td>&nbsp;</td>
<td style="text-align:right">-{{request_data.properties.submission_price.amount}}</td>
</tr>
<tr>
<td><strong>Montant rembours&eacute;</strong></td>
<td>&nbsp;</td>
<td style="text-align:right"><strong>-{{request_data.properties.submission_price.amount}}</strong></td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
</div>""",
)
section_paragraph_4.save()

Expand Down

0 comments on commit fed039b

Please sign in to comment.