[Bug 42965] New: REST API: Endpoint to record an anonymous or patron-optional POS sale
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42965 Bug ID: 42965 Summary: REST API: Endpoint to record an anonymous or patron-optional POS sale Initiative type: --- Sponsorship --- status: Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: REST API Assignee: koha-bugs@lists.koha-community.org Reporter: martin.renvoize@openfifth.co.uk QA Contact: testopia@bugs.koha-community.org CC: tomascohen@gmail.com Target Milestone: --- This is part of the Point of Sale to Vue migration tracked under bug 42959. pos/pay.pl currently records a sale by building it up in Perl via Koha::Charges::Sales (add_item() per line, then purchase()), producing one or more debits that are optionally linked to a cash register and settled atomically. There is no REST endpoint for this. This overlaps significantly with two already-filed but unimplemented bugs: - Bug 42784: REST API: Add endpoint for patron-optional POS sales to support external payment system integration - Bug 42785: REST API: Add atomic external payment intake endpoint for patron-linked charges from third-party systems Rather than building a POS-specific endpoint in parallel, this work should be coordinated with 42784 and 42785 so a single endpoint design serves all three use cases: patron_id optional, register_id optional depending on the UseCashRegisters preference, one or more line items, settled atomically. Whichever bug's implementation lands first should be written so the others can reuse it rather than duplicating the schema. Test plan: 1. Confirm with whoever is working 42784/42785 on a shared endpoint shape before implementation. 2. Record a sale via the endpoint and confirm the resulting accountlines/offsets match what Koha::Charges::Sales produces today. 3. Add unit tests under t/db_dependent/api/v1/. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org