ApiDoc BACKEND

CatMisc extends ActiveRecord

This is the model class for table "cat_misc".

Table of Contents

Properties

$convert_currency  : int
$created_at  : string
$currency  : Currency
$fk_currency  : int
$fk_misc  : int
$fk_provider  : int
$fkMisc  : Misc
$fkProvider  : Providers
$fkSystemUnits  : SystemUnits
$id  : int
$length  : float
$price  : float
$quantity  : int
$status  : int
$type  : string
$updated_at  : string
$volume  : float
$weight  : float

Methods

fields()  : array<string|int, mixed>
Desc: Columnas a utilizar de los registros
findActive()  : CatMisc|null
Desc: Encuentra y retorna el item activo.
getCurrency()  : ActiveQuery
Desc: Obtiene query para [[Currency]]
getFkMisc()  : ActiveQuery
Desc: Obtiene query para [[FkMisc]].
getFkProvider()  : ActiveQuery
Desc: Obtiene query para [[FkProvider]].
getFkSystemUnits()  : ActiveQuery
Desc: Obtiene query para [[FkSystemUnits]]\
getFormatValue()  : array{quantity_pcs: int, volume: float, unit: string, weight_kg: mixed, weight_lb: mixed, length_m: mixed, length_inches: mixed}
Desc: Retorna el tipo de valor esperado según el tipo de unidad.
rules()  : array<string|int, mixed>
Desc: Reglas de validación.
tableName()  : string
Desc: Nombre de la tabla de la base de datos.

Properties

$convert_currency

public int $convert_currency

Convertir divisa true/false, 1/0

$created_at

public string $created_at

$type

public string $type

enum('MISC1','MISC2','MISC3','MISC4')

$updated_at

public string $updated_at

Methods

findActive()

Desc: Encuentra y retorna el item activo.

public static findActive(int $id) : CatMisc|null

Notes: n/a,

Ref: CatMisc

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

Example: n/a

Parameters
$id : int
Tags
throws
InvalidConfigException
Return values
CatMisc|null

getFormatValue()

Desc: Retorna el tipo de valor esperado según el tipo de unidad.

public getFormatValue() : array{quantity_pcs: int, volume: float, unit: string, weight_kg: mixed, weight_lb: mixed, length_m: mixed, length_inches: mixed}

Notes: n/a,

Ref: UnitsConverter

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

Example: n/a

Tags
throws
InvalidConfigException
Return values
array{quantity_pcs: int, volume: float, unit: string, weight_kg: mixed, weight_lb: mixed, length_m: mixed, length_inches: mixed}

        
On this page

Search results