dolibarr-bugtrack
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dolibarr-bugtrack] [bug #18623] fix when no tva is used


From: Franky Van Liedekerke
Subject: [Dolibarr-bugtrack] [bug #18623] fix when no tva is used
Date: Thu, 28 Dec 2006 23:38:18 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.8.1) Gecko/20060601 Firefox/2.0 (Ubuntu-edgy)

URL:
  <http://savannah.nongnu.org/bugs/?18623>

                 Summary: fix when no tva is used
                 Project: Dolibarr
            Submitted by: liedekef
            Submitted on: Thursday 28/12/06 at 23:38
                Severity: 3 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
                 Release: None
        Operating System: None

    _______________________________________________________

Details:

version used: cvs

I've created a customer with "Using VTA = No"
but when I create an order and add a product, the default vta for that
product is used. When editing the line, the VTA is set to 0 (which is
correct).
The correct behaviour should be: no VTA applied when adding the product.

Fix:
in file htdocs/commande/fiche.php, around line 289, there is the code for
calculating the tva when adding a line:

$tva_tx = get_default_tva($mysoc,$soc,$prod->tva_tx);

this should be:
if($soc->tva_assuj == "0")
   $tva_tx = 0;
else
   $tva_tx = get_default_tva($mysoc,$soc,$prod->tva_tx);

this fixes the problem.

Franky





    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?18623>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]