# Licenses

# Overview



# Create new license



# Update existing license



# Delete license



# Restore license

#### Problem description

Customer order upgrade and then cancel it.

Because we need license key as soon as the order is created, system automatically delete old license and create new one. To revert this process you need to follow next how to guide

#### Solution

Go to licenses (CTRL+/ and search license):

[![image.png](https://how-to-erp.dewesoft.com/uploads/images/gallery/2023-03/scaled-1680-/image.png)](https://how-to-erp.dewesoft.com/uploads/images/gallery/2023-03/image.png)

 Find newly created license and delete it:

[![image.png](https://how-to-erp.dewesoft.com/uploads/images/gallery/2023-03/scaled-1680-/jaGimage.png)](https://how-to-erp.dewesoft.com/uploads/images/gallery/2023-03/jaGimage.png)

Find old license which needs to be restored:

[![image.png](https://how-to-erp.dewesoft.com/uploads/images/gallery/2023-03/scaled-1680-/eGMimage.png)](https://how-to-erp.dewesoft.com/uploads/images/gallery/2023-03/eGMimage.png)

Open and restore it:

[![image.png](https://how-to-erp.dewesoft.com/uploads/images/gallery/2023-03/scaled-1680-/zaGimage.png)](https://how-to-erp.dewesoft.com/uploads/images/gallery/2023-03/zaGimage.png)

Create upgrade to, upgraded at and save it:

[![image.png](https://how-to-erp.dewesoft.com/uploads/images/gallery/2023-03/scaled-1680-/CVOimage.png)](https://how-to-erp.dewesoft.com/uploads/images/gallery/2023-03/CVOimage.png)

# Downgrade license

Old license:

- copy sale order item id from new one
- change ds\_licence\_id on serial to old one
- remove deleted at on old license
- remove upgrade\_ds\_license\_to\_id

New license:

- remove upgrade\_ds\_license\_from\_id
- delete license with button