Bug 10736: show duplicate invoice warning on second invoice
authorJared Camins-Esakov <jcamins@cpbibliography.com>
Thu, 15 Aug 2013 15:28:30 +0000 (11:28 -0400)
committerGalen Charlton <gmc@esilibrary.com>
Fri, 16 Aug 2013 17:01:04 +0000 (17:01 +0000)
commit75f23ba7925d9a331cb221823d686c541591cbcf
tree426093e86f359704508661716afca0fc1122e7ae
parent29689de399a8927547c36e53461c7766ecc604f0
Bug 10736: show duplicate invoice warning on second invoice

If you have AcqWarnOnDuplicateInvoice set to warn it only warns if you have 2
or more invoices with the same number. It should warn if you're trying to
create a duplicate.

To test:
1) Turn on AcqWarnOnDuplicateInvoice.
2) Try to create an invoice that duplicates an invoice number you are already
   using exactly once.
3) Note that you get a warning after applying this patch.

Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com>
all tests pass

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
acqui/parcels.pl