Jump to content

Patch 5.2.16 - templates/viewinvoice.tpl


drtduarte

Recommended Posts

Hello,

 

There was a minor change to make sure that you could apply credit from inside the invoice. Changes were made to the portal and classic theme. If your custom theme was based on either of those, I recommend making the change to fix the issue. Here is a diff:

 

{if $manualapplycredit}

-<div class="creditbox">{$LANG.invoiceaddcreditdesc1} {$totalcredit}. {$LANG.invoiceaddcreditdesc2}<br />

<form method="post" action="{$smarty.server.PHP_SELF}?id={$invoiceid}"><input type="hidden" name="applycredit" value="true" />

+<div class="creditbox">{$LANG.invoiceaddcreditdesc1} {$totalcredit}. {$LANG.invoiceaddcreditdesc2}<br />

{$LANG.invoiceaddcreditamount}: <input type="text" name="creditamount" size="10" value="{$creditamount}" /> <input type="submit" value="{$LANG.invoi~

-</form></div>

+</div>

+</form>

<br />

{/if}

Link to comment
Share on other sites

Hi,

 

Well I didn't see any difference because my code was already that way :)

My integration was done by whmcs, maybe that detail was fixed at that time, sorry to disturb with this.

 

HSc: can we upload that templates/viewinvoice.tpl into our custom template folder or do we need to have new integration work done on that file if rest of template is custom?

 

You only need to open your custom file and make the modification:

------------------------------------------------------------------------------------------------------

Classic and Portal Client Area Templates

viewinvoice.tpl - Move the following line from line 55 to 56, ensuring it is below the <form> open tag

<div class="creditbox">{$LANG.invoiceaddcreditdesc1} {$totalcredit}. {$LANG.invoiceaddcreditdesc2}<br />

-------------------------------------------------------------------------------------------------------

 

No need to upload the new viewinvoice.tpl file...

 

Regards,

D. Duarte

Link to comment
Share on other sites

HSc: can we upload that templates/viewinvoice.tpl into our custom template folder or do we need to have new integration work done on that file if rest of template is custom?

 

You only need to open your custom file and make the modification:

------------------------------------------------------------------------------------------------------

Classic and Portal Client Area Templates

viewinvoice.tpl - Move the following line from line 55 to 56, ensuring it is below the <form> open tag

<div class="creditbox">{$LANG.invoiceaddcreditdesc1} {$totalcredit}. {$LANG.invoiceaddcreditdesc2}<br />

-------------------------------------------------------------------------------------------------------

 

No need to upload the new viewinvoice.tpl file...

 

Regards,

D. Duarte

 

Thanks!

HSc

Link to comment
Share on other sites

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