]> git.koha-community.org Git - koha.git/commit
Bug 31041: Prevent duplicate display of cashup summary when printing
authorLucas Gass <lucas@bywatersolutions.com>
Thu, 2 Nov 2023 19:56:00 +0000 (19:56 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Wed, 8 Nov 2023 12:58:59 +0000 (09:58 -0300)
commit85fb62f3d6e0784bf75309325b78712f18877055
tree24c19c74bf08c2876d18422df4061dc4501f8c91
parentfcd97d8741d1141ee99e5ad0d8ec89d0f9ea32c8
Bug 31041: Prevent duplicate display of cashup summary when printing

To test:
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>');
}

4. APPLY PATCH, clear browser cahche
5. Try printing again, you should only get one cashup summary when printing.

Signed-off-by: Juliet Heltibridle <jheltibridle@rcplib.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/js/cashup_modal.js