From 4db22138014f2cf6fbe9a295dd4ca30c6453e68d 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 Signed-off-by: Lucas Gass Signed-off-by: Kyle M Hall Signed-off-by: Tomas Cohen Arazi --- 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 aba7bf02e7..738cd55bbd 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.39.5