A company have a computer software (internally generated) which results in buying the programmes to users

The main customer of this programmes has bankrupt

so the software will not be sold ,Is Impairment should be ?

and also  a few programmes may be sold

So what’s the right Treatment For this according to IFRS?