Enhancement Request: Invoice Number Padding

Thanks a lot for the detailed response BGPS. I believe I followed most of your example, but still have a question or two.

I have taken a slightly different approach to the ‘prefix & padding’ problem, inspired by this post.

{% for field in fields %}                            
    {% if field.label != 'Invoice number' %}
        <div style="font-weight: bold">{{ field.label }}</div>
        <div style="margin-bottom: 10px">{{ field.text }}</div>
    {% endif %}
    
    {% if field.label == 'Invoice number' %}
        <div style="font-weight: bold">{{ field.label }}</div>
        <div>{% capture new_var %} 000000{{ field.text }}{% endcapture %} RD{{ new_var | slice: -6, 6 }}</div>                                                                 
    {% endif %}
{% endfor %} 

This example above will only operate on field.label = ‘Invoice number’. Just wondering if you can see any critical flaws with this solution, or any reason not to use it?

I haven’t made any allowance for field.label = ‘Reference’, when would this be needed? What is the ‘Reference’ number?

I am of the understanding that all of the adjustments to the invoice number, are only effective in editing the numbers on the forms themselves, they are in no way reflected back into the Manager environment. For example, in the ‘Sales Invoice’ list, the invoice numbers are the original numbers (without prefix & padding). Is this how you see it too?

Thanks again for your help.