[Koha-bugs] [Bug 31041] Cashup summary modal printing issue

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Nov 2 15:38:06 CET 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31041

Lucas Gass <lucas at bywatersolutions.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |lucas at bywatersolutions.com

--- Comment #1 from Lucas Gass <lucas at bywatersolutions.com> ---
I was about to file a bug when I found this one. I have a similar, but not
exactly the same, problem. 

We are noticing that the Cashup summary can be duplicated when the register.pl
page prints longer than two pages. From a stackoverflow post:

"The problem is that the content underlying the modal determines how many pages
are printed and if you are trying to print the content of the modal it will
print duplicates equaling the number pages in the underlying document"

https://stackoverflow.com/questions/68206205/same-page-prints-twice-when-using-a-bootstrap-full-screen-modal


So, to recreate:
1. Have POS on.
2. Have some registers and items for sale. Make some sales to 'Cashup'. 
3. If you have enough enough lines in the table so that 'register.pl' would
print on 2 or more pages, the summary will be duplicated that same number of
time. 

If you are lazy like me and don't want to make that many transaction you can
also add some content to the page like this:

for (let i = 0; i < 100; i++) {
  $('#register').append('<h1>TEST</h1>');
}

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list