From a60425f6bc05869163211debf1162fc389af7a7a Mon Sep 17 00:00:00 2001
From: Aleisha Amohia <aleishaamohia@hotmail.com>
Date: Tue, 23 May 2023 02:19:01 +0000
Subject: [PATCH] Bug 33478: Make sure formatting is applied to tables in
 notices

This fixes the formatting not showing on ACCOUNTS_SUMMARY and also applies changes to headings

Signed-off-by: Sam Lau <samalau@gmail.com>
---
 .../prog/en/includes/slip_content.inc         | 37 +++++++++++--------
 1 file changed, 22 insertions(+), 15 deletions(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/slip_content.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/slip_content.inc
index 7c4402b3d5..10b754d77f 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/includes/slip_content.inc
+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/slip_content.inc
@@ -1,15 +1,22 @@
-<div class="notice" style="
-    text-align:[% PROCESS translate_justification_types type=notice.text_justify | trim %];
-    font-size:[% notice.font_size %]px;
-    width:[% notice.notice_width %][% PROCESS translate_unit_types type=notice.units | trim %];
-    margin-top:[% notice.top_margin %][% PROCESS translate_unit_types type=notice.units | trim %];
-    margin-left:[% notice.left_margin %][% PROCESS translate_unit_types type=notice.units | trim %];
-">
-    [% IF notice.is_html %]
-        [% notice.content | $raw %]
-    [% ELSE %]
-    <pre>
-        [% notice.content | html %]
-    </pre>
-    [% END %]
-</div>
+<style>
+    #slip, #receipt {
+        text-align:[% PROCESS translate_justification_types type=notice.text_justify | trim %];
+        font-size:[% notice.font_size %]px;
+        width:[% notice.notice_width %][% PROCESS translate_unit_types type=notice.units | trim %];
+        margin-top:[% notice.top_margin %][% PROCESS translate_unit_types type=notice.units | trim %];
+        margin-left:[% notice.left_margin %][% PROCESS translate_unit_types type=notice.units | trim %];
+    }
+
+    h3, h4, th, td, th:last-child, td:last-child {
+        text-align:[% PROCESS translate_justification_types type=notice.text_justify | trim %];
+        font-size:[% notice.font_size %]px;
+    }
+</style>
+
+[% IF notice.is_html %]
+    [% notice.content | $raw %]
+[% ELSE %]
+<pre>
+    [% notice.content | html %]
+</pre>
+[% END %]
-- 
2.30.2