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

--- Comment #4 from Martin Renvoize (ashimema) 
<[email protected]> ---
Created attachment 194387
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=194387&action=edit
Bug 40932: Add automatic invoice closing on physical item receipt

Adds AutoCloseInvoicesOnCheckin and AutoCloseInvoiceAlertDays system
preferences. On every circulation check-in, if the item is linked to a
non-cancelled acquisitions order, aqorders_items.received is stamped with
the current datetime (first check-in only). If AutoCloseInvoicesOnCheckin
is enabled and all items on the invoice are now received, the invoice is
closed automatically.

New Koha::Acquisition::Invoice::check_and_close() method contains the
close logic using DBIC queries. C4::Acquisition::CheckAndCloseInvoice()
is a thin wrapper for backward compatibility.

Additional features:
- "Check & close if all items received" button on the invoice page
  (acqui/invoice.pl + invoice.tt)
- Batch "Close completed invoices" tool (acqui/close-completed-invoices.pl
  + close-completed-invoices.tt)
- Staff home page alert when open invoices have items outstanding for
  more than AutoCloseInvoiceAlertDays days (mainpage.pl + intranet-main.tt)

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]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to