Documentation

MovementProduct extends Movement
in package
uses TraitMovementCredit

Table of Contents

Constants

JOB_PROTECTED_FIELD_LIST  = []
JOB_PROTECTED_MAIN_ACTION  = \Vatjar\Jobs\Model\Job::MAIN_ACTION_MODEL
SOURCE_TYPE_CLASS  = [12 => \Vatjar\Amazon\Model\AmazonFcTransfer::class, 13 => \Vatjar\Amazon\Model\AmazonInbound::class, 14 => \Vatjar\Amazon\Model\AmazonReturn::class, 33 => \Vatjar\Api\Model\ApiOrderUpload::class]
SOURCE_TYPE_CREDIT  = [1, 3]
SOURCE_TYPE_PRODUCT  = [11, 12, 13]

Properties

$_existsModel  : bool
$activity_id  : mixed
$activity_invoice_id  : mixed
$amazon  : mixed
$awaiting_delete  : mixed
$change_time  : mixed
$create_time  : mixed
$currency_id  : mixed
$event_date  : mixed
$event_time  : mixed
$from_country_id  : mixed
$id  : mixed
$jobList  : mixed
$jobMergedData  : mixed
$jobProtectedCreate  : mixed
$jobProtectedDelete  : mixed
$jobProtectedModel  : mixed
$movement_perspective_id  : mixed
$movement_type_id  : mixed
$position  : mixed
$price  : mixed
$product_id  : mixed
$quantity  : mixed
$source_id  : mixed
$source_type  : mixed
$status_code  : mixed
$to_country_id  : mixed
$transid  : mixed
$update_time  : mixed
$user_id  : mixed
$value_eur  : mixed
$vatrate  : mixed

Methods

assignJobMergedData()  : static
assignJobMergedDataFor()  : static
beforeSave()  : mixed
delete()  : bool
{@inheritDoc}
exists()  : bool
fetchAsArray()  : mixed
fetchAsAssocArray()  : mixed
fetchAsMultiAssocArray()  : mixed
find()  : false|array<string|int, static>
findFirst()  : static|false
fixParameters()  : mixed
fromArray()  : mixed
getActivityId()  : int
getActivityInvoiceId()  : int
getAmazon()  : mixed
getAmazonClass()  : mixed
getAwaitingDelete()  : int
getBuyerVatCountryId()  : mixed
getBuyerVatid()  : mixed
getChangedFields()  : array<string|int, mixed>
Add Phalcon < 3.2 condition for compatibility {@inheritDoc}
getChangeTime()  : mixed
Get the value of change_time
getCreateTime()  : mixed
getCreditNote()  : bool
getCurrency()  : Currency|null
getCurrencyId()  : mixed
getDiscount()  : mixed
getEventDate()  : mixed
getEventTime()  : mixed
getFromCountryId()  : mixed
getGrossUnitPrice()  : mixed
getId()  : mixed
getInvoiceNumberId()  : mixed
getIsInvoice()  : bool
getJobInitObject()  : mixed
getJobList()  : array<string|int, Job>
getJobMergedData()  : array<string|int, mixed>
getMovementPerspectiveId()  : mixed
getMovementTypeId()  : int
getNetPrice()  : mixed
getNetUnitPrice()  : mixed
getNetUnitValueEur()  : mixed
getNetValueEur()  : mixed
getNormalizedVatRate()  : mixed
getPosition()  : mixed
getPrice()  : mixed
getProduct()  : Product|null
getProductId()  : mixed
getQuantity()  : int|null
getSellerVatid()  : mixed
getShip()  : mixed
getSourceId()  : mixed
getSourceType()  : mixed
getStatusCode()  : mixed
getThe()  : mixed
getToCountryId()  : mixed
getToVatidValidationStatusId()  : mixed
getTransid()  : mixed
getUnitPrice()  : mixed
getUpdateTime()  : mixed
getUserId()  : mixed
getValueEur()  : int
getVatCountryId()  : mixed
getVatrate()  : mixed
initialize()  : mixed
isCredit()  : mixed
isProduct()  : mixed
loadJobList()  : array<string|int, Job>
loadJobListFor()  : array<string|int, Job>
loadMergedDataFor()  : mixed
loadMergedDataFromJob()  : mixed
mapper()  : mixed
save()  : bool
set()  : mixed
setBuyerVatCountryId()  : mixed
setBuyerVatid()  : MovementCredit
setChangeTime()  : self
Set the value of change_time
setCreateTime()  : $this
If $createTime is null, default value now.
setCurrencyId()  : self
setDiscount()  : MovementCredit
setFromCountryId()  : self
setPrice()  : self
setProductId()  : self
setQuantity()  : mixed
setShip()  : MovementCredit
setStatusCode()  : self
setToCountryId()  : self
setToVatidValidationStatusId()  : mixed
setTransid()  : self
setUpdateTime()  : $this
If $updateTime is null, default value now.
setValueEur()  : self
sourceTypeIsCredit()  : mixed
sourceTypeIsProduct()  : mixed
transactionType()  : mixed
writeAttributeIfNeeded()  : mixed
_createKey()  : mixed
_isExistsModel()  : mixed
_loadExistsModel()  : bool
getJobparameters()  : mixed
getJobSecondaryId()  : mixed
getJobUserId()  : mixed
saveJobProtectedData()  : mixed

