Results 1 to 8 of 8
  1. #1
    Join Date
    Feb 2007
    Posts
    1,704
    Plugin Contributions
    0

    Default Price inc VAT not working on orders in admin

    when i go to admin > orders > (click an order) > order summery the item list and prices are not showing correctly.

    As you will see for the screen shot i have taken the price (inc) is not showing the VAT price.

    how can i fix this?? rest of the site shows and works out vat correctly etc.

    Name:  Capture1.jpg
Views: 269
Size:  10.9 KB

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Price inc VAT not working on orders in admin

    What is your setting in the Configuration ... My Store ...
    Display Prices with Tax in Admin
    Display prices with tax included (true) or add the tax at the end (false) in Admin(Invoices)
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Feb 2007
    Posts
    1,704
    Plugin Contributions
    0

    Default Re: Price inc VAT not working on orders in admin

    display price with tax = true
    display price with tax admin = false (as we all work on net in the office)

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Price inc VAT not working on orders in admin

    If you change that to True ... what is messed up? This should show the both the Price (ex) and Price (inc) for you on the Orders ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #5
    Join Date
    Feb 2007
    Posts
    1,704
    Plugin Contributions
    0

    Default Re: Price inc VAT not working on orders in admin

    yeah but then the prices of the items in the items list also inc TAX?? we need then net price for ease really

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Price inc VAT not working on orders in admin

    What you could try is to edit the function:
    /your_secret_admin/includes/functions/general.php

    and around line 1638 change the function to include the code in RED:
    Code:
    ////
    // Add tax to a products price
      function zen_add_tax($price, $tax) {
        global $currencies;
    
    // bof: force display of tax on orders.php only
    //    if (DISPLAY_PRICE_WITH_TAX_ADMIN == 'true') {
        global $PHP_SELF;
        if (strstr($PHP_SELF, FILENAME_ORDERS) || DISPLAY_PRICE_WITH_TAX_ADMIN == 'true') {
    // eof: force display of tax on orders.php only
          return zen_round($price, $currencies->currencies[DEFAULT_CURRENCY]['decimal_places']) + zen_calculate_tax($price, $tax);
        } else {
          return zen_round($price, $currencies->currencies[DEFAULT_CURRENCY]['decimal_places']);
        }
      }
    See if that accomplishes what you are needing ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  7. #7
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: Price inc VAT not working on orders in admin

    Quote Originally Posted by Ajeh View Post
    What you could try is to edit the function:
    /your_secret_admin/includes/functions/general.php

    and around line 1638 change the function to include the code in RED:
    Code:
    ////
    // Add tax to a products price
      function zen_add_tax($price, $tax) {
        global $currencies;
    
    // bof: force display of tax on orders.php only
    //    if (DISPLAY_PRICE_WITH_TAX_ADMIN == 'true') {
        global $PHP_SELF;
        if (strstr($PHP_SELF, FILENAME_ORDERS) || DISPLAY_PRICE_WITH_TAX_ADMIN == 'true') {
    // eof: force display of tax on orders.php only
          return zen_round($price, $currencies->currencies[DEFAULT_CURRENCY]['decimal_places']) + zen_calculate_tax($price, $tax);
        } else {
          return zen_round($price, $currencies->currencies[DEFAULT_CURRENCY]['decimal_places']);
        }
      }
    See if that accomplishes what you are needing ...
    Didn't see if the above fixed the problem or not, but was just working with someone that observed this same condition, but identified that it happens when a valid VAT# is entered (both the includes and excludes tax values were the same) when an incorrect or no VAT# was entered then the orders.php display showed a difference between the two values. I am told that this is happening when the admin include tax is set to true and am wondering how the above fix will affect prices when the admin flag is true instead of false as the above OP had this set. Guess off to some testing. :)
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  8. #8
    Join Date
    Feb 2007
    Posts
    1,704
    Plugin Contributions
    0

    Default Re: Price inc VAT not working on orders in admin

    we just now work with the vat prices on the lists now... retail price. easy enough now we all got head round it

 

 

Similar Threads

  1. v151 Inc VAT price disapears on login
    By abdulpatesh in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 9 Dec 2015, 04:46 PM
  2. How do I amend price heading to say price inc vat?
    By backinthesaddle in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 6 Mar 2010, 04:51 AM
  3. Display Price (ex VAT ) or (inc VAT)
    By hcd888 in forum General Questions
    Replies: 0
    Last Post: 19 May 2009, 01:38 PM
  4. Please Help - Inc and Ex VAT prices/totals not correct
    By snowy2007 in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 1
    Last Post: 8 Dec 2008, 04:27 PM
  5. Display 'Inc. VAT' After Price... Help Please
    By DPM in forum General Questions
    Replies: 7
    Last Post: 1 Sep 2008, 01:38 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR