Pārlūkot izejas kodu

[fix] If precision > 6, use Decimal(21,9) to allow for 12 digits before the decimal dot like in (18,6)

version-14
Anand Doshi pirms 9 gadiem
vecāks
revīzija
4f93c976a7
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      frappe/model/db_schema.py

+ 1
- 1
frappe/model/db_schema.py Parādīt failu

@@ -575,7 +575,7 @@ def get_definition(fieldtype, precision=None, length=None):

if size:
if fieldtype in ["Float", "Currency", "Percent"] and cint(precision) > 6:
size = '18,9'
size = '21,9'

if coltype == "varchar" and length:
size = length


Notiek ielāde…
Atcelt
Saglabāt