From bc6e5902898fc3fbaa69b0fcc99359eadd6a8c76 Mon Sep 17 00:00:00 2001 From: Nick Date: Fri, 4 Oct 2019 08:15:43 +0000 Subject: [PATCH] Bug 17140: Atomic update file Signed-off-by: Jesse Maseto Signed-off-by: Martin Renvoize --- .../bug_17140_add_pref_to_round_fines_at_payment.perl | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 installer/data/mysql/atomicupdate/bug_17140_add_pref_to_round_fines_at_payment.perl diff --git a/installer/data/mysql/atomicupdate/bug_17140_add_pref_to_round_fines_at_payment.perl b/installer/data/mysql/atomicupdate/bug_17140_add_pref_to_round_fines_at_payment.perl new file mode 100644 index 0000000000..b80aa610ea --- /dev/null +++ b/installer/data/mysql/atomicupdate/bug_17140_add_pref_to_round_fines_at_payment.perl @@ -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"; +} -- 2.11.4.GIT