ApiDoc BACKEND

DetailsHardware extends Model

Modelo donde se valida y se carga la información de los detalles del material hardware usado para generar un cutlist general.

Table of Contents

Properties

$component  : mixed
$quantity  : mixed
$type  : mixed
$uuid  : mixed

Methods

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

Properties

Methods

getCatMaterial()

Desc: Retorna el material activo

public getCatMaterial(int $id) : CatHardware|null

Notes: n/a, Ref: n/a

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

Example: n/a

Parameters
$id : int

ID del material

Return values
CatHardware|null

getMaterial()

Desc: Retorna el material por uuid

public getMaterial(string $uuid) : Hardware|null

Notes: n/a, Ref: n/a

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

Example: n/a

Parameters
$uuid : string
Return values
Hardware|null

getMaterialInfo()

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

public getMaterialInfo() : array{uuid: string, name: string, description: string, supplier: string, unitPrice: string, component: string, quantity: int, totalPrice: float, currency: string, type: string}

Notes: n/a, Ref: n/a

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

Example: n/a

Tags
throws
Exception
Return values
array{uuid: string, name: string, description: string, supplier: string, unitPrice: string, component: string, quantity: int, totalPrice: float, currency: string, type: string}

        
On this page

Search results