peterquast Posted October 20, 2011 Share Posted October 20, 2011 can anyone HELP me... I am trying to modify clientareainvoices.tpl to ONLY SHOW CANCELLED INVOICES HERE IS MY CODE: {foreach key=num item=invoice from=$invoices} {if $invoice.status eq "cancelled"} <tr> <td><a href="viewinvoice.php?id={$invoice.id}" target="_blank">{$invoice.invoicenum}</a></td> <td>{$invoice.datedue}</td> <td>{$invoice.status}</td> <td><a href="viewinvoice.php?id={$invoice.id}" target="_blank">{$LANG.invoicesview}</a></td> <td> </td> </tr> {/if} {foreachelse} <tr> <td colspan="6">{$LANG.norecordsfound}</td> </tr> {/foreach} Can anyone tell me what I am doing wrong... ??? NO MATTER what... it NEVER runs the IF properly.... 0 Quote Link to comment Share on other sites More sharing options...
brematv Posted November 4, 2011 Share Posted November 4, 2011 Did you find a solution for this? I have the same problem. It also doesn't run the IF statement in the foreach. 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted November 4, 2011 Share Posted November 4, 2011 Try changing the "cancelled" to "Cancelled" 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.