FacturaScripts

RegimenIVA
in package

This class centralizes all common method for VAT Regime.

Tags
collaborator

Daniel Fernández Giménez contacto@danielfg.es

Table of Contents

Constants

ES_TAX_EXCEPTION_E1  = \FacturaScripts\Core\Lib\TaxExceptions::ES_TAX_EXCEPTION_20
ES_TAX_EXCEPTION_E2  = \FacturaScripts\Core\Lib\TaxExceptions::ES_TAX_EXCEPTION_21
ES_TAX_EXCEPTION_E3  = \FacturaScripts\Core\Lib\TaxExceptions::ES_TAX_EXCEPTION_22
ES_TAX_EXCEPTION_E4  = \FacturaScripts\Core\Lib\TaxExceptions::ES_TAX_EXCEPTION_23_24
ES_TAX_EXCEPTION_E5  = \FacturaScripts\Core\Lib\TaxExceptions::ES_TAX_EXCEPTION_25
ES_TAX_EXCEPTION_E6  = \FacturaScripts\Core\Lib\TaxExceptions::ES_TAX_EXCEPTION_OTHER
ES_TAX_EXCEPTION_N1  = \FacturaScripts\Core\Lib\TaxExceptions::ES_TAX_EXCEPTION_7
ES_TAX_EXCEPTION_N2  = \FacturaScripts\Core\Lib\TaxExceptions::ES_TAX_EXCEPTION_68_70
ES_TAX_EXCEPTION_PASSIVE_SUBJECT  = \FacturaScripts\Core\Lib\TaxExceptions::ES_TAX_EXCEPTION_84
TAX_SYSTEM_AGRARIAN  = 'Agrario'
TAX_SYSTEM_CASH_CRITERIA  = 'Caja'
TAX_SYSTEM_EXEMPT  = 'Exento'
TAX_SYSTEM_GENERAL  = 'General'
TAX_SYSTEM_GOLD  = 'Oro'
TAX_SYSTEM_GROUP_ENTITIES  = 'Grupo entidades'
TAX_SYSTEM_ONE_STOP_SHOP_IOSS  = 'One Stop Shop (IOSS)'
TAX_SYSTEM_ONE_STOP_SHOP_OSS  = 'One Stop Shop (OSS)'
TAX_SYSTEM_SIMPLIFIED  = 'Simplificado'
TAX_SYSTEM_SPECIAL_SMALL_BUSINESS  = 'Pequeño empresario'
TAX_SYSTEM_SURCHARGE  = 'Recargo'
TAX_SYSTEM_TRAVEL  = 'Agencias de viaje'
TAX_SYSTEM_USED_GOODS  = 'Bienes usados'

Properties

$removedValues  : array<string|int, mixed>
$values  : array<string|int, mixed>

Methods

add()  : void
addException()  : void
all()  : array<string|int, mixed>
allExceptions()  : array<string|int, mixed>
defaultValue()  : string
isValidCombination()  : bool
Comprueba si la combinación de operación y excepción de IVA es válida.
remove()  : void
removeException()  : void

Constants

ES_TAX_EXCEPTION_E1

public mixed ES_TAX_EXCEPTION_E1 = \FacturaScripts\Core\Lib\TaxExceptions::ES_TAX_EXCEPTION_20

ES_TAX_EXCEPTION_E2

public mixed ES_TAX_EXCEPTION_E2 = \FacturaScripts\Core\Lib\TaxExceptions::ES_TAX_EXCEPTION_21

ES_TAX_EXCEPTION_E3

public mixed ES_TAX_EXCEPTION_E3 = \FacturaScripts\Core\Lib\TaxExceptions::ES_TAX_EXCEPTION_22

ES_TAX_EXCEPTION_E4

public mixed ES_TAX_EXCEPTION_E4 = \FacturaScripts\Core\Lib\TaxExceptions::ES_TAX_EXCEPTION_23_24

ES_TAX_EXCEPTION_E5

public mixed ES_TAX_EXCEPTION_E5 = \FacturaScripts\Core\Lib\TaxExceptions::ES_TAX_EXCEPTION_25

