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_FIELD_LIST
public
mixed
JOB_PROTECTED_FIELD_LIST
= []
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
$_existsModel
protected
bool
$_existsModel
$activity_id
protected
mixed
$activity_id
$activity_invoice_id
protected
mixed
$activity_invoice_id
$amazon
protected
mixed
$amazon
= null
$awaiting_delete
protected
mixed
$awaiting_delete
$change_time
protected
mixed
$change_time
$create_time
protected
mixed
$create_time
$currency_id
protected
mixed
$currency_id
$event_date
protected
mixed
$event_date
$event_time
protected
mixed
$event_time
$from_country_id
protected
mixed
$from_country_id
$id
protected
mixed
$id
$jobList
protected
mixed
$jobList
$jobMergedData
protected
mixed
$jobMergedData
$jobProtectedCreate
protected
mixed
$jobProtectedCreate
= false
$jobProtectedDelete
protected
mixed
$jobProtectedDelete
= false
$jobProtectedModel
protected
mixed
$jobProtectedModel
= \Vatjar\Jobs\Model\Job::class
$movement_perspective_id
protected
mixed
$movement_perspective_id
$movement_type_id
protected
mixed
$movement_type_id
$position
protected
mixed
$position
$price
protected
mixed
$price
$product_id
protected
mixed
$product_id
$quantity
protected
mixed
$quantity
$source_id
protected
mixed
$source_id
$source_type
protected
mixed
$source_type
$status_code
protected
mixed
$status_code
$to_country_id
protected
mixed
$to_country_id
$transid
protected
mixed
$transid
$update_time
protected
mixed
$update_time
$user_id
protected
mixed
$user_id
$value_eur
protected
mixed
$value_eur
$vatrate
protected
mixed
$vatrate
Methods
assignJobMergedData()
public
assignJobMergedData([array<string|int, mixed> $opt = [] ]) : static
Parameters
- $opt : array<string|int, mixed> = []
Return values
staticassignJobMergedDataFor()
public
assignJobMergedDataFor(JobProtoctedCacheModel &$model[, array<string|int, mixed> $opt = [] ]) : static
Parameters
- $model : JobProtoctedCacheModel
- $opt : array<string|int, mixed> = []
Return values
staticbeforeSave()
public
beforeSave() : mixed
delete()
{@inheritDoc}
public
delete() : bool
Tags
Return values
boolexists()
public
exists() : bool
Return values
boolfetchAsArray()
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|falsefixParameters()
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
intgetActivityInvoiceId()
public
getActivityInvoiceId() : int
Return values
intgetAmazon()
public
getAmazon() : mixed
getAmazonClass()
public
getAmazonClass() : mixed
getAwaitingDelete()
public
getAwaitingDelete() : int
Return values
intgetBuyerVatCountryId()
public
getBuyerVatCountryId() : mixed
getBuyerVatid()
public
getBuyerVatid() : mixed
getChangedFields()
Add Phalcon < 3.2 condition for compatibility {@inheritDoc}
public
getChangedFields() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>getChangeTime()
Get the value of change_time
public
getChangeTime() : mixed
getCreateTime()
public
getCreateTime() : mixed
getCreditNote()
public
getCreditNote() : bool
Return values
boolgetCurrency()
public
getCurrency() : Currency|null
Return values
Currency|nullgetCurrencyId()
public
getCurrencyId() : mixed
getDiscount()
public
getDiscount() : mixed
getEventDate()
public
getEventDate() : mixed
getEventTime()
public
getEventTime() : mixed
getFromCountryId()
public
getFromCountryId() : mixed
getGrossUnitPrice()
public
getGrossUnitPrice() : mixed
getId()
public
getId() : mixed
getInvoiceNumberId()
public
getInvoiceNumberId() : mixed
getIsInvoice()
public
getIsInvoice() : bool
Return values
boolgetJobInitObject()
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
intgetNetPrice()
public
getNetPrice() : mixed
getNetUnitPrice()
public
getNetUnitPrice() : mixed
getNetUnitValueEur()
public
getNetUnitValueEur() : mixed
getNetValueEur()
public
getNetValueEur() : mixed
getNormalizedVatRate()
public
getNormalizedVatRate() : mixed
getPosition()
public
getPosition() : mixed
getPrice()
public
getPrice() : mixed
getProduct()
public
getProduct() : Product|null
Return values
Product|nullgetProductId()
public
getProductId() : mixed
getQuantity()
public
getQuantity() : int|null
Return values
int|nullgetSellerVatid()
public
getSellerVatid() : mixed
getShip()
public
getShip() : mixed
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
getToVatidValidationStatusId()
public
getToVatidValidationStatusId() : mixed
getTransid()
public
getTransid() : mixed
getUnitPrice()
public
getUnitPrice() : mixed
getUpdateTime()
public
getUpdateTime() : mixed
getUserId()
public
getUserId() : mixed
getValueEur()
public
getValueEur() : int
Return values
intgetVatCountryId()
public
getVatCountryId() : mixed
getVatrate()
public
getVatrate() : mixed
initialize()
public
initialize() : mixed
isCredit()
public
isCredit() : mixed
isProduct()
public
isProduct() : mixed
loadJobList()
public
loadJobList([array<string|int, mixed> $opt = [] ]) : array<string|int, Job>
Parameters
- $opt : array<string|int, mixed> = []
Return values
array<string|int, Job>loadJobListFor()
public
static loadJobListFor(JobProtoctedCacheModel $model[, array<string|int, mixed> $opt = [] ]) : array<string|int, Job>
Parameters
- $model : JobProtoctedCacheModel
- $opt : array<string|int, mixed> = []
Return values
array<string|int, Job>loadMergedDataFor()
public
static loadMergedDataFor(JobProtoctedCacheModel &$model[, array<string|int, mixed> $opt = [] ]) : mixed
Parameters
- $model : JobProtoctedCacheModel
- $opt : array<string|int, mixed> = []
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
boolset()
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
setBuyerVatid()
public
setBuyerVatid(mixed $buyer_vatid) : MovementCredit
Parameters
- $buyer_vatid : mixed
Return values
MovementCreditsetChangeTime()
Set the value of change_time
public
setChangeTime(mixed $change_time) : self
Parameters
- $change_time : mixed
Return values
selfsetCreateTime()
If $createTime is null, default value now.
public
setCreateTime([mixed $createTime = null ]) : $this
Parameters
- $createTime : mixed = null
Return values
$thissetCurrencyId()
public
setCurrencyId(mixed $currency_id) : self
Parameters
- $currency_id : mixed
Return values
selfsetDiscount()
public
setDiscount(mixed $discount) : MovementCredit
Parameters
- $discount : mixed
Return values
MovementCreditsetFromCountryId()
public
setFromCountryId(mixed $from_country_id) : self
Parameters
- $from_country_id : mixed
Return values
selfsetPrice()
public
setPrice(mixed $price) : self
Parameters
- $price : mixed
Return values
selfsetProductId()
public
setProductId(mixed $product_id) : self
Parameters
- $product_id : mixed
Return values
selfsetQuantity()
public
setQuantity(mixed $q) : mixed
Parameters
- $q : mixed
setShip()
public
setShip(mixed $ship) : MovementCredit
Parameters
- $ship : mixed
Return values
MovementCreditsetStatusCode()
public
setStatusCode(mixed $status_code) : self
Parameters
- $status_code : mixed
Return values
selfsetToCountryId()
public
setToCountryId(mixed $to_country_id) : self
Parameters
- $to_country_id : mixed
Return values
selfsetToVatidValidationStatusId()
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
selfsetUpdateTime()
If $updateTime is null, default value now.
public
setUpdateTime([mixed $updateTime = null ]) : $this
Parameters
- $updateTime : mixed = null
Return values
$thissetValueEur()
public
setValueEur(float $valueEur) : self
Parameters
- $valueEur : float
Return values
selfsourceTypeIsCredit()
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
_isExistsModel()
protected
_isExistsModel() : mixed
_loadExistsModel()
protected
_loadExistsModel() : bool
Return values
boolgetJobparameters()
protected
getJobparameters(mixed $dalayedSave) : mixed
Parameters
- $dalayedSave : mixed
getJobSecondaryId()
protected
getJobSecondaryId() : mixed
getJobUserId()
protected
getJobUserId() : mixed
saveJobProtectedData()
protected
saveJobProtectedData(mixed $subAction, array<string|int, mixed> $data) : mixed
Parameters
- $subAction : mixed
- $data : array<string|int, mixed>