Core problems with big numbers

Description

While testing noticed there are some errors in core about management of big numbers - mostly caused by usage of double to do calculations - double has a maximum precision of 15 digits - so numbers with more than 15 digits are wrongly managed in some cases.

Environment

None

discovered while testing

Activity

Show:

Carlos Ruiz May 18, 2019 at 9:21 AM
Edited

#1 Status Line

  • Create a POS Sales Order

  • in Order Line fill it this way:

    • any charge

    • Qty = 1

    • Price = 9223372036854775808 (this is 2^63 - just a test number - any number with more than 15 digits will be a problem)

    • After saving the line the status line shows number: 9223372036854776000, the sales order looks fine

#2 Posting dialog

  • After completing the sales order of case #1 the invoice and payments are correct in numbers, the accounting postings are correctly saved, but on the Posting dialog they are shown rounded to 9223372036854776000

Fixed

Details

Assignee

Reporter

Priority

Created May 18, 2019 at 9:07 AM
Updated July 1, 2019 at 7:54 PM
Resolved May 18, 2019 at 10:57 AM