BranchGoodProperty


Representa a una variante (Property) de un producto (Good) vinculado a la sucursal (Branch) en cuestión. Cuando un Good tiene Properties, contiene registros en la entidad GoodProperty. Luego, cuando ese Good es asociado a un Branch registrándose como BranchGood, los GoodProperties asociados son registrados como BranchGoodProperty. Esto permite modificar los datos por defecto que se traen desde GoodProperty y permite modificar el display_name, options y estado activo/inactivo para esa Branch en específico.

Modelo BranchGoodProperty

{
    "id": 1,
    "display_name": "Topping líquido",
    "options": 257,
    "disabled": false,
    "created_at": "2020-08-06 02:59:15",
    "updated_at": "2020-08-06 02:59:15",
    "branch_id": 2,
    "property_id": 1,
    "good_id": 1,
    "in_order": 65535,
    "custom_data": {
        "client_id": null,
        "branch_price_list_id": 27,
        "list_price_e2": 0,
        "display_price_e2": 0,
        "price_e2": 0,
        "currency": {
            "id": 29,
            "enabled": true,
            "iso": "USD",
            "symbol": "$",
            "conversion_factor": 1,
            "related_iso": "USD",
            "decimals_count": 2,
            "format": "$ 0.00",
            "decimal_point": ".",
            "use_thousands_separator": true,
            "thousands_separator": ",",
            "is_local": false,
            "is_international": true,
            "created_at": "2021-02-18 15:35:23",
            "updated_at": "2021-02-18 15:35:23",
            "company_id": 3,
            "is_custom": false,
            "branch_id": 2,
            "use_conversion": false,
            "available": true,
            "related_iso_expected": "VES",
            "related_iso_error": true
        },
        "conversion": {
            "list_price_e2": 0,
            "display_price_e2": 0,
            "price_e2": 0,
            "currency": {
                "id": 27,
                "enabled": true,
                "iso": "VES",
                "symbol": "Bs.S",
                "conversion_factor": 6.6e-7,
                "related_iso": "USD",
                "decimals_count": 2,
                "format": "$ 0.00",
                "decimal_point": ".",
                "use_thousands_separator": true,
                "thousands_separator": ",",
                "is_local": true,
                "is_international": false,
                "created_at": "2020-08-06 02:58:46",
                "updated_at": "2021-02-18 15:28:47",
                "company_id": 3,
                "is_custom": false,
                "branch_id": 2,
                "use_conversion": true,
                "available": true,
                "related_iso_expected": "VES",
                "related_iso_error": true
            }
        }
    },
    "options_data": {
        "use_value": 256,
        "use_name": null,
        "type_value": 257,
        "type_name": null,
        "is_multi_options": 256,
        "min_count": 0,
        "max_count": 1,
        "stack_count": 1,
        "is_dynamic": 0,
        "is_free": 0,
        "is_admin_customizable": 0
    },
    "property": {
        "id": 1,
        "name": "Topping líquido.",
        "type": 256,
        "disabled": false,
        "created_at": "2019-02-13 15:39:39",
        "updated_at": "2020-08-06 03:07:02",
        "property_group_id": null,
        "branch_group_id": 2,
        "branch_id": 0,
        "property_options": [
            {
                "id": 558,
                "name": "Fresa",
                "price_e2": 200000,
                "quantity": null,
                "sold_out": null,
                "in_order": 65535,
                "created_at": "2020-01-20 16:40:01",
                "updated_at": "2020-03-03 20:04:29",
                "property_id": 1
            },
            {
                "id": 561,
                "name": "Chocolate",
                "price_e2": 150000,
                "quantity": null,
                "sold_out": null,
                "in_order": 65535,
                "created_at": "2020-01-20 16:40:01",
                "updated_at": "2020-02-18 19:59:31",
                "property_id": 1
            },
            {
                "id": 559,
                "name": "Arequipe",
                "price_e2": 130000,
                "quantity": null,
                "sold_out": null,
                "in_order": 65535,
                "created_at": "2020-01-20 16:40:01",
                "updated_at": "2020-02-18 19:59:31",
                "property_id": 1
            },
            {
                "id": 560,
                "name": "Leche condensada",
                "price_e2": 200000,
                "quantity": null,
                "sold_out": null,
                "in_order": 65535,
                "created_at": "2020-01-20 16:40:01",
                "updated_at": "2020-02-19 16:58:48",
                "property_id": 1
            }
        ],
        "property_range": null,
        "property_text": null
    },
    "property_options": [
        {
            "id": 558,
            "name": "Fresa",
            "price_e2": 200000,
            "quantity": 38,
            "sold_out": false,
            "in_order": 65535,
            "created_at": "2020-01-20 16:40:01",
            "updated_at": "2020-03-03 20:04:29",
            "property_id": 1
        },
        {
            "id": 561,
            "name": "Chocolate",
            "price_e2": 150000,
            "quantity": 39,
            "sold_out": false,
            "in_order": 65535,
            "created_at": "2020-01-20 16:40:01",
            "updated_at": "2020-02-18 19:59:31",
            "property_id": 1
        },
        {
            "id": 559,
            "name": "Arequipe",
            "price_e2": 130000,
            "quantity": 47,
            "sold_out": false,
            "in_order": 65535,
            "created_at": "2020-01-20 16:40:01",
            "updated_at": "2020-02-18 19:59:31",
            "property_id": 1
        },
        {
            "id": 560,
            "name": "Leche condensada",
            "price_e2": 200000,
            "quantity": 47,
            "sold_out": false,
            "in_order": 65535,
            "created_at": "2020-01-20 16:40:01",
            "updated_at": "2020-02-19 16:58:48",
            "property_id": 1
        }
    ],
    "property_range": null,
    "property_text": null
}

Listar BranchGoodProperty

Listar BranchGoodProperty de BranchGood

{info} Soporta: Paginación Filters Carga dinámica

Método URI Cabeceras
GET /companies/{companyId}/branch-goods/{branchGoodId}/branch-good-properties N/A

Actualizar BranchGoodProperty

Método URI Cabeceras
PATCH /companies/{companyId}/branch-good-properties/{branchGoodPropertyId} Authorization
{
    "display_name": "string|max:64",
    "disabled": "boolean",
    "options": "numeric",
    "in_order": "integer|min:1"
}

Enlaces de BranchGoodProperty