Fix [ bug #1116 ] Silent Warning when validating a customer invoice
[PostgreSQL]