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

--- Comment #19 from Martin Renvoize (ashimema) 
<[email protected]> ---
Created attachment 201856
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=201856&action=edit
Bug 40932: Add tests for automatic invoice closing

Covers Koha::Acquisition::Invoice::check_and_close (all-received closes,
an unreceived item blocks, cancelled order lines are excluded, an invoice
with no linked items stays open, already-closed is a no-op, and
aggregation across multiple active orders) and
Koha::Acquisition::Order::Item::record_physical_receipt via the real
AddIssue/AddReturn circulation flow (first-checkin stamps received and
auto-closes when enabled, a second check-in does not overwrite it, the
whole feature is a no-op when AutoCloseInvoicesOnCheckin is disabled, no
matching aqorders_items row is a no-op, AcqCreateItem policies other than
"ordering" are a no-op, a cancelled order is a no-op, an order with no
linked invoice is a no-op, and a DB failure inside record_physical_receipt
is swallowed so check-in still succeeds).

Sponsored-by: Westminster City Council <https://www.westminster.gov.uk/>
Sponsored-by: Royal Borough of Kensington and Chelsea
<https://www.rbkc.gov.uk/>
Sponsored-by: OpenFifth <https://openfifth.co.uk>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to