Bugzilla – Attachment 93717 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.38 KB, created by
Jesse Maseto
on 2019-10-04 08:53:49 UTC
(
hide
)
Description:
Bug 17140: Atomic update file
Filename:
MIME Type:
Creator:
Jesse Maseto
Created:
2019-10-04 08:53:49 UTC
Size:
1.38 KB
patch
obsolete
>From 683224371867e59863e48357269f1a195170738a 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 > >Signed-off-by: Jesse Maseto <jesse@bywatersolutions.com> >--- > .../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.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