Bug 28163

Summary: Register entries doubled up if form is submitted first without a selected register
Product: Koha Reporter: Katrin Fischer <katrin.fischer>
Component: Fines and feesAssignee: Bugs List <koha-bugs>
Status: RESOLVED DUPLICATE QA Contact: Testopia <testopia>
Severity: major    
Priority: P5 - low CC: martin.renvoize
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30003
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:

Description Katrin Fischer 2021-04-17 23:45:26 UTC
Testing the patch on bug 28127 I noticed a lot of double ups in my registry details.

I think I know how to reproduce this:

- Add a debit type for sale with a default price
- Go to point of sale
- Make sure you have no register selected by default 
- Add your debit type to current sale
- Enter amount tendered
- Leave register blank and submit
- Set register
- Submit again
- Go to register details page use the link on the left

There are now 2 identical entries in the details table.
Comment 1 Martin Renvoize 2022-02-10 11:13:03 UTC

*** This bug has been marked as a duplicate of bug 30003 ***