Bug 17140: Atomic update file

Signed-off-by: Jesse Maseto <jesse@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit bc6e590289)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Nick 2019-10-04 08:15:43 +00:00 committed by Fridolin Somers
parent 95417e25fe
commit e25e850bf5
1 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,12 @@
$DBversion = 'XXX'; # will be replaced by the RM
if( CheckVersion( $DBversion ) ) {
$dbh->do(q|
INSERT IGNORE INTO systempreferences
(variable,value,explanation,options,type)
VALUES
('RoundFinesAtPayment','0','If enabled any fines with fractions of a cent will be rounded to the nearest cent when payments are collected. e.g. 1.004 will be paid off by a 1.00 payment','0','YesNo')
|);
SetVersion( $DBversion );
print "Upgrade to $DBversion done (Bug 17140 - Add pref to allow rounding fines at payment)\n";
}