mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX Increased decimal precision of Money->Amount database column to support currencies with a greater precision than 2 digits.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@76743 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
261ab10e00
commit
84089a1b7d
@ -61,7 +61,7 @@ class Money extends DBField implements CompositeDBField {
|
||||
*/
|
||||
static $composite_db = array(
|
||||
"Currency" => "Varchar(3) null",
|
||||
"Amount" => Array('type'=>'decimal', 'parts'=>Array('datatype'=>'decimal', 'precision'=>"14,2"), 'default' => '0'),
|
||||
"Amount" => Array('type'=>'decimal', 'parts'=>Array('datatype'=>'decimal', 'precision'=>"19,4"), 'default' => '0'),
|
||||
);
|
||||
|
||||
function __construct($name = null) {
|
||||
|
Loading…
Reference in New Issue
Block a user