Invoice fixed purchase bug