mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-12-02 21:30:16 +09:00
Display Before and After invoice content in PDF (#3169)
Fix #3158: Display Before and After invoice content in PDF The PDF invoice template was missing the code to render text_1 (before invoice table) and text_2 (after invoice table) fields, even though these fields are properly stored in the database and passed to the template. Changes made: - Added text_1 rendering before the invoice items table - Added text_2 rendering after the invoice items table but before footer - Used consistent styling and markdown filter matching HTML templates The fix resolves the issue where banking details and other notes entered in the Before/After Invoice fields were not appearing in PDF invoices.
This commit is contained in:
1 parent
711bd07a84
commit
8a73888aed
1 file changed
+13
@@ -70,6 +70,12 @@
|
||||
</p>
|
||||
</div>
|
||||
|
||||
{% if invoice.text_1 %}
|
||||
<div class='InvoiceText' style='margin: 10px 0; padding: 10px; background-color: #f5f5f5;'>
|
||||
{{ invoice.text_1|markdown }}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<div class='Breakdown' style='top: {{top}}px'>
|
||||
<table style='width:100%'>
|
||||
<tr>
|
||||
@@ -111,6 +117,13 @@
|
||||
</table>
|
||||
<span class="muted-text">{{ footer.signature }}</span>
|
||||
</div>
|
||||
|
||||
{% if invoice.text_2 %}
|
||||
<div class='InvoiceText' style='margin: 10px 0; padding: 10px; background-color: #f5f5f5;'>
|
||||
{{ invoice.text_2|markdown }}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<div class='InvoiceFooter'>
|
||||
{% if footer.display_bank_info == 1 %}
|
||||
<b>{{ 'Payment details'|trans }}:</b><br >
|
||||
|
||||
Reference in new issue
Block a user