When generate invoice pdf with {{{invoice_status}}} in qr_code_settings_remittance_text
print invoice_status in text (and in qr)
Expected Behavior
{{{invoice_status}}} replaced by Sent, Paid, Overdue (Draft?)
Current Behavior
{{{invoice_status}}} always replaced by invoice_status
Screenshots
Now

remittance text: Facture N°{{{invoice_number}}} - {{{invoice_status}}} - {{{invoice_date_created}}}
Expected

2 Possible Solutions
1st (see PR #1199)
Add missing invoice_status case in application/helpers/template_helper.php
2nd
Remove
<option value="{{{invoice_status}}}">
<?php _trans('status'); ?>
</option>
in application/modules/email_templates/views/template-tags-invoices.php
Steps to Reproduce
- Go to Settings page / Invoices tab
- Enable QR, complete bank info, add
{{{invoice_status}}} in qr code remittance text field and save settings.
- go to invoices list
invoices/status/all
- Click on
Options of one and choose Download pdf
Possible Implementation
Failure Logs
No
When generate invoice pdf with
{{{invoice_status}}}inqr_code_settings_remittance_textprint
invoice_statusin text (and in qr)Expected Behavior
{{{invoice_status}}}replaced by Sent, Paid, Overdue (Draft?)Current Behavior
{{{invoice_status}}}always replaced byinvoice_statusScreenshots
Now
remittance text:
Facture N°{{{invoice_number}}} - {{{invoice_status}}} - {{{invoice_date_created}}}Expected
2 Possible Solutions
1st (see PR #1199)
Add missing
invoice_statuscase in application/helpers/template_helper.php2nd
Remove
<option value="{{{invoice_status}}}"> <?php _trans('status'); ?> </option>in application/modules/email_templates/views/template-tags-invoices.php
Steps to Reproduce
{{{invoice_status}}}in qr code remittance text field and save settings.invoices/status/allOptionsof one and chooseDownload pdfPossible Implementation
template_helperhave onlyinvoice_status_idand need adding a tiny helper to workFailure Logs
No