Fix bug on update invoice line in PgSQL