Fix gross tax calculations when inserting/editing products (bug 519)