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

(-)a/installer/data/mysql/atomicupdate/21915.perl (+9 lines)
Line 0 Link Here
1
$DBversion = 'XXX';
2
if( CheckVersion( $DBversion ) ) {
3
    $dbh->do(q{
4
        INSERT IGNORE INTO `systempreferences` (`variable`,`value`,`explanation`,`options`,`type`) VALUES
5
        ('AccountAutoReconcile','0','If enabled, patron balances will get reconciled automatically on each transaction.',NULL,'YesNo'),
6
    });
7
    SetVersion($DBversion);
8
    print "Upgrade to $DBversion done (Bug 21915 - Add a way to automatically reconcile balance for patrons)\n";
9
}
(-)a/installer/data/mysql/sysprefs.sql (+1 lines)
Lines 1-4 Link Here
1
INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
1
INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
2
('AccountAutoReconcile','0',NULL,'If enabled, patron balances will get reconciled automatically on each transaction.','YesNo'),
2
('AcqCreateItem','ordering','ordering|receiving|cataloguing','Define when the item is created : when ordering, when receiving, or in cataloguing module','Choice'),
3
('AcqCreateItem','ordering','ordering|receiving|cataloguing','Define when the item is created : when ordering, when receiving, or in cataloguing module','Choice'),
3
('AcqEnableFiles','0',NULL,'If enabled, allows librarians to upload and attach arbitrary files to invoice records.','YesNo'),
4
('AcqEnableFiles','0',NULL,'If enabled, allows librarians to upload and attach arbitrary files to invoice records.','YesNo'),
4
('AcqItemSetSubfieldsWhenReceiptIsCancelled','', '','Upon cancelling a receipt, update the items subfields if they were created when placing an order (e.g. o=5|a="bar foo")', 'Free'),
5
('AcqItemSetSubfieldsWhenReceiptIsCancelled','', '','Upon cancelling a receipt, update the items subfields if they were created when placing an order (e.g. o=5|a="bar foo")', 'Free'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref (-1 / +8 lines)
Lines 158-163 Circulation: Link Here
158
                  no: "Don't allow"
158
                  no: "Don't allow"
159
            - patrons to submit notes about checked out items.
159
            - patrons to submit notes about checked out items.
160
160
161
    Accounts:
162
        -
163
            - pref: AccountAutoReconcile
164
              choices:
165
                  yes: "Do"
166
                  no: "Do not"
167
            - reconcile patron balances automatically on each transaction adding debits or credits.
168
161
    Checkout Policy:
169
    Checkout Policy:
162
        -
170
        -
163
            - pref: AllowTooManyOverride
171
            - pref: AllowTooManyOverride
164
- 

Return to bug 21915