Skip to content
Snippets Groups Projects
  1. Apr 13, 2017
  2. Apr 12, 2017
  3. Apr 11, 2017
  4. Apr 10, 2017
  5. Apr 09, 2017
  6. Apr 08, 2017
    • vvnt's avatar
      Fix: bug #6653 situation invoice miscalculation · ff75077b
      vvnt authored
      Bug (#6653)
      
      In price.lib.php (htdocs\core\lib\price.lib.php), the function calcul_price_total() is defined (line 76). The 7th parameter is **$remise_percent_global**.
      
      However, this function is called on facture.class.php (htdocs\compta\facture\class\facture.class.php) and the 7th parameter used is **$line->product_type**. Consequently, invoice situation is correct when user sells a product (product_type = 0) and is wrong when user sells a service (product_type = 1).
      Effectively, in the latter case, the total situation invoice will be wrong by 1%.
      
      In order to correct this, we can add 0 as the 7th parameter and move **$line->product_type** to the 10th parameter.
      ff75077b
    • Laurent Destailleur's avatar
      bb7c1647
Loading