Constants

JOB_PROTECTED_MAIN_ACTION

public mixed JOB_PROTECTED_MAIN_ACTION = \Vatjar\Jobs\Model\Job::MAIN_ACTION_MODEL

SOURCE_TYPE_CLASS

public mixed SOURCE_TYPE_CLASS = [12 => \Vatjar\Amazon\Model\AmazonFcTransfer::class, 13 => \Vatjar\Amazon\Model\AmazonInbound::class, 14 => \Vatjar\Amazon\Model\AmazonReturn::class, 33 => \Vatjar\Api\Model\ApiOrderUpload::class]

SOURCE_TYPE_CREDIT

public mixed SOURCE_TYPE_CREDIT = [1, 3]

SOURCE_TYPE_PRODUCT

public mixed SOURCE_TYPE_PRODUCT = [11, 12, 13]

Properties

$activity_id

protected mixed $activity_id

$activity_invoice_id

protected mixed $activity_invoice_id

$awaiting_delete

protected mixed $awaiting_delete

$change_time

protected mixed $change_time

$currency_id

protected mixed $currency_id

$from_country_id

protected mixed $from_country_id

$movement_perspective_id

protected mixed $movement_perspective_id

$movement_type_id

protected mixed $movement_type_id

$source_type

protected mixed $source_type

$status_code

protected mixed $status_code

$to_country_id

protected mixed $to_country_id

Methods

assignJobMergedData()

public assignJobMergedData([array<string|int, mixed> $opt = [] ]) : static
Parameters
$opt : array<string|int, mixed> = []
Return values
static

exists()

public exists() : bool
Return values
bool

fetchAsArray()

public static fetchAsArray([mixed $parameter = null ]) : mixed
Parameters
$parameter : mixed = null

fetchAsAssocArray()

public static fetchAsAssocArray([mixed $parameter = null ][, mixed $key = 'id' ][, mixed $cols = null ]) : mixed
Parameters
$parameter : mixed = null
$key : mixed = 'id'
$cols : mixed = null

fetchAsMultiAssocArray()

public static fetchAsMultiAssocArray([mixed $parameter = null ][, mixed $keyname = ['id'] ][, mixed $cols = null ]) : mixed
Parameters
$parameter : mixed = null
$keyname : mixed = ['id']
$cols : mixed = null

find()

public static find([array<string|int, mixed>|null|int $parameters = null ]) : false|array<string|int, static>
Parameters
$parameters : array<string|int, mixed>|null|int = null
Return values
false|array<string|int, static>

findFirst()

public static findFirst([array<string|int, mixed>|null|int $parameters = null ]) : static|false
Parameters
$parameters : array<string|int, mixed>|null|int = null
Return values
static|false

fixParameters()

public static fixParameters([mixed $parameters = null ]) : mixed
Parameters
$parameters : mixed = null

fromArray()

public static fromArray(mixed $array) : mixed
Parameters
$array : mixed

getActivityId()

public getActivityId() : int
Return values
int

getActivityInvoiceId()

public getActivityInvoiceId() : int
Return values
int

getAwaitingDelete()

public getAwaitingDelete() : int
Return values
int

getChangedFields()

Add Phalcon < 3.2 condition for compatibility {@inheritDoc}

public getChangedFields() : array<string|int, mixed>
Tags
see
Model::getChangedFields()
Return values
array<string|int, mixed>

getChangeTime()

Get the value of change_time

public getChangeTime() : mixed

getCreditNote()

public getCreditNote() : bool
Return values
bool

getCurrencyId()

public getCurrencyId() : mixed

getEventDate()

public getEventDate() : mixed

getEventTime()

public getEventTime() : mixed

getFromCountryId()

public getFromCountryId() : mixed

getGrossUnitPrice()

public getGrossUnitPrice() : mixed

getIsInvoice()

public getIsInvoice() : bool
Return values
bool

getJobInitObject()

public static getJobInitObject(mixed $userId, mixed $secondary[, array<string|int, mixed> $data = [] ]) : mixed
Parameters
$userId : mixed
$secondary : mixed
$data : array<string|int, mixed> = []

getJobList()

public getJobList([array<string|int, mixed> $opt = [] ]) : array<string|int, Job>
Parameters
$opt : array<string|int, mixed> = []
Return values
array<string|int, Job>

getJobMergedData()

public getJobMergedData([array<string|int, mixed> $opt = [] ]) : array<string|int, mixed>
Parameters
$opt : array<string|int, mixed> = []
Return values
array<string|int, mixed>

