Skip to content

Check asset product id before changing its tariff

Administrator requested to merge fix/change-tariff-logic into master

Pipeline will fail until https://gitlab.com/coopdevs/pymasmovil/-/merge_requests/92 is merged and published

Avoid MM Error:

fields: productId
message: El activo seleccionado es igual a la tarifa del cambio : 01t4I00004kGhj3QAC
status_code: 400

If the product_id from the new requested tariff doesn't change the old one (we only need to change their additional bonds), we would recieve this error, so we need to remove bonds first and do not change the product_id

Rebased with https://gitlab.com/coopdevs/somconnexio-mm-proxy/-/merge_requests/127. That one needs to be merged first and then fix this one.

Edited by Administrator

Merge request reports