get_stock_gl_code function called twice in the add_supp_invoice. Fixed.