drtduarte Posted January 22, 2014 Share Posted January 22, 2014 Dear users, Can anyone explain why the file viewinvoice.tpl is included on the 5.2.16 patch? I have analyzed this file with CSDiff and can't find any difference... Regards, D. Duarte 0 Quote Link to comment Share on other sites More sharing options...
HSc Posted January 22, 2014 Share Posted January 22, 2014 And if I can tag onto your question, 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? 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Nate Posted January 22, 2014 Share Posted January 22, 2014 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} 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted January 23, 2014 WHMCS Support Manager Share Posted January 23, 2014 Hi, As always the template change is listed in our release notes: http://docs.whmcs.com/Version_5.2_Release_Notes#Template_Changes 0 Quote Link to comment Share on other sites More sharing options...
drtduarte Posted January 23, 2014 Author Share Posted January 23, 2014 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 0 Quote Link to comment Share on other sites More sharing options...
HSc Posted January 23, 2014 Share Posted January 23, 2014 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 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.