View | Details | Raw Unified | Return to bug 18736
Collapse All | Expand All

(-)a/installer/data/mysql/atomicupdate/bug18736_add_rounding_syspref.perl (+7 lines)
Line 0 Link Here
1
$DBversion = 'XXX';  # will be replaced by the RM
2
if( CheckVersion( $DBversion ) ) {
3
    # $dbh->do( "INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('OrderPriceRounding',NULL,'Local preference for rounding orders before calculations to ensure correct calculations','|nearest_cent','Choice')" );
4
5
    SetVersion( $DBversion );
6
    print "Upgrade to $DBversion done (Bug 18736 - Add syspref to control order rounding)\n";
7
}
(-)a/installer/data/mysql/sysprefs.sql (+1 lines)
Lines 426-431 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
426
('OpenLibraryCovers','0',NULL,'If ON Openlibrary book covers will be show','YesNo'),
426
('OpenLibraryCovers','0',NULL,'If ON Openlibrary book covers will be show','YesNo'),
427
('OpenLibrarySearch','0',NULL,'If Yes Open Library search results will show in OPAC','YesNo'),
427
('OpenLibrarySearch','0',NULL,'If Yes Open Library search results will show in OPAC','YesNo'),
428
('OrderPdfFormat','pdfformat::layout3pages','Controls what script is used for printing (basketgroups)','','free'),
428
('OrderPdfFormat','pdfformat::layout3pages','Controls what script is used for printing (basketgroups)','','free'),
429
('OrderPriceRounding','','|nearest_cent','Local preference for rounding orders before calculations to ensure correct calculations','Choice'),
429
('OverDriveCirculation','0','Enable client to see their OverDrive account','','YesNo'),
430
('OverDriveCirculation','0','Enable client to see their OverDrive account','','YesNo'),
430
('OverDriveClientKey','','Client key for OverDrive integration','30','Free'),
431
('OverDriveClientKey','','Client key for OverDrive integration','30','Free'),
431
('OverDriveClientSecret','','Client key for OverDrive integration','30','YesNo'),
432
('OverDriveClientSecret','','Client key for OverDrive integration','30','YesNo'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/acquisitions.pref (-2 / +8 lines)
Lines 83-89 Acquisitions: Link Here
83
            - "days. Example: [30] Sets purgation of suggestions for those older than 30 days."
83
            - "days. Example: [30] Sets purgation of suggestions for those older than 30 days."
84
            - "<br><strong>WARNING:</strong> Leave this field empty if you don't want to activate this automatic feature."
84
            - "<br><strong>WARNING:</strong> Leave this field empty if you don't want to activate this automatic feature."
85
            - "<br><strong>NOTE:</strong> This system preference requires the <code>misc/cronjobs/purge_suggestions.pl</code> cronjob. Ask your system administrator to schedule it."
85
            - "<br><strong>NOTE:</strong> This system preference requires the <code>misc/cronjobs/purge_suggestions.pl</code> cronjob. Ask your system administrator to schedule it."
86
86
        -
87
            - pref: OrderPriceRounding
88
              default: ''
89
              choices:
90
                '': Don't round
91
                nearest_cent: Round
92
            - to nearest cent.<br>
93
            - Determines whether full precision values or rounded values should be used in price calculations
87
        -
94
        -
88
            - pref: UseACQFrameworkForBiblioRecords
95
            - pref: UseACQFrameworkForBiblioRecords
89
              default: no
96
              default: no
90
- 

Return to bug 18736