ApiDoc BACKEND

UploadSpreadsheetForm extends Model

Table of Contents

Properties

$spreadsheetFile  : UploadedFile

Methods

readSpreedsheetDataAcc()  : mixed
Desc: Lectura de los datos (no blob) y devuelve un array con la información recopilada
readSpreedsheetDataHardware()  : mixed
Desc: Lectura de los datos (no blob) y devuelve un array con la información recopilada
readSpreedsheetDataMisc()  : mixed
Desc: Lectura de los datos (no blob) y devuelve un array con la información recopilada
readSpreedsheetDataPanel()  : mixed
Desc: Lectura de los datos (no blob) y devuelve un array con la información recopilada
readSpreedsheetDataProduct()  : mixed
Desc: Lectura de los datos (no blob) y devuelve un array con la información recopilada
readSpreedsheetDataProfile()  : mixed
Desc: Lectura de los datos (no blob) y devuelve un array con la información recopilada
readSpreedsheetDataSupplier()  : array<string, array{name: mixed, status: int, business_name: mixed, rfc: mixed, contact_name: mixed, contact_tel: mixed, business_tel: mixed, contact_email: mixed, business_email: mixed, website: mixed, business_address: mixed}>
Desc: Lectura de los datos (no blob) y devuelve un array con la información recopilada
readSpreedsImagesAndInsert()  : mixed
Desc: Obtiene las imagenes del archivo y las incorpora en el array de datos leído
rules()  : mixed
verifyCurrency()  : array{currency_id: int, convert_currency: bool}
Desc: Verifica que el ID de la divisa obtenido de la hoja de cálculo sea válida, retorna el ID y si se trata de una conversión.

Properties

Methods

readSpreedsheetDataAcc()

Desc: Lectura de los datos (no blob) y devuelve un array con la información recopilada

public static readSpreedsheetDataAcc(Worksheet $sheet) : mixed
Parameters
$sheet : Worksheet

readSpreedsheetDataHardware()

Desc: Lectura de los datos (no blob) y devuelve un array con la información recopilada

public static readSpreedsheetDataHardware(Worksheet $sheet) : mixed
Parameters
$sheet : Worksheet

readSpreedsheetDataMisc()

Desc: Lectura de los datos (no blob) y devuelve un array con la información recopilada

public static readSpreedsheetDataMisc(Worksheet $sheet) : mixed
Parameters
$sheet : Worksheet

readSpreedsheetDataPanel()

Desc: Lectura de los datos (no blob) y devuelve un array con la información recopilada

public static readSpreedsheetDataPanel(Worksheet $sheet) : mixed
Parameters
$sheet : Worksheet

readSpreedsheetDataProduct()

Desc: Lectura de los datos (no blob) y devuelve un array con la información recopilada

public static readSpreedsheetDataProduct(Worksheet $sheet) : mixed
Parameters
$sheet : Worksheet

readSpreedsheetDataProfile()

Desc: Lectura de los datos (no blob) y devuelve un array con la información recopilada

public static readSpreedsheetDataProfile(Worksheet $sheet) : mixed
Parameters
$sheet : Worksheet

readSpreedsheetDataSupplier()

Desc: Lectura de los datos (no blob) y devuelve un array con la información recopilada

public static readSpreedsheetDataSupplier(Worksheet $sheet) : array<string, array{name: mixed, status: int, business_name: mixed, rfc: mixed, contact_name: mixed, contact_tel: mixed, business_tel: mixed, contact_email: mixed, business_email: mixed, website: mixed, business_address: mixed}>
Parameters
$sheet : Worksheet
Return values
array<string, array{name: mixed, status: int, business_name: mixed, rfc: mixed, contact_name: mixed, contact_tel: mixed, business_tel: mixed, contact_email: mixed, business_email: mixed, website: mixed, business_address: mixed}>

readSpreedsImagesAndInsert()

Desc: Obtiene las imagenes del archivo y las incorpora en el array de datos leído

public static readSpreedsImagesAndInsert(Worksheet $sheet, array<string|int, mixed> $data, string $pathMatName[, mixed $multiple = false ]) : mixed
Parameters
$sheet : Worksheet
$data : array<string|int, mixed>

Datos a insertar para almacenar los datos de la imagen.

$pathMatName : string

Nombre del path donde se almancenará la imagen (panels,accessories,hardware,misc,material_profiles)

$multiple : mixed = false

verifyCurrency()

Desc: Verifica que el ID de la divisa obtenido de la hoja de cálculo sea válida, retorna el ID y si se trata de una conversión.

public static verifyCurrency(mixed $currencyID, int $defaultCurrencyID) : array{currency_id: int, convert_currency: bool}
Parameters
$currencyID : mixed
$defaultCurrencyID : int
Return values
array{currency_id: int, convert_currency: bool}

        
On this page

Search results