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

Activity

Show:
Carlos Ruiz
May 18, 2019, 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
Your pinned fields
Click on the next to a field label to start pinning.

Assignee

Carlos Ruiz

Reporter

Carlos Ruiz