InfotelGLPI / printercounters

Plugin Printercounters for GLPI
http://blogglpi.infotel.com
GNU General Public License v2.0
14 stars 9 forks source link

Cost with inverted calculation #41

Open jpdenss opened 6 years ago

jpdenss commented 6 years ago

BILLING MODEL image

ITEMS ASSOCIATED WITH THE BILLING MODEL ---- INVERTED VALUES VIEW image

VALUES APPLIED IN AN INVERTED WAY WHERE MULTIPLYING THE QUANTITY FOR THE CORRECT COST, SHOULD RESULT IN 124.40 image

amma35 commented 6 years ago

Hi, which mysql or mariadb version do you use? We have a difference in behavior without reason on different environments on a function.

jpdenss commented 6 years ago

Hi. by the way, great job! Well, this is the information from GLPI system info: Software: Apache/2.4.33 (Win32) PHP/7.2.4 (Apache/2.4.33 (Win32) PHP/7.2.4 MySql Server: 5.7.21

amma35 commented 6 years ago

I have no explanation for the moment but the problem comes from the execution of a request the result is not the same between mysql and mariadb.

jpdenss commented 6 years ago

In fact, as you said, I migrated my database to MariaDB and the problem really does not occur. Thanks! image

image