Frappe changes default decimal length

Hello

We are currently implementing Frappe and ERPNext for a company in Lebanon, where the sales volume can easily reach trillions. During this process, we have encountered an “Out of range value for column” error.

Could you please advise on the best practice to extend the DEFAULT_DECIMAL_LENGTH to 25 digits, without directly modifying the Frappe framework?

Do you need this as a global setting or for only a “few” specific fields?

You can customize the relevant docTypes and edit the field’s decimal setting.

Edit: Oh man, it looks like max precision is 9 places.

i have a lot of fields to changes, and some of it are ERPNext fields. so that i prefer to chaage the value on system level instead of going field by field