InvoiceOperation
in package
This class centralizes all available invoice operations.
Table of Contents
Constants
- BENEFIT_THIRD_PARTIES = 'benefit-third-parties'
- EXPORT = 'exportacion'
- IMPORT = 'importacion'
- INTRA_COMMUNITY = 'intracomunitaria'
- INTRA_COMMUNITY_SERVICES = 'intracom-servicios'
- REVERSE_CHARGE = 'inv-sujeto-pasivo'
- SUCCESSIVE_TRACT = 'successive-tract'
- TYPE_PURCHASE = 'purchase'
- TYPE_SALE = 'sale'
- WORK_CERTIFICATION = 'work-certification'
Properties
- $all : array<string|int, mixed>
- $removed : array<string|int, mixed>
- $types : array<string|int, mixed>
Methods
- add() : void
- all() : array<string|int, mixed>
- allForPurchases() : array<string|int, mixed>
- allForSales() : array<string|int, mixed>
- get() : string|null
- remove() : void
- defaultTypes() : array<string|int, mixed>
- filter() : array<string|int, mixed>
Constants
BENEFIT_THIRD_PARTIES
public
mixed
BENEFIT_THIRD_PARTIES
= 'benefit-third-parties'
EXPORT
public
mixed
EXPORT
= 'exportacion'
IMPORT
public
mixed
IMPORT
= 'importacion'
INTRA_COMMUNITY
public
mixed
INTRA_COMMUNITY
= 'intracomunitaria'
INTRA_COMMUNITY_SERVICES
public
mixed
INTRA_COMMUNITY_SERVICES
= 'intracom-servicios'
REVERSE_CHARGE
public
mixed
REVERSE_CHARGE
= 'inv-sujeto-pasivo'
SUCCESSIVE_TRACT
public
mixed
SUCCESSIVE_TRACT
= 'successive-tract'
TYPE_PURCHASE
public
mixed
TYPE_PURCHASE
= 'purchase'
TYPE_SALE
public
mixed
TYPE_SALE
= 'sale'
WORK_CERTIFICATION
public
mixed
WORK_CERTIFICATION
= 'work-certification'
Properties
$all
private
static array<string|int, mixed>
$all
= []
$removed
private
static array<string|int, mixed>
$removed
= []
$types
private
static array<string|int, mixed>
$types
= []
Methods
add()
public
static add(string $key, string $value[, string|null $type = null ]) : void
Parameters
- $key : string
- $value : string
- $type : string|null = null
all()
public
static all() : array<string|int, mixed>
Return values
array<string|int, mixed>allForPurchases()
public
static allForPurchases() : array<string|int, mixed>
Return values
array<string|int, mixed>allForSales()
public
static allForSales() : array<string|int, mixed>
Return values
array<string|int, mixed>get()
public
static get(string|null $key) : string|null
Parameters
- $key : string|null
Return values
string|nullremove()
public
static remove(string $key) : void
Parameters
- $key : string
defaultTypes()
private
static defaultTypes() : array<string|int, mixed>
Return values
array<string|int, mixed>filter()
private
static filter([string|null $type = null ]) : array<string|int, mixed>
Parameters
- $type : string|null = null