diff --git a/installer/data/mysql/atomicupdate/bug_31713.pl b/installer/data/mysql/atomicupdate/bug_31713.pl
new file mode 100644
index 0000000000..9ab4132d89
--- /dev/null
+++ b/installer/data/mysql/atomicupdate/bug_31713.pl
@@ -0,0 +1,101 @@
+use Modern::Perl;
+
+return {
+ bug_number => "31713",
+ description => "Add FEE_SUMMARY slip notice",
+ up => sub {
+ my ($args) = @_;
+ my ($dbh, $out) = @$args{qw(dbh out)};
+
+ my $slip_content = <<~'END_CONTENT';
+[% USE Koha %]
+[% USE Branches %]
+[% USE Price %]
+[% PROCESS 'accounts.inc' %]
+
+ [% IF ( Koha.Preference('LibraryName') ) %]
+
+
+ [% Koha.Preference('LibraryName') | html %]
+ |
+
+ [% END %]
+
+
+
+ [% Branches.GetName( borrower.branchcode ) | html %]
+ |
+
+
+
+
+ Outstanding accounts
+ |
+
+
+ [% IF borrower.account.outstanding_debits.total_outstanding %]
+
+
+ Debts
+ |
+
+
+ | Date |
+ Charge |
+ Amount |
+ Outstanding |
+
+ [% FOREACH debit IN borrower.account.outstanding_debits %]
+
+ | [% debit.date | $KohaDates %] |
+
+ [% PROCESS account_type_description account=debit %]
+ [%- IF debit.description %], [% debit.description | html %][% END %]
+ |
+ [% debit.amount | $Price %] |
+ [% debit.amountoutstanding | $Price %] |
+
+ [% END %]
+ [% END %]
+
+ [% IF borrower.account.outstanding_credits.total_outstanding %]
+
+
+ Credits
+ |
+
+
+ | Date |
+ Credit |
+ Amount |
+ Outstanding |
+
+ [% FOREACH credit IN borrower.account.outstanding_credits %]
+
+ | [% credit.date | $KohaDates %] |
+
+ [% PROCESS account_type_description account=credit %]
+ [%- IF credit.description %], [% credit.description | html %][% END %]
+ |
+ [% credit.amount | $Price %] |
+ [% credit.amountoutstanding | $Price %] |
+
+ [% END %]
+ [% END %]
+
+
+
+ | Total outstanding dues as on date: |
+ [% IF ( borrower.account.balance <= 0 ) %][% ELSE %] | [% END %][% borrower.account.balance | $Price %] |
+
+
+
+END_CONTENT
+
+ $dbh->do(qq{
+ INSERT IGNORE INTO letter ( module, code, branchcode, name, is_html, title, content, message_transport_type, lang)
+ VALUES ( 'members', 'FEE_SUMMARY', '', 'Fee Summary Slip', 1, 'Fee Summary for [% borrower.firstname %] [% borrower.surname %]', "$slip_content", 'print', 'default' )
+ });
+ say $out "Notice added";
+ },
+};
diff --git a/installer/data/mysql/en/mandatory/sample_notices.yml b/installer/data/mysql/en/mandatory/sample_notices.yml
index 738cd55bbd..436a1ecc6a 100644
--- a/installer/data/mysql/en/mandatory/sample_notices.yml
+++ b/installer/data/mysql/en/mandatory/sample_notices.yml
@@ -1283,6 +1283,98 @@ tables:
- "Your authentication token is [% otp_token %]."
- "It is valid one minute."
+ - module: members
+ code: FEE_SUMMARY
+ branchcode: ""
+ name: "Fee Summary Slip"
+ is_html: 1
+ title: "Fee Summary for [% borrower.firstname %] [% borrower.surname %]"
+ message_transport_type: print
+ lang: default
+ content:
+ - "[% USE Koha %]"
+ - "[% USE Branches %]"
+ - "[% USE Price %]"
+ - "[% PROCESS 'accounts.inc' %]"
+ - ""
+ - " [% IF ( Koha.Preference('LibraryName') ) %]"
+ - " "
+ - " "
+ - " [% Koha.Preference('LibraryName') | html %]"
+ - " | "
+ - "
"
+ - " [% END %]"
+ - ""
+ - " "
+ - " "
+ - " [% Branches.GetName( borrower.branchcode ) | html %]"
+ - " | "
+ - "
"
+ - ""
+ - " "
+ - " "
+ - " Outstanding accounts"
+ - " | "
+ - "
"
+ - ""
+ - " [% IF borrower.account.outstanding_debits.total_outstanding %]"
+ - " "
+ - " "
+ - " Debts"
+ - " | "
+ - "
"
+ - " "
+ - " | Date | "
+ - " Charge | "
+ - " Amount | "
+ - " Outstanding | "
+ - "
"
+ - " [% FOREACH debit IN borrower.account.outstanding_debits %]"
+ - " "
+ - " | [% debit.date | $KohaDates %] | "
+ - " "
+ - " [% PROCESS account_type_description account=debit %]"
+ - " [%- IF debit.description %], [% debit.description | html %][% END %]"
+ - " | "
+ - " [% debit.amount | $Price %] | "
+ - " [% debit.amountoutstanding | $Price %] | "
+ - "
"
+ - " [% END %]"
+ - " [% END %]"
+ - ""
+ - " [% IF borrower.account.outstanding_credits.total_outstanding %]"
+ - " "
+ - " "
+ - " Credits"
+ - " | "
+ - "
"
+ - " "
+ - " | Date | "
+ - " Credit | "
+ - " Amount | "
+ - " Outstanding | "
+ - "
"
+ - " [% FOREACH credit IN borrower.account.outstanding_credits %]"
+ - " "
+ - " | [% credit.date | $KohaDates%] | "
+ - " "
+ - " [% PROCESS account_type_description account=credit %]"
+ - " [%- IF credit.description %], [% credit.description | html %][% END %]"
+ - " | "
+ - " [% credit.amount | $Price %] | "
+ - " [% credit.amountoutstanding | $Price %] | "
+ - "
"
+ - " [% END %]"
+ - " [% END %]"
+ - ""
+ - " "
+ - " "
+ - " | Total outstanding dues as on date: | "
+ - " [% IF ( borrower.account.balance <= 0 ) %][% ELSE %] | [% END %][% borrower.account.balance | $Price %] | "
+ - "
"
+ - " "
+ - "
"
+
- module: orderacquisition
code: ACQORDER
branchcode: ""