{
    "id": "pdo179-import-transaction",
    "title": "Импортировать накладную и её строки целиком",
    "columns": [
        "Наблюдение",
        "Результат"
    ],
    "rows": [
        [
            "После ошибки: накладных",
            0
        ],
        [
            "После ошибки: строк",
            0
        ],
        [
            "Сохранённая накладная",
            "IN-179"
        ],
        [
            "Сохранённые позиции",
            "CABLE: 2; CLIP: 5"
        ],
        [
            "Файл",
            "receipt.csv"
        ]
    ],
    "checks": {
        "check_error_caught": true,
        "invoice_rolled_back": true,
        "lines_rolled_back": true,
        "pdo_transaction_finished": true,
        "server_transaction_finished": true,
        "receipt_has_two_lines": true,
        "first_line": true,
        "second_line": true,
        "same_invoice": true,
        "committed": true,
        "owned_objects_removed": true
    },
    "observations": {
        "failure": {
            "failed": true,
            "state": "HY000",
            "code": 20018
        },
        "after_failure": {
            "invoices": 0,
            "lines": 0,
            "pdo_transaction": false,
            "server_transactions": 0
        },
        "saved": [
            {
                "invoice": "IN-179",
                "line_no": 1,
                "sku": "CABLE",
                "quantity": 2
            },
            {
                "invoice": "IN-179",
                "line_no": 2,
                "sku": "CLIP",
                "quantity": 5
            }
        ]
    },
    "runtime": {
        "php": "8.5.11",
        "extension": "8.5.11",
        "pdo": "8.5.11",
        "driver": "dblib",
        "server_version": "17.0.5035.5",
        "client": "freetds v1.3.17",
        "tds_version": "7.4",
        "database": "phpmanual179",
        "transport": "private_loopback_tcp"
    },
    "owned_objects": [
        {
            "type": "TABLE",
            "name": "pdo179_invoice_3c0a646733d2"
        },
        {
            "type": "TABLE",
            "name": "pdo179_invoice_line_db8ebf711a7f"
        }
    ],
    "removed_objects": [
        {
            "type": "TABLE",
            "name": "pdo179_invoice_line_db8ebf711a7f"
        },
        {
            "type": "TABLE",
            "name": "pdo179_invoice_3c0a646733d2"
        }
    ]
}
