Jump to content
NelsonJPG

how I can change the price of a invoice?

Recommended Posts

Hello ...

 

how I can change the price of a invoice?

 

I need to add a rule to subtract tax (2%) to the total , but I can not do this.

 

ejm

 

subtotal = 40.00

VAT1 = subtotal * 12 / 100

 

VAT2 = VAT1 * 2 / 100

 

total = (subtotal + VAT1) - VAT2

 

this is possible?

Share this post


Link to post
Share on other sites
this is possible?

I don't think so from within WHMCS settings because taxes are usually calculated against subtotals - your situation looks more like a VAT refund and so you'd probably need a custom solution to do this.

 

one possible solution might be to change your VAT1 rate to 11.76% - if you can do that, then total1 should be the same as total2.

 

total1 = (subtotal + VAT1 @ 12%) - VAT2

total2 = (subtotal + VAT1 @ 11.76%)

 

so your totals and VAT totals should be correct for your records. :)

 

what you may then have to do is alter your invoice/email templates etc if they HAVE to show VAT @ 12% and then a 2% subtraction - but they're just basic calculations than can be easily performed using Smarty or PHP along with existing variables. :idea:

 

btw - you can't change VAT Rates in WHMCS, you'd have to delete the current 12% VAT rule and add a new rule for 11.76%.

 

