Bugzilla – Attachment 93678 Details for
Bug 17140
Incorrect rounding in total fines calculations, part 2
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 17140: Atomic update file
Bug-17140-Atomic-update-file.patch (text/plain), 1.32 KB, created by
Nick Clemens (kidclamp)
on 2019-10-04 08:16:07 UTC
(
hide
)
Description:
Bug 17140: Atomic update file
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2019-10-04 08:16:07 UTC
Size:
1.32 KB
patch
obsolete
>From 1419c1c870320258b743794a0c61176d781a1e10 Mon Sep 17 00:00:00 2001 >From: Nick <nick@bywatersolutions.com> >Date: Fri, 4 Oct 2019 08:15:43 +0000 >Subject: [PATCH] Bug 17140: Atomic update file > >--- > .../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..db56cd989d >--- /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.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 17140
:
54542
|
54565
|
54566
|
54611
|
54642
|
54643
|
82375
|
83467
|
86044
|
86051
|
93553
|
93554
|
93678
|
93715
|
93716
|
93717