Skip to content

Use removeBonds in Asset.update_product()

Administrator requested to merge feature/asset-remove-bonds into master

When making a request to change an asset tariff, we found that if the new product (product_id) is the same that the asset already has, and the change only depends on additional bonds, we recieve an error saying that the asset already has that requested product.

To avoid that, we need to first remove the old bonds in those cases, and do not send the product_id.

Merge request reports

Loading