Bugzilla – Attachment 116717 Details for
Bug 26693
Add option to update dateaccessioned when receiving an order
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26693: Add AcqItemSetDateAccessionedsWhenReceived syspref
Bug-26693-Add-AcqItemSetDateAccessionedsWhenReceiv.patch (text/plain), 3.76 KB, created by
Tomás Cohen Arazi
on 2021-02-11 13:29:41 UTC
(
hide
)
Description:
Bug 26693: Add AcqItemSetDateAccessionedsWhenReceived syspref
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi
Created:
2021-02-11 13:29:41 UTC
Size:
3.76 KB
patch
obsolete
>From 3edb65d7e753afece83bfa44bb333eff69ccabcf Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Wed, 10 Feb 2021 13:33:15 -0300 >Subject: [PATCH] Bug 26693: Add AcqItemSetDateAccessionedsWhenReceived syspref > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > .../bug_26693_dateaccessioned_update.perl | 11 +++++++++++ > installer/data/mysql/mandatory/sysprefs.sql | 1 + > .../en/modules/admin/preferences/acquisitions.pref | 8 ++++++++ > 3 files changed, 20 insertions(+) > create mode 100644 installer/data/mysql/atomicupdate/bug_26693_dateaccessioned_update.perl > >diff --git a/installer/data/mysql/atomicupdate/bug_26693_dateaccessioned_update.perl b/installer/data/mysql/atomicupdate/bug_26693_dateaccessioned_update.perl >new file mode 100644 >index 00000000000..3516e0af57f >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_26693_dateaccessioned_update.perl >@@ -0,0 +1,11 @@ >+$DBversion = 'XXX'; >+if( CheckVersion( $DBversion ) ) { >+ >+ $dbh->do(q{ >+ INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) >+ VALUES >+ ('AcqItemSetDateAccessionedsWhenReceived','0','Upon receiving items, update their dateaccessioned field value',NULL,'YesNo'); >+ }); >+ >+ NewVersion( $DBversion, 26693, "Add option to update dateaccessioned when receiving an order"); >+} >diff --git a/installer/data/mysql/mandatory/sysprefs.sql b/installer/data/mysql/mandatory/sysprefs.sql >index eab5e668382..08fd68971cd 100644 >--- a/installer/data/mysql/mandatory/sysprefs.sql >+++ b/installer/data/mysql/mandatory/sysprefs.sql >@@ -3,6 +3,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` > ('AccountAutoReconcile','0',NULL,'If enabled, patron balances will get reconciled automatically on each transaction.','YesNo'), > ('AcqCreateItem','ordering','ordering|receiving|cataloguing','Define when the item is created : when ordering, when receiving, or in cataloguing module','Choice'), > ('AcqEnableFiles','0',NULL,'If enabled, allows librarians to upload and attach arbitrary files to invoice records.','YesNo'), >+('AcqItemSetDateAccessionedsWhenReceived','0',NULL,'Upon receiving items, update their dateaccessioned field value','YesNo'), > ('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'), > ('AcqItemSetSubfieldsWhenReceived','','','Upon receiving items, update their subfields if they were created when placing an order (e.g. o=5|a="foo bar")','Free'), > ('AcquisitionDetails', '1', '', 'Hide/Show acquisition details on the biblio detail page.', 'YesNo'), >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/acquisitions.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/acquisitions.pref >index 1885d4cc1a7..ed4cc5866ba 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/acquisitions.pref >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/acquisitions.pref >@@ -48,6 +48,14 @@ Acquisitions: > - > - "Upon receiving items, update their subfields if they were created when placing an order (e.g. o=5|a=\"foo bar\"):" > - pref: AcqItemSetSubfieldsWhenReceived >+ - >+ - "Upon receiving items, " >+ - pref: AcqItemSetDateAccessionedsWhenReceived >+ default: no >+ choices: >+ yes: update >+ no: don't update >+ - "update their dateaccessioned field value (can be overriden on receiving)." > - > - "Upon cancelling a receipt, update the item's subfields if they were created when placing an order (e.g. o=5|a=\"bar foo\"):" > - pref: AcqItemSetSubfieldsWhenReceiptIsCancelled >-- >2.30.1
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 26693
: 116717 |
116718