From ecf590a86e980a2b2fd77accc3479824a2a24e3e Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Thu, 22 Sep 2022 21:30:57 +0000 Subject: [PATCH] Bug 24381: (follow-up) Add USE statements --- installer/data/mysql/atomicupdate/bug_24381.perl | 5 +++++ installer/data/mysql/en/mandatory/sample_notices.yml | 3 +++ 2 files changed, 8 insertions(+) diff --git a/installer/data/mysql/atomicupdate/bug_24381.perl b/installer/data/mysql/atomicupdate/bug_24381.perl index e3a5432618..62b07ed757 100644 --- a/installer/data/mysql/atomicupdate/bug_24381.perl +++ b/installer/data/mysql/atomicupdate/bug_24381.perl @@ -4,6 +4,7 @@ if ( CheckVersion($DBversion) ) { # ACCOUNT_CREDIT my $account_credit = q{ [%- USE AuthorisedValues -%] + [%- USE KohaDates -%] [%- USE Price -%] [%- PROCESS "accounts.inc" -%] @@ -134,6 +135,8 @@ q{UPDATE letter SET content = ? WHERE code = 'ACCOUNT_CREDIT' AND REPLACE(REPLAC # ACCOUNT_DEBIT my $account_debit = q{ [% PROCESS "accounts.inc" %] + [%- USE Price -%] + [%- USE KohaDates -%]
[% IF ( LibraryName ) %] @@ -237,6 +240,8 @@ q{UPDATE letter SET content = ? WHERE code = 'ACCOUNT_DEBIT' AND REPLACE(REPLACE # RECEIPT my $receipt = q{ [% PROCESS "accounts.inc" %] + [%- USE KohaDates -%] + [%- USE Price -%]
[% IF ( LibraryName ) %] diff --git a/installer/data/mysql/en/mandatory/sample_notices.yml b/installer/data/mysql/en/mandatory/sample_notices.yml index b555214c44..6a0eddbd7c 100644 --- a/installer/data/mysql/en/mandatory/sample_notices.yml +++ b/installer/data/mysql/en/mandatory/sample_notices.yml @@ -53,6 +53,8 @@ tables: lang: default content: - "[%- USE AuthorisedValues -%]" + - "[%- USE KohaDates -%]" + - "[%- USE Price -%]" - "[%- PROCESS \"accounts.inc\" -%]" - "
" - " [% IF ( LibraryName ) %]" @@ -172,6 +174,7 @@ tables: lang: default content: - "[% USE Price %]" + - "[% USE KohaDates %]" - "[% PROCESS \"accounts.inc\" %]" - "
" - " [% IF ( LibraryName ) %]" -- 2.30.2