ES_TAX_EXCEPTION_E6

public mixed ES_TAX_EXCEPTION_E6 = \FacturaScripts\Core\Lib\TaxExceptions::ES_TAX_EXCEPTION_OTHER

ES_TAX_EXCEPTION_N1

public mixed ES_TAX_EXCEPTION_N1 = \FacturaScripts\Core\Lib\TaxExceptions::ES_TAX_EXCEPTION_7

ES_TAX_EXCEPTION_N2

public mixed ES_TAX_EXCEPTION_N2 = \FacturaScripts\Core\Lib\TaxExceptions::ES_TAX_EXCEPTION_68_70

ES_TAX_EXCEPTION_PASSIVE_SUBJECT

public mixed ES_TAX_EXCEPTION_PASSIVE_SUBJECT = \FacturaScripts\Core\Lib\TaxExceptions::ES_TAX_EXCEPTION_84

TAX_SYSTEM_AGRARIAN

public mixed TAX_SYSTEM_AGRARIAN = 'Agrario'

TAX_SYSTEM_CASH_CRITERIA

public mixed TAX_SYSTEM_CASH_CRITERIA = 'Caja'

TAX_SYSTEM_EXEMPT

public mixed TAX_SYSTEM_EXEMPT = 'Exento'

TAX_SYSTEM_GENERAL

public mixed TAX_SYSTEM_GENERAL = 'General'

TAX_SYSTEM_GOLD

public mixed TAX_SYSTEM_GOLD = 'Oro'

TAX_SYSTEM_GROUP_ENTITIES

public mixed TAX_SYSTEM_GROUP_ENTITIES = 'Grupo entidades'

TAX_SYSTEM_ONE_STOP_SHOP_IOSS

public mixed TAX_SYSTEM_ONE_STOP_SHOP_IOSS = 'One Stop Shop (IOSS)'

TAX_SYSTEM_ONE_STOP_SHOP_OSS

public mixed TAX_SYSTEM_ONE_STOP_SHOP_OSS = 'One Stop Shop (OSS)'

TAX_SYSTEM_SIMPLIFIED

public mixed TAX_SYSTEM_SIMPLIFIED = 'Simplificado'

TAX_SYSTEM_SPECIAL_SMALL_BUSINESS

public mixed TAX_SYSTEM_SPECIAL_SMALL_BUSINESS = 'Pequeño empresario'

TAX_SYSTEM_SURCHARGE

public mixed TAX_SYSTEM_SURCHARGE = 'Recargo'

TAX_SYSTEM_TRAVEL

public mixed TAX_SYSTEM_TRAVEL = 'Agencias de viaje'

TAX_SYSTEM_USED_GOODS

public mixed TAX_SYSTEM_USED_GOODS = 'Bienes usados'

Properties

$removedValues

private static array<string|int, mixed> $removedValues = []

$values

private static array<string|int, mixed> $values = []

Methods

add()

public static add(string $key, string $value) : void
Parameters
$key : string
$value : string

addException()

public static addException(string $key, string $value) : void

Use TaxExceptions::add() instead.

Parameters
$key : string
$value : string

all()

public static all() : array<string|int, mixed>
Return values
array<string|int, mixed>

allExceptions()

public static allExceptions() : array<string|int, mixed>

Use TaxExceptions::all() instead.

Return values
array<string|int, mixed>

defaultValue()

public static defaultValue() : string
Return values
string

isValidCombination()

Comprueba si la combinación de operación y excepción de IVA es válida.

public static isValidCombination(string|null $operation, string|null $exception, string $context) : bool

Use TaxExceptions::isValidCombination() instead.

Parameters
$operation : string|null

Valor de InvoiceOperation (intracomunitaria, exportacion, importacion, null…)

$exception : string|null

Valor de excepción de IVA (ES_20, ES_25, ES_PASSIVE_SUBJECT, null…)

$context : string

'sales' o 'purchases'

Return values
bool

remove()

public static remove(string $key) : void
Parameters
$key : string

removeException()

public static removeException(string $key) : void

Use TaxExceptions::remove() instead.

Parameters
$key : string

        
On this page

Search results