Bug 20144: [sql_modes] Fix generated value for account_offsets.amount

Fix error:
Out of range value for column 'amount'

DBD::mysql::st execute failed: Out of range value for column 'amount' at
row 1 [for Statement "INSERT INTO `account_offsets` ( `amount`,
`debit_id`, `type`) VALUES ( ?, ?, ? )" with ParamValues:
0=7925469795795194609664.000000, 1='10', 2='Manual Debit'] at
/usr/share/perl5/DBIx/Class/Storage/DBI.pm line 1832.

7925469795795194609664.000000
=> Should be lower anyway

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Jonathan Druart 2018-02-05 14:51:43 -03:00
parent 9ef4bad473
commit efdf8cc964
1 changed files with 7 additions and 0 deletions

View File

@ -473,6 +473,13 @@ sub _gen_default_values {
Item => {
more_subfields_xml => undef,
},
Category => {
enrolmentfee => 0,
reservefee => 0,
},
Itemtype => {
rentalcharge => 0,
},
};
}