ApiDoc BACKEND

Details extends Model

Modelo donde se valida y se carga la información de los detalles del material posterior a la optimización usado para generar un cutlist general (Paneles).

Table of Contents

Properties

$component  : mixed
$height  : mixed
$materialWastePercentage  : mixed
$panelsQty  : mixed
$percentage  : mixed
$totalArea  : mixed
$usedArea  : mixed
$uuid  : mixed
$width  : mixed

Methods

getCatMaterial()  : CatPanels|null
Desc: Retorna el material activo
getMaterial()  : Panels|null
Desc: Retorna el material por uuid
getMaterialInfo()  : array{uuid: string, name: string, description: string|null, supplier: string, unitPrice: float, material_type: string, component: mixed, quantity: int, usedAreaPercentage: float|int, totalPrice: float, currency: string, type: string, dimensions: array{width: float, height: float, thickness: float}, unit: string}
Desc: Retorna la información del material en un array de datos.
rules()  : array<string|int, mixed>
Desc: Reglas de validación.

Properties

$materialWastePercentage

public mixed $materialWastePercentage

$percentage

public mixed $percentage

Methods

getCatMaterial()

Desc: Retorna el material activo

public getCatMaterial(mixed $id) : CatPanels|null

Notes: n/a, Ref: n/a

Date: 2025-08-05, Version: v0.2507.01

Example: n/a

Parameters
$id : mixed
Return values
CatPanels|null

getMaterial()

Desc: Retorna el material por uuid

public getMaterial(string $uuid) : Panels|null

Notes: n/a, Ref: n/a

Date: 2025-08-05, Version: v0.2507.01

Example: n/a

Parameters
$uuid : string
Return values
Panels|null

getMaterialInfo()

Desc: Retorna la información del material en un array de datos.

public getMaterialInfo() : array{uuid: string, name: string, description: string|null, supplier: string, unitPrice: float, material_type: string, component: mixed, quantity: int, usedAreaPercentage: float|int, totalPrice: float, currency: string, type: string, dimensions: array{width: float, height: float, thickness: float}, unit: string}

Notes: n/a, Ref: n/a

Date: 2025-08-05, Version: v0.2507.01

Example: n/a

Return values
array{uuid: string, name: string, description: string|null, supplier: string, unitPrice: float, material_type: string, component: mixed, quantity: int, usedAreaPercentage: float|int, totalPrice: float, currency: string, type: string, dimensions: array{width: float, height: float, thickness: float}, unit: string}

        
On this page

Search results