Bugzilla – Attachment 149076 Details for
Bug 33393
Modify sentence above the order table in English 1-page order PDF
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33393: Add system preference
Bug-33393-Add-system-preference.patch (text/plain), 3.38 KB, created by
Alex Buckley
on 2023-04-03 03:37:52 UTC
(
hide
)
Description:
Bug 33393: Add system preference
Filename:
MIME Type:
Creator:
Alex Buckley
Created:
2023-04-03 03:37:52 UTC
Size:
3.38 KB
patch
obsolete
>From 82a353a6bf108b2f3d8b255d205fd2a229498982 Mon Sep 17 00:00:00 2001 >From: Alex Buckley <alexbuckley@catalyst.net.nz> >Date: Thu, 30 Mar 2023 21:56:15 +0000 >Subject: [PATCH] Bug 33393: Add system preference > >Sponsored-by: Pymble Ladies' College >--- > .../bug_33393-add_1PageOrderPDFText.pl | 14 ++++++++++++++ > installer/data/mysql/mandatory/sysprefs.sql | 1 + > .../en/modules/admin/preferences/acquisitions.pref | 4 ++++ > 3 files changed, 19 insertions(+) > create mode 100755 installer/data/mysql/atomicupdate/bug_33393-add_1PageOrderPDFText.pl > >diff --git a/installer/data/mysql/atomicupdate/bug_33393-add_1PageOrderPDFText.pl b/installer/data/mysql/atomicupdate/bug_33393-add_1PageOrderPDFText.pl >new file mode 100755 >index 00000000000..3eef1d696df >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_33393-add_1PageOrderPDFText.pl >@@ -0,0 +1,14 @@ >+use Modern::Perl; >+ >+return { >+ bug_number => "33393", >+ description => "Modify sentence above the order table in English 1-page order PDF", >+ up => sub { >+ my ($args) = @_; >+ my ($dbh, $out) = @$args{qw(dbh out)}; >+ >+ $dbh->do(q{INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES ('1PageOrderPDFText', 'Order number must appear on all related correspondence, shipping papers and invoices. Notify us immediately if \n you are unable to supply item(s).', NULL, 'Text to be used above the order table in the 1-page order PDF file', 'textarea') }); >+ >+ say $out "Added system preference '1PageOrderPDFText'"; >+ }, >+}; >diff --git a/installer/data/mysql/mandatory/sysprefs.sql b/installer/data/mysql/mandatory/sysprefs.sql >index 98eced6bc0a..25bd78a10b6 100644 >--- a/installer/data/mysql/mandatory/sysprefs.sql >+++ b/installer/data/mysql/mandatory/sysprefs.sql >@@ -1,4 +1,5 @@ > INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES >+('1PageOrderPDFText', 'Order number must appear on all related correspondence, shipping papers and invoices. Notify us immediately if \n you are unable to supply item(s).', NULL, 'Text to be used above the order table in the 1-page order PDF file', 'textarea'), > ('AccessControlAllowOrigin', '', NULL, 'Set the Access-Control-Allow-Origin header to the specified value', 'Free'), > ('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'), >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 3f0560aac56..270d56ca91c 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 >@@ -125,6 +125,10 @@ Acquisitions: > "pdfformat::layout3pagesfr": French 3-page > "pdfformat::layout2pagesde": German 2-page > - layout when printing basket groups. >+ - >+ - "Text to be used above the order table in the 1-page order PDF file. Note: Press enter to add line breaks to your sentence" >+ - pref: 1PageOrderPDFText >+ type: textarea > EDIFACT: > - > - pref: EDIFACT >-- >2.20.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 33393
:
149076
|
149077
|
149078
|
149079
|
149106
|
150497
|
150524
|
150525
|
150526
|
163214
|
163215
|
163216
|
163217