]> git.koha-community.org Git - koha.git/commit
Bug 15164 - Allow editing of the invoice number after initial saving
authorKyle M Hall <kyle@bywatersolutions.com>
Wed, 17 Aug 2016 13:43:01 +0000 (13:43 +0000)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 9 Sep 2016 14:16:55 +0000 (14:16 +0000)
commite87cf98c2e9220f8a2fdcee39d60054a3ef6836e
tree1b342ebea2fb94ca844fe9038e878ab4a2481f83
parentd356e71ecbc5cfb3980d4593ed490b99fe909606
Bug 15164 - Allow editing of the invoice number after initial saving

When you notice a typo in your invoice number after finishing with the
receiving process, the only way to correct it right now is in the
database - or by undoing all the steps and starting over.

It would be nice if the invoice number could be edited.

Test Plan:
1) Apply this patch
2) Browse to acqui/invoice.pl for an invoice
3) Note the new "Invoice number" field contains the existing invoice
4) Alter the invoice number
5) Save the invoice
6) Note the invoice number has been updated
7) Edit the invoice again
8) Attempt to save the invoice with an empty invoice number field
9) Note that you cannot save the invoice without having an invoice number

Followed test plan, works as expected.
Signed-off-by: Marc VĂ©ron <veron@veron.ch>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
acqui/invoice.pl
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoice.tt