http://docs.whmcs.com/How_To_Guides#Change_Tax_Rate

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Similar Content

    • By Tengri
      Hello!
      For some reasons sometimes our banks don't accept invoice from customers without stamp, name of CEO and signature. Is there any way that when the user chooses payment via a Bank under the invoice had the name of the Director signature and stamp.
      Thank you!
    • By WHMCS ChrisD
      The WHMCS.Community is intended to provide a place for users of WHMCS to discuss, share and interact with each other as well as WHMCS Staff. To ensure we maintain a friendly environment, we ask users to respect the following rules and guidelines. Please let us know via the WHMCS.Community Assitance category should you have any questions or comments, posts in this category are visible between yourself and the WHMCS.Community Team.
      WHMCS reserves the right to alter these rules from time to time.
      1.User Accounts
      Each person may have (one) 1 forum login regardless of the number of companies you may be part of. Duplicate accounts will be removed from WHMCS.Community Please do not share your user account with others - each person should retain their own username and password Usernames must not be created that contain any of the items listed below: An email address A website address The following words WHMCS cPanel Staff Moderator Admin Any word determined to cause offence or be deemed inappropriate. Usernames or Users that do not comply with these rules may be removed from WHMCS.Community 2. Behaviour on the Community
      We expect all users to be friendly and polite. While we understand that users will disagree and have different points of view at times, this can be communicated in a civil manner Please do not post rude, insulting or inflammatory posts. Personal attacks, name-calling and insults will not be tolerated on WHMCS.Community. Profanity and inappropriate images (including porn or gross violence) may not be posted anywhere on the WHMCS.Community. WHMCS.Community Staff & Moderators use their sole discretion as to what is deemed unacceptable behaviour in the community and may remove content at any time. Your posts assist other users, please do not delete content if you find an answer, please share this solution to help other users. 3. Advertising on WHMCS.Community
      Advertising, offers or self-promotion are to be posted only in the Third Party Add-ons section of the community. Community users seeking to hire a developer may post within the Service Offers & Requests section. Advertising is limited to one advertisement per seven (7) day period on a rolling 7-day basis. Additional or excessive advertising will be removed by the moderation team and your ability to post in advertising boards removed. Soliciting and/or self-promotion via the private messaging (PM) system is strictly prohibited. The sale or reselling of WHMCS Licenses is strictly prohibited on the community. Affiliate and referral links may not be used, these links are those that link to a site and contain information crediting the person with that referral 4. Posting and Moderation on WHMCS.Community
      The WHMCS.Community is moderated by WHMCS.Community Moderators and Staff. When a post is deemed to be in breach of the rules it will be removed and the user advised via a warning. Please do not cross-post across the community. If your topic is better suited to another section one of the WHMCS.Community team will move it to the best category for you. You may report your post if you wish to have it moved by a moderator. For privacy reasons please do not post any personally identifiable information including Usernames, Passwords, Contact Numbers, Email Addresses and/or Credit Card Numbers As WHMCS.Community is a moderated community we have implemented a Warning System. When a post is removed for breaching the community rules we’ll be sure to let you know. We allocate points to a warning and once you have a set number of points you may be suspended from posting on the community.  Users that do not comply with the rules for WHMCS.Community may be banned temporarily. Ongoing temporary bans may result in a permanent ban from WHMCS.Community. The public discussion of moderation decisions is not permitted, these will be removed without notice and may result in a community ban. 5. Signature and Profile Rules
      Your signature may include links, however, please ensure these are reasonable (no more than 4) and they must not include Referral/Affiliate links. This includes pricing and plan details Signatures may not contain more than 4 lines at a 1024x768 resolution Please do not sell or rent your signature space, your signature is yours alone. Where your signature does not comply with these rules you may be asked to alter or remove it 6. WHMCS.Community Ranks
      Official WHMCS Staff & Moderators are identified by one of the following ranks located below their profile image, in addition, their posts are highlighted blue WHMCS CEO WHMCS Community Manager WHMCS Customer Service WHMCS Developer WHMCS Marketing WHMCS Staff WHMCS Support Manager WHMCS Technical Analyst WHMCS.Community runs a ranking system, new community members start with the rank of Newbie and can progress based on the number of posts, reputation points and length of time active on the community Some users have a special “Super Users” rank. These members are a select group of elite community members that are long-standing mentors in the community, courteous to other members, always providing technical insight and advice, and generally helping to make our community a better place to learn, troubleshoot and advance. The WHMCS.Community ranking formula is changed from time to time and without notice.  The algorithm used is not published or discussed with users to prevent gaming the system 7. Contacting the WHMCS.Community Team
      You may contact a member of the WHMCS.Community via the WHMCS.Community Assitance board If you would prefer to email you may open a ticket by emailing forums@whmcs.com Thank you for helping to keep WHMCS.Community a great place
    • By sokalsondha
      Hello community...
      I came back again. Can someone help me with my system.
      What happened is..
      We sell yearly service. Let's say client bought service 01/04/2018
      And his next due date is 31/03/2019.
      Now system generate invoice on 15/03/209
       
      But he didn't paid.
      He decide to pay on may..
      I knw the service will be suspended. But it's not a problem.
      Now if he pay on may .. I see his next due date will be 31/03/2020 not 01/05/2020
       
      So he is loosing a month when he didn't used the service in April.
      Can we have a hook to update the next invoice date the customer paid+365 days? 
      Please help me
       
    • By eliasaphram
      Im trying to use Githubs version of AutoAuth:
      https://github.com/JonTheWong/whmcs-autoauth-invoice
      I've followed the steps in the description, but are getting wrong login credentials error. Below you can see the different steps and the code that i have;
      To install this script you need to place all files in your root directory of WHMCS
      example: /home/user/public_html/domain/whmcs/
      Generate a hash and enter it in configuration.php above the last ?>
      $autoauthkey = "REPLACE-WITH-SYSTEM-KEY";
      Also include it into the script.
      You can generate a hash using; openssl rand -hex 32 on linux.
      Then add this value to the top of your email template;
      {assign var='hash' value=$client_email|cat:"REPLACE-THIS-PART-WITH-SECRET-KEY"}
      Then add this link anywhere in your email template.
      Login Auth: {$whmcs_url}lauth.php?email={$client_email}&zmkey={$hash|md5}
      Invoice Auth: {$whmcs_url}iauth.php?email={$client_email}&invoice={$invoice_num}&zmkey={$hash|md5}
      Quote Auth: {$whmcs_url}qauth.php?email={$client_email}&quote={$quote_number}&zmkey={$zmkey|md5}
      Notes
      Quick not for version 7+
      Due to security settings, you have to modify configuration.php and add the following code to the bottom, above the last ?>
      $smarty_security_policy = array( 'mail' => array( 'php_modifiers' => array( 'md5', 'time', 'sha1', 'urlencode', 'header', ), ), );  
      In the config file:
      $hash = "302BEA0FDBC6ADB8F8A25919318B532D";
      $autoauthkey = "Correct_password";
      $smarty_security_policy = array(
          'mail' => array(
              'php_modifiers' => array(
                  'md5',
                  'time',
                  'sha1',
                  'urlencode',
                  'header',
              ),
          ),
      );
      ?>
       
      In the iauth file:
       
      <?php
      /*
      Created by JonTheWong @ Zenith Media Canada - www.zenithmedia.ca
      Visit our public repo - https://github.com/JonTheWong/whmcs-autoauth-invoice
      */
      $whmcsurl = "https://www.webbsnacks.se/whmcs/dologin.php"; /* replace with your url */
      $autoauthkey = "Correct_password"; /* same as in configuration.php */
      $secretkey = "A_new_key_generated"; /* generate a new key for this script */
      if (md5($_GET['email'].$secretkey) != $_GET['zmkey'])
      die('Något fel har skett, vänligen kontakta oss på info@webbsnacks.se för att gå vidare.');
      $email = $_GET['email'];
      $timestamp = time();
      $hash = sha1($email.$timestamp.$autoauthkey);
      $goto = "viewinvoice.php?id=".$_GET['invoice'];
      $url = $whmcsurl."?email=$email&timestamp=$timestamp&hash=$hash&goto=".urlencode($goto);
      header("Location: $url");
      exit;
      ?>
       
       
      Do anyone know what the issue might be? Since im not getting the "die" text, there should be nothing wrong with the hash, correct?
    • By ovi
      I'm using WHMCS 7.7.1 & WordPress.
      I have integrate WordPress with WHMCS using whmcs-bridge.
      Problem is, a client register for hosting and domain & complete the payment for the invoice but after his payment the invoice still showing unpaid.
      Note that: After payment client redirecting to client area this one working fine. Only invoice showing unpaid
      Please help me to solve it 
  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated