Bug 12274: handle closed invoices properly on invoice details page
authorJacek Ablewicz <abl@biblos.pk.edu.pl>
Sat, 17 May 2014 08:30:15 +0000 (10:30 +0200)
committerGalen Charlton <gmc@esilibrary.com>
Wed, 21 May 2014 18:58:36 +0000 (18:58 +0000)
commit8ec1ffafea89fcb98d67e090a799398a434af18d
tree16e1214a90ac8077f71e8102ae6bfb64552761f7
parent3f9a8ccc18c8d97ac4167e313f4d3a685a9000dc
Bug 12274: handle closed invoices properly on invoice details page

Trivial fix for small regression (closed invoices are displayed as
"Open" on details page, and it's not possible to reopen the closed
invoice using "Save" button) introduced by bug 10613.

Test plan:

1) Create and close some invoices
2) Note that closed invoices are erroneously displayed as "Open"
on individual invoice[s] details page
3) Apply patch
4) Check previously closed invoices; their status on details page
should now be properly displayed as "Closed on ..." (and an option
for reopening would reappear as well)
5) Ensure that "Close" / "Reopen" checkboxes followed by "Save" button
do work as expected for individual open / closed invoices respectivelly.

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Works as described.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
acqui/invoice.pl