diff --git a/application/Espo/Core/Utils/Database/Orm/FieldConverters/Currency.php b/application/Espo/Core/Utils/Database/Orm/FieldConverters/Currency.php index 2cb8ef296b..4210ab5285 100644 --- a/application/Espo/Core/Utils/Database/Orm/FieldConverters/Currency.php +++ b/application/Espo/Core/Utils/Database/Orm/FieldConverters/Currency.php @@ -82,6 +82,12 @@ class Currency implements FieldConverter ->withDbType($dbType) ->withParam(AttributeParam::PRECISION, $precision) ->withParam(AttributeParam::SCALE, $scale); + + $defaultValue = $fieldDefs->getParam(AttributeParam::DEFAULT); + + if ($defaultValue !== null) { + $amountDefs = $amountDefs->withParam(AttributeParam::DEFAULT, (string) $defaultValue); + } } if ($fieldDefs->isNotStorable()) {