ApiDoc BACKEND

Quotation extends ActiveRecord

This is the model class for table "quotation".

Table of Contents

Properties

$created_at  : string
$customer  : Customer
$customer_id  : int
$id  : int
$order  : string|null
$quotationItems  : array<string|int, QuotationItems>
$shipping  : float
$subtotal  : float
$taxes  : float
$total  : float|null
$updated_at  : string

Methods

beforeSave()  : mixed
buildMaterialsMap()  : array<string|int, array{detail: object, material_list: mixed, cut_list: mixed, design_details: mixed, image: mixed, image1: mixed, image2: mixed, image3: mixed}>
getCustomer()  : ActiveQuery
Gets query for [[Customer]].
getQuotationItems()  : ActiveQuery
Gets query for [[QuotationItems]].
orderGenerator()  : string
Desc: Genera formato de número de orden: ORD-xxxxx
rules()  : mixed
{@inheritdoc}
tableName()  : mixed
{@inheritdoc}

Properties

Methods

beforeSave()

public beforeSave(mixed $insert) : mixed
Parameters
$insert : mixed

buildMaterialsMap()

public static buildMaterialsMap(array<string|int, QuotationItems$items) : array<string|int, array{detail: object, material_list: mixed, cut_list: mixed, design_details: mixed, image: mixed, image1: mixed, image2: mixed, image3: mixed}>
Parameters
$items : array<string|int, QuotationItems>
Return values
array<string|int, array{detail: object, material_list: mixed, cut_list: mixed, design_details: mixed, image: mixed, image1: mixed, image2: mixed, image3: mixed}>

getCustomer()

Gets query for [[Customer]].

public getCustomer() : ActiveQuery
Return values
ActiveQuery

getQuotationItems()

Gets query for [[QuotationItems]].

public getQuotationItems() : ActiveQuery
Return values
ActiveQuery

orderGenerator()

Desc: Genera formato de número de orden: ORD-xxxxx

public static orderGenerator(int $number[, string $prefix = 'ORD' ][, int $length = 5 ]) : string

Notes: n/a, ref: n/a

Date: 2026-01-08, Version: v0.2601.10

Parameters
$number : int
$prefix : string = 'ORD'
$length : int = 5
Return values
string

rules()

{@inheritdoc}

public rules() : mixed

tableName()

{@inheritdoc}

public static tableName() : mixed

        
On this page

Search results