For some unknown reasons the fully capture status is not saved into the order, which make the call to tamaraServiceCapture that comes eaither from the BM or CaptureShippedOrder to fail. The returned error is:
{
"message": "The order ... cannot be moved to the status fully_captured from fully_captured",
"errors": [{
"error_code": "transition_not_allowed",
"data": {
"order_id": "...",
"old_state": "fully_captured",
"new_state": "fully_captured"
}
}],
"data": {
"capture_ids": ["...."]
},
"title": null,
"screen_type": null
}
https://github.com/tamara-solution/salesforce/blob/232ede527bbf3e715595d54cd0d3fa353f0dadff/cartridges/int_tamara_core/cartridge/scripts/services/tamaraServiceCapture.js#L33
For some unknown reasons the fully capture status is not saved into the order, which make the call to tamaraServiceCapture that comes eaither from the BM or CaptureShippedOrder to fail. The returned error is:
A quick fix to this would be:
When this error occurs, simply call tamaraServiceOrderDetail.