getMovementPerspectiveId()

public getMovementPerspectiveId() : mixed

getMovementTypeId()

public getMovementTypeId() : int
Return values
int

getNetPrice()

public getNetPrice() : mixed

getNetUnitPrice()

public getNetUnitPrice() : mixed

getNetUnitValueEur()

public getNetUnitValueEur() : mixed

getNetValueEur()

public getNetValueEur() : mixed

getNormalizedVatRate()

public getNormalizedVatRate() : mixed

getPosition()

public getPosition() : mixed

getProductId()

public getProductId() : mixed

getQuantity()

public getQuantity() : int|null
Return values
int|null

getSourceId()

public getSourceId() : mixed

getSourceType()

public getSourceType() : mixed

getStatusCode()

public getStatusCode() : mixed

getThe()

public static getThe(mixed $paramater) : mixed
Parameters
$paramater : mixed

getToCountryId()

public getToCountryId() : mixed

getTransid()

public getTransid() : mixed

getValueEur()

public getValueEur() : int
Return values
int

loadJobList()

public loadJobList([array<string|int, mixed> $opt = [] ]) : array<string|int, Job>
Parameters
$opt : array<string|int, mixed> = []
Return values
array<string|int, Job>

loadMergedDataFromJob()

public static loadMergedDataFromJob(Job $job[, array<string|int, mixed> $opt = [] ]) : mixed
Parameters
$job : Job
$opt : array<string|int, mixed> = []

mapper()

public static mapper(array<string|int, mixed> $map, array<string|int, mixed> $original[, bool $reverse = true ]) : mixed
Parameters
$map : array<string|int, mixed>
$original : array<string|int, mixed>
$reverse : bool = true

save()

public save([mixed $data = null ][, mixed $whiteList = null ][, mixed $force = false ]) : bool
Parameters
$data : mixed = null
$whiteList : mixed = null
$force : mixed = false
Return values
bool

set()

public set(mixed $property, mixed $value) : mixed
Parameters
$property : mixed
$value : mixed

setBuyerVatCountryId()

public setBuyerVatCountryId(mixed $buyer_vat_country_id) : mixed
Parameters
$buyer_vat_country_id : mixed

setChangeTime()

Set the value of change_time

public setChangeTime(mixed $change_time) : self
Parameters
$change_time : mixed
Return values
self

setCreateTime()

If $createTime is null, default value now.

public setCreateTime([mixed $createTime = null ]) : $this
Parameters
$createTime : mixed = null
Return values
$this

setCurrencyId()

public setCurrencyId(mixed $currency_id) : self
Parameters
$currency_id : mixed
Return values
self

setFromCountryId()

public setFromCountryId(mixed $from_country_id) : self
Parameters
$from_country_id : mixed
Return values
self

setPrice()

public setPrice(mixed $price) : self
Parameters
$price : mixed
Return values
self

setProductId()

public setProductId(mixed $product_id) : self
Parameters
$product_id : mixed
Return values
self

setQuantity()

public setQuantity(mixed $q) : mixed
Parameters
$q : mixed

setStatusCode()

public setStatusCode(mixed $status_code) : self
Parameters
$status_code : mixed
Return values
self

setToCountryId()

public setToCountryId(mixed $to_country_id) : self
Parameters
$to_country_id : mixed
Return values
self

setToVatidValidationStatusId()

public setToVatidValidationStatusId(mixed $to_vatid_validation_status_id) : mixed
Parameters
$to_vatid_validation_status_id : mixed

setTransid()

public setTransid(string $transid) : self
Parameters
$transid : string
Return values
self

setUpdateTime()

If $updateTime is null, default value now.

public setUpdateTime([mixed $updateTime = null ]) : $this
Parameters
$updateTime : mixed = null
Return values
$this

setValueEur()

public setValueEur(float $valueEur) : self
Parameters
$valueEur : float
Return values
self

sourceTypeIsCredit()

public static sourceTypeIsCredit(int $sourceType) : mixed
Parameters
$sourceType : int

sourceTypeIsProduct()

public static sourceTypeIsProduct(int $sourceType) : mixed
Parameters
$sourceType : int

transactionType()

public transactionType(Country $reportCountry) : mixed
Parameters
$reportCountry : Country

writeAttributeIfNeeded()

public writeAttributeIfNeeded(mixed $attribute, mixed $value) : mixed
Parameters
$attribute : mixed
$value : mixed

_createKey()

protected static _createKey(mixed $parameters) : mixed
Parameters
$parameters : mixed

getJobparameters()

protected getJobparameters(mixed $dalayedSave) : mixed
Parameters
$dalayedSave : mixed

saveJobProtectedData()

protected saveJobProtectedData(mixed $subAction, array<string|int, mixed> $data) : mixed
Parameters
$subAction : mixed
$data : array<string|int, mixed>

        
On this page

Search results