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 407-412 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
407
('OpenLibraryCovers','0',NULL,'If ON Openlibrary book covers will be show','YesNo'),
407
('OpenLibraryCovers','0',NULL,'If ON Openlibrary book covers will be show','YesNo'),
408
('OpenLibrarySearch','0',NULL,'If Yes Open Library search results will show in OPAC','YesNo'),
408
('OpenLibrarySearch','0',NULL,'If Yes Open Library search results will show in OPAC','YesNo'),
409
('OrderPdfFormat','pdfformat::layout3pages','Controls what script is used for printing (basketgroups)','','free'),
409
('OrderPdfFormat','pdfformat::layout3pages','Controls what script is used for printing (basketgroups)','','free'),
410
('OrderPriceRounding','','|nearest_cent','Local preference for rounding orders before calculations to ensure correct calculations','Choice'),
410
('OverDriveCirculation','0','Enable client to see their OverDrive account','','YesNo'),
411
('OverDriveCirculation','0','Enable client to see their OverDrive account','','YesNo'),
411
('OverDriveClientKey','','Client key for OverDrive integration','30','Free'),
412
('OverDriveClientKey','','Client key for OverDrive integration','30','Free'),
412
('OverDriveClientSecret','','Client key for OverDrive integration','30','YesNo'),
413
('OverDriveClientSecret','','Client key for OverDrive integration','30','YesNo'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/acquisitions.pref (-1 / +7 lines)
Lines 76-81 Acquisitions: Link Here
76
                yes: Send
76
                yes: Send
77
                no: Don't send
77
                no: Don't send
78
            - blind copy (BCC) to logged in user when sending serial or acquisitions claims notices.
78
            - blind copy (BCC) to logged in user when sending serial or acquisitions claims notices.
79
        -
80
            - pref: OrderPriceRounding
81
              default: ''
82
              choices:
83
                '': Don't round
84
                nearest_cent: Round to nearest cent
85
            - determines whether full precision values or rounded values should be used in price calculations
79
86
80
    Printing:
87
    Printing:
81
        -
88
        -
82
- 

Return to bug 18736