Is there a way I can remove the .1, .2, etc. from the Invoice # on the pdf export? i.e. for Invoice 4432.1, I would want the PDF export to have Invoice 4432. Is there a way to modify the [% invoice.controlnum %] or use a different shortcode in place of that to make it display 4432?
If I’m correct, using an invoice number without being fully qualified (line number, NOSI number) will only work if your orders have only one line, and you invoice in full every order. Otherwise, you’ll might end having duplicate Invoices (on paper).
I’m not well-versed in Template Toolkit, but I think you can use this code, if needed:
I am not experienced with TT either but I used the following:
[% invoice.controlnum.replace(‘..*’, ‘’) %]
I did not add any other conditions because our invoicing format will never change and this works as desired. We are fine with having “duplicate” invoices on paper as the system will have the unique numbers anyway.