Skip to content

Issue: transition_not_allowed #3

@maher640

Description

@maher640

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:

{
    "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
}

A quick fix to this would be:
When this error occurs, simply call tamaraServiceOrderDetail.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions