UPdated invoice code by bhanu