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

(-)a/installer/data/mysql/atomicupdate/bug_26693_dateaccessioned_update.perl (+11 lines)
Line 0 Link Here
1
$DBversion = 'XXX';
2
if( CheckVersion( $DBversion ) ) {
3
4
    $dbh->do(q{
5
        INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type)
6
        VALUES
7
        ('AcqItemSetDateAccessionedsWhenReceived','0','Upon receiving items, update their dateaccessioned field value',NULL,'YesNo');
8
    });
9
10
    NewVersion( $DBversion, 26693, "Add option to update dateaccessioned when receiving an order");
11
}
(-)a/installer/data/mysql/mandatory/sysprefs.sql (+1 lines)
Lines 3-8 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
3
('AccountAutoReconcile','0',NULL,'If enabled, patron balances will get reconciled automatically on each transaction.','YesNo'),
3
('AccountAutoReconcile','0',NULL,'If enabled, patron balances will get reconciled automatically on each transaction.','YesNo'),
4
('AcqCreateItem','ordering','ordering|receiving|cataloguing','Define when the item is created : when ordering, when receiving, or in cataloguing module','Choice'),
4
('AcqCreateItem','ordering','ordering|receiving|cataloguing','Define when the item is created : when ordering, when receiving, or in cataloguing module','Choice'),
5
('AcqEnableFiles','0',NULL,'If enabled, allows librarians to upload and attach arbitrary files to invoice records.','YesNo'),
5
('AcqEnableFiles','0',NULL,'If enabled, allows librarians to upload and attach arbitrary files to invoice records.','YesNo'),
6
('AcqItemSetDateAccessionedsWhenReceived','0',NULL,'Upon receiving items, update their dateaccessioned field value','YesNo'),
6
('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'),
7
('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'),
7
('AcqItemSetSubfieldsWhenReceived','','','Upon receiving items, update their subfields if they were created when placing an order (e.g. o=5|a="foo bar")','Free'),
8
('AcqItemSetSubfieldsWhenReceived','','','Upon receiving items, update their subfields if they were created when placing an order (e.g. o=5|a="foo bar")','Free'),
8
('AcquisitionDetails', '1', '', 'Hide/Show acquisition details on the biblio detail page.', 'YesNo'),
9
('AcquisitionDetails', '1', '', 'Hide/Show acquisition details on the biblio detail page.', 'YesNo'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/acquisitions.pref (-1 / +8 lines)
Lines 48-53 Acquisitions: Link Here
48
        -
48
        -
49
            - "Upon receiving items, update their subfields if they were created when placing an order (e.g. o=5|a=\"foo bar\"):"
49
            - "Upon receiving items, update their subfields if they were created when placing an order (e.g. o=5|a=\"foo bar\"):"
50
            - pref: AcqItemSetSubfieldsWhenReceived
50
            - pref: AcqItemSetSubfieldsWhenReceived
51
        -
52
            - "Upon receiving items, "
53
            - pref: AcqItemSetDateAccessionedsWhenReceived
54
              default: no
55
              choices:
56
                yes: update
57
                no: don't update
58
            - "update their dateaccessioned field value (can be overriden on receiving)."
51
        -
59
        -
52
            - "Upon cancelling a receipt, update the item's subfields if they were created when placing an order (e.g. o=5|a=\"bar foo\"):"
60
            - "Upon cancelling a receipt, update the item's subfields if they were created when placing an order (e.g. o=5|a=\"bar foo\"):"
53
            - pref: AcqItemSetSubfieldsWhenReceiptIsCancelled
61
            - pref: AcqItemSetSubfieldsWhenReceiptIsCancelled
54
- 

Return to bug 26693