Unable to update Distribution level DFF which has closed project associated through REST API
We have Pay when get paid solution in place and When an AP Invoice distribution is transferred to projects and then to AR, we are trying to update the AR Invoice Number on the AP distribution line in the DFF.
But while doing this, it is throwing errors when the Project is closed/ when the task is non-billable but when we try from the front-end, we dont see any issues, updating the AR Invoice Number.
Please help on this. This the Rest API we are using