mikelegg Posted August 19, 2009 Share Posted August 19, 2009 My invoice template contains a calculation which divides the $invoiceitems[amount] value by 11 and multiplies it by 10 to calculate an ExGST price for each invoice item. This worked fine under WHMCS 3.8x, but I just upgraded to 4.01 and now it just returns 0 for this calculation. Does anyone have any idea why this would suddenly not work? Everything else in the template still works fine. 0 Quote Link to comment Share on other sites More sharing options...
mikelegg Posted August 19, 2009 Author Share Posted August 19, 2009 Just to clarify this a little further, I can't get it to work. Any calculation that you try to perfom will just return 0. Hmmm ... 0 Quote Link to comment Share on other sites More sharing options...
Damainman Posted September 10, 2009 Share Posted September 10, 2009 Did you ever solve this? 0 Quote Link to comment Share on other sites More sharing options...
mikelegg Posted September 10, 2009 Author Share Posted September 10, 2009 No, I had to change my invoice template to remove any calculated figures. 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted September 11, 2009 Share Posted September 11, 2009 In V4 the $invoiceitems[amount] will be something like $10.45USD which is a string and a calculation like what you are doing requires it to be an integer or numeric. 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.