{
  "validated_at": "2026-05-05",
  "environment": "http://demo.enterfarmaplus.test",
  "target_product": {
    "item_id": 3,
    "internal_id": "QA-47826544",
    "description": "QA Item Regression 47826544",
    "available_warehouse_ids": [1, 2],
    "can_validate_not_initialized_branch_case": false,
    "reason": "The product already has item_warehouse and pricing state for warehouse_id=2, which matches the accepted workflow for local branch pricing."
  },
  "page": {
    "route": "/items/branch-pricing",
    "loaded": true
  },
  "branch": {
    "warehouse_id": 2,
    "description": "Almacen - Sucursal QA Browser 20260314",
    "pricing_state_before": {
      "is_initialized": true,
      "status": "Tiene precios propios",
      "has_pending_presentations": false
    }
  },
  "presentations": {
    "count_before": 1,
    "count_after_reopen": 1,
    "ids_before": [148],
    "ids_after": [148],
    "all_presentations_reopened": true
  },
  "local_price_save": {
    "table": "item_unit_type_warehouse_price",
    "row_id": 36,
    "item_unit_type_id": 148,
    "warehouse_id": 2,
    "price1_before": 99.5,
    "price1_after": 99.51,
    "save_status": 200,
    "save_success": true,
    "save_message": "Precios por sucursal guardados correctamente."
  },
  "master_price": {
    "item_sale_unit_price_before": 23,
    "item_sale_unit_price_after": 23,
    "presentation_price1_before": 25.5,
    "presentation_price1_after": 25.5,
    "presentation_price2_before": 22,
    "presentation_price2_after": 22,
    "presentation_price3_before": 21,
    "presentation_price3_after": 21,
    "unchanged": true
  },
  "non_initialized_branch_probe": {
    "probe_item_id": 34,
    "probe_description": "QA E2E Lot Item 97303852",
    "available_warehouse_ids": [1],
    "backend_returns_presentations": true,
    "presentation_count": 1,
    "warehouse_2_initialized": false,
    "ui_allows_warehouse_2_selection": false,
    "expected_behavior": true,
    "reason": "branch_pricing.vue localPricingWarehouses includes only available_warehouse_ids and initialized pricing states. This is accepted because local pricing should be configured after the product is registered/enabled in the branch."
  },
  "accepted_business_flow": "First register/enable the product in the branch, then show its presentations, then configure local branch prices.",
  "conclusion": "Target product validates branch pricing for an initialized branch. Blocking local pricing for a non-initialized branch is accepted behavior; no code change is required."
}
