Jump to content

Editing viewinvoice.tpl


dmc_ss

Recommended Posts

I am having some trouble getting the EU bit in viewinvoice.tpl to work.

 

I feel the "instructions" on removing the comments to be extremely confusing and not at all easy to follow.

 

What exactly needs to be removed from this line to make it work:

 

{* This code should be uncommented for EU companies using the sequential invoice numbering so that when unpaid it is shown as a proforma invoice {if $status eq "Paid"}*}{$LANG.invoicenumber}{*{else}{$LANG.proformainvoicenumber}{/if}*}{$invoicenum}</title>

 

There are too many *'s and too many {} combinations. No matter what I remove from this line it errors every time. It also dislikes the "eq" at the start.

 

Can someone please repost this line in it's working format.

 

Thanks in advance.

 

David.

Link to comment
Share on other sites

Thank you. I'm sure I tried that but it's working now.

 

For future reference to others, the entire line should read:

 

<title>{$companyname} - {if $status eq "Paid"}{$LANG.invoicenumber}{else}{$LANG.proformainvoicenumber}{/if}{$invoicenum}</title>

Link to comment
Share on other sites

  • 1 year later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated