dolibarr-git
[Top][All Lists]
Advanced

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

[Dolibarr-git] [Dolibarr/dolibarr] 2cf36d: FIX #3953 Don't round supplie


From: Laurent Destailleur
Subject: [Dolibarr-git] [Dolibarr/dolibarr] 2cf36d: FIX #3953 Don't round supplier price
Date: Fri, 11 Dec 2015 08:59:35 -0800

  Branch: refs/heads/develop
  Home:   https://github.com/Dolibarr/dolibarr
  Commit: 2cf36d157fb6fee1fa4829f5afbbd70beea996dd
      
https://github.com/Dolibarr/dolibarr/commit/2cf36d157fb6fee1fa4829f5afbbd70beea996dd
  Author: Raphaël Doursenaud <address@hidden>
  Date:   2015-12-07 (Mon, 07 Dec 2015)

  Changed paths:
    M htdocs/core/tpl/objectline_create.tpl.php

  Log Message:
  -----------
  FIX #3953 Don't round supplier price

The price is already rounded when inserted on the product page.
It's also rounded at display.
There's no need to round it here.
Rounding it leads to serious calculation errors.


  Commit: 3e2309d0e6da1de1d29570447978f3c6a3634a12
      
https://github.com/Dolibarr/dolibarr/commit/3e2309d0e6da1de1d29570447978f3c6a3634a12
  Author: Raphaël Doursenaud <address@hidden>
  Date:   2015-12-10 (Thu, 10 Dec 2015)

  Changed paths:
    M htdocs/core/datepicker.php
    R htdocs/core/js/lib_head.js
    A htdocs/core/js/lib_head.js.php
    M htdocs/core/tpl/objectline_create.tpl.php
    M htdocs/core/tpl/objectline_edit.tpl.php
    M htdocs/main.inc.php

  Log Message:
  -----------
  NEW Factorized price2numjs into lib_head.js.php

Used public domain code from the MDN to provide a robust decimal
rounding implementation.

Warning for developers: the path of the javascript file has changed.
Please update your scripts.


  Commit: f71225742a26ca516eb79296aba699b4dd7e129b
      
https://github.com/Dolibarr/dolibarr/commit/f71225742a26ca516eb79296aba699b4dd7e129b
  Author: Laurent Destailleur <address@hidden>
  Date:   2015-12-11 (Fri, 11 Dec 2015)

  Changed paths:
    M htdocs/core/datepicker.php
    R htdocs/core/js/lib_head.js
    A htdocs/core/js/lib_head.js.php
    M htdocs/core/tpl/objectline_create.tpl.php
    M htdocs/core/tpl/objectline_edit.tpl.php
    M htdocs/main.inc.php

  Log Message:
  -----------
  Merge pull request #4178 from GPCsolutions/dolibarr-3953

Better javascript rounding


Compare: 
https://github.com/Dolibarr/dolibarr/compare/519e022c982a...f71225742a26

reply via email to

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