is_invoice_not_paid

We're upgrading our support forum. Replies are currently closed. Please view our Documentation and FAQ using the menu above.

Tagged: 

In the invoice template i can use {if:IS_INVOICE_PAID} …. SOME STUFF …. {endif:IS_INVOICE_PAID} but i can’t do somthing if the invoice is NOT payed.
I don’t find enything about {else} otherwise i can do

{if:IS_INVOICE_PAID} {else} …. SOME STUFF …. {endif:IS_INVOICE_PAID}.
There are any procedure to create {else} block?

I’ve resolved this , and I create a variable IS_NOT_INVOICE_PAID in get_replace_fields() but i need to maintain this code and replace it after update.

Is it possible to include the var IS_NOT_INVOICE_PAID to the next update or use {else}?

You can use css…

In pdf style tag place a {STATUS} variable (“paid” and “new”) class like:
.{STATUS} {display:none}

Then in body:
<div class=”paid”> This content will be displayed when an invoice is not paid</div>

<div class=”new”> this is a paid invoice</div>

That could be an easy and light solution!

Hello,

Yes {else} should work fine, eg:

{if:IS_INVOICE_PAID} {else} SOME STUFF {endif:IS_INVOICE_PAID}

if it doesn’t work you might have to put something inside the first bit, like:

{if:IS_INVOICE_PAID} &nbsp; {else} SOME STUFF {endif:IS_INVOICE_PAID}

The forum ‘Custom Development’ is closed to new topics and replies.

lucavignaliis_invoice_not_paid