MovementCredit
extends Movement
in package
uses
TraitMovementCredit, TraitScenarioHelperMovementCredit
Table of Contents
Constants
- JOB_PROTECTED_FIELD_LIST = ['buyer_vatid', 'buyer_vat_country_id', 'to_vatid_validation_status_id']
- JOB_PROTECTED_MAIN_ACTION = \Vatjar\Jobs\Model\Job::MAIN_ACTION_MODEL_Movement
- MOVEMENT_AWAITING_DELETE = 1
- SCENARIO_STATUS_CODE_ERROR_EVENT_AFTER_FROM_VATID_DATE = -15
- SCENARIO_STATUS_CODE_ERROR_EVENT_BEFORE_FROM_VATID_DATE = -14
- SCENARIO_STATUS_CODE_ERROR_IMPORT = -1
- SCENARIO_STATUS_CODE_ERROR_NO_EVENT_DATE = -2
- SCENARIO_STATUS_CODE_ERROR_NO_FROM_COUNTRY = -10
- SCENARIO_STATUS_CODE_ERROR_NO_FROM_VATID = -12
- SCENARIO_STATUS_CODE_ERROR_NO_FROM_VATID_DATE = -13
- SCENARIO_STATUS_CODE_ERROR_NO_TO_COUNTRY = -20
- SCENARIO_STATUS_CODE_ERROR_NO_TO_VATID_DATE = -22
- SCENARIO_STATUS_CODE_ERROR_NULL_TO_VATID = -23
- SCENARIO_STATUS_CODE_ERROR_UNKNOWN_FROM_COUNTRY = -11
- SCENARIO_STATUS_CODE_ERROR_UNKNOWN_TO_COUNTRY = -21
- SCENARIO_STATUS_CODE_OK_B2B_DISTANCE = 11
- SCENARIO_STATUS_CODE_OK_B2B_DOMESTIC_NO_DISTANCE_VATID = 12
- SCENARIO_STATUS_CODE_OK_B2B_DOMESTIC_SAME_COUNTRY = 10
- SCENARIO_STATUS_CODE_OK_B2C_DISTANCE = 21
- SCENARIO_STATUS_CODE_OK_B2C_DOMESTIC_NO_DISTANCE_VATID = 22
- SCENARIO_STATUS_CODE_OK_B2C_DOMESTIC_SAME_COUNTRY = 20
- SCENARIO_STATUS_CODE_OK_EXPORT = 1
- SOURCE_TYPE_CLASS = [1 => \Vatjar\Amazon\Model\AmazonSale::class, 3 => \Vatjar\Amazon\Model\AmazonRefund::class, 5 => \Vatjar\Amazon\Model\AmazonVatSale::class, 30 => \Vatjar\Api\Model\ApiOrderUpload::class, 31 => \Vatjar\Api\Model\ApiOrderUpload::class, 32 => \Vatjar\Api\Model\ApiOrderUpload::class, 33 => \Vatjar\Api\Model\ApiOrderUpload::class, 34 => \Vatjar\Api\Model\ApiOrderUpload::class, 41 => \Vatjar\Api\Model\ApiOrderUpload::class, 42 => \Vatjar\Api\Model\ApiOrderUpload::class, 43 => \Vatjar\Api\Model\ApiOrderUpload::class, 44 => \Vatjar\Api\Model\ApiOrderUpload::class]
- SOURCE_TYPE_CREDIT = [1, 3]
- SOURCE_TYPE_PRODUCT = [11, 12, 13]
Properties
- $awaiting_delete : mixed
- $change_time : mixed
- $invoice_string : mixed
- $_existsModel : bool
- $activity_id : mixed
- $activity_invoice_id : mixed
- $amazon : mixed
- $buyer_vat_country_id : mixed
- $buyer_vatid : mixed
- $channel_id : mixed
- $create_time : mixed
- $credit_note : mixed
- $currency_id : mixed
- $discount : mixed
- $event_date : mixed
- $event_time : mixed
- $from_bill_country_id : mixed
- $from_country_id : mixed
- $from_vatid_validation_status_id : mixed
- $id : mixed
- $invoice_number_id : mixed
- $is_invoice : mixed
- $jobList : mixed
- $jobMergedData : mixed
- $jobProtectedCreate : mixed
- $jobProtectedDelete : mixed
- $jobProtectedModel : mixed
- $linked_movement_credit_id : mixed
- $movement_perspective_id : mixed
- $movement_type_id : mixed
- $position : mixed
- $prevent_scenario : mixed
- $price : mixed
- $product_id : mixed
- $quantity : mixed
- $sales_channel : mixed
- $seller_vat_country_id : mixed
- $seller_vatid : mixed
- $ship : mixed
- $source_id : mixed
- $source_type : mixed
- $status_code : mixed
- $to_bill_country_id : mixed
- $to_country_id : mixed
- $to_vatid_validation_status_id : mixed
- $transid : mixed
- $update_time : mixed
- $user_id : mixed
- $user_module_id : mixed
- $value_eur : mixed
- $vat_country_id : 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() : string|null
- getChangedFields() : array<string|int, mixed>
- Add Phalcon < 3.2 condition for compatibility {@inheritDoc}
- getChangeTime() : mixed
- Get the value of change_time
- getChannelId() : int
- getCreateTime() : mixed
- getCreditNote() : bool
- getCurrency() : Currency|null
- getCurrencyId() : mixed
- getDiscount() : mixed
- getEventDate() : mixed
- getEventTime() : mixed
- getFromBillCountryId() : int|null
- getFromCountryId() : mixed
- getFromVatId() : mixed
- getFromVatidValidationStatusId() : int|null
- getGrossPrice() : mixed
- getGrossUnitPrice() : mixed
- getId() : mixed
- getInvoiceNumberId() : mixed
- getInvoiceString() : mixed
- Get the value of invoice_string
- getIsInvoice() : bool
- getJobInitObject() : mixed
- getJobList() : array<string|int, Job>
- getJobMergedData() : array<string|int, mixed>
- getLinkedMovementCreditId() : int|null
- getMovementPerspectiveId() : mixed
- getMovementTypeId() : int
- getNetPrice() : mixed
- getNetUnitPrice() : mixed
- getNetUnitValueEur() : mixed
- getNetValueEur() : mixed
- getNormalizedVatRate() : mixed
- getPosition() : mixed
- getPreventScenario() : int
- getPrice() : mixed
- getProduct() : Product|null
- getProductId() : mixed
- getQuantity() : int|null
- getSalesChannel() : string|null
- getSellerVatCountryId() : int|null
- getSellerVatid() : mixed
- getShip() : mixed
- getShippingPrice() : mixed
- getSourceId() : mixed
- getSourceType() : mixed
- getStatusCode() : mixed
- getStatusCodeOf() : mixed
- getThe() : mixed
- getToBillCountryId() : int|null
- getToCountryId() : mixed
- getToVatId() : mixed
- getToVatidValidationStatusId() : mixed
- getToVatIdValidationStatusId() : int|null
- getTransid() : mixed
- getUpdateTime() : mixed
- getUserId() : mixed
- getUserModuleId() : mixed
- getValueEur() : int
- getVatCountryId() : mixed
- getVatrate() : mixed
- initialize() : mixed
- isB2B() : mixed
- isB2C() : mixed
- isCredit() : mixed
- isDomestic() : mixed
- isExport() : mixed
- isProduct() : mixed
- isStatusCodeB2B() : mixed
- isStatusCodeB2C() : mixed
- isStatusCodeDomestic() : mixed
- isStatusCodeExport() : mixed
- loadJobList() : array<string|int, Job>
- loadJobListFor() : array<string|int, Job>
- loadMergedDataFor() : mixed
- loadMergedDataFromJob() : mixed
- mapper() : mixed
- save() : bool
- set() : mixed
- setAwaitingDelete() : self
- Set the value of awaitingDelete
- setBuyerVatCountryId() : mixed
- setBuyerVatid() : MovementCredit
- setBuyerVatId() : self
- setChangeTime() : self
- Set the value of change_time
- setChannelId() : self
- setCreateTime() : $this
- If $createTime is null, default value now.
- setCurrencyId() : self
- setDiscount() : MovementCredit
- setFromCountryId() : self
- setInvoiceString() : self
- Set the value of invoice_string
- setPrice() : self
- setProductId() : self
- setQuantity() : mixed
- setShip() : MovementCredit
- setStatusCode() : self
- setToCountryId() : self
- setToVatidValidationStatusId() : mixed
- setToVatIdValidationStatusId() : self
- setTransid() : self
- setUpdateTime() : $this
- If $updateTime is null, default value now.
- setUserModuleId() : self
- setValueEur() : self
- sourceTypeIsCredit() : mixed
- sourceTypeIsProduct() : mixed
- statusCodeListOfB2B() : mixed
- statusCodeListOfB2C() : mixed
- statusCodeListOfDomestic() : mixed
- statusCodeListOfExport() : 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
= ['buyer_vatid', 'buyer_vat_country_id', 'to_vatid_validation_status_id']
JOB_PROTECTED_MAIN_ACTION
public
mixed
JOB_PROTECTED_MAIN_ACTION
= \Vatjar\Jobs\Model\Job::MAIN_ACTION_MODEL_Movement
MOVEMENT_AWAITING_DELETE
public
mixed
MOVEMENT_AWAITING_DELETE
= 1
SCENARIO_STATUS_CODE_ERROR_EVENT_AFTER_FROM_VATID_DATE
public
mixed
SCENARIO_STATUS_CODE_ERROR_EVENT_AFTER_FROM_VATID_DATE
= -15
SCENARIO_STATUS_CODE_ERROR_EVENT_BEFORE_FROM_VATID_DATE
public
mixed
SCENARIO_STATUS_CODE_ERROR_EVENT_BEFORE_FROM_VATID_DATE
= -14
SCENARIO_STATUS_CODE_ERROR_IMPORT
public
mixed
SCENARIO_STATUS_CODE_ERROR_IMPORT
= -1
SCENARIO_STATUS_CODE_ERROR_NO_EVENT_DATE
public
mixed
SCENARIO_STATUS_CODE_ERROR_NO_EVENT_DATE
= -2
SCENARIO_STATUS_CODE_ERROR_NO_FROM_COUNTRY
public
mixed
SCENARIO_STATUS_CODE_ERROR_NO_FROM_COUNTRY
= -10
SCENARIO_STATUS_CODE_ERROR_NO_FROM_VATID
public
mixed
SCENARIO_STATUS_CODE_ERROR_NO_FROM_VATID
= -12
SCENARIO_STATUS_CODE_ERROR_NO_FROM_VATID_DATE
public
mixed
SCENARIO_STATUS_CODE_ERROR_NO_FROM_VATID_DATE
= -13
SCENARIO_STATUS_CODE_ERROR_NO_TO_COUNTRY
public
mixed
SCENARIO_STATUS_CODE_ERROR_NO_TO_COUNTRY
= -20
SCENARIO_STATUS_CODE_ERROR_NO_TO_VATID_DATE
public
mixed
SCENARIO_STATUS_CODE_ERROR_NO_TO_VATID_DATE
= -22
SCENARIO_STATUS_CODE_ERROR_NULL_TO_VATID
public
mixed
SCENARIO_STATUS_CODE_ERROR_NULL_TO_VATID
= -23
SCENARIO_STATUS_CODE_ERROR_UNKNOWN_FROM_COUNTRY
public
mixed
SCENARIO_STATUS_CODE_ERROR_UNKNOWN_FROM_COUNTRY
= -11
SCENARIO_STATUS_CODE_ERROR_UNKNOWN_TO_COUNTRY
public
mixed
SCENARIO_STATUS_CODE_ERROR_UNKNOWN_TO_COUNTRY
= -21
SCENARIO_STATUS_CODE_OK_B2B_DISTANCE
public
mixed
SCENARIO_STATUS_CODE_OK_B2B_DISTANCE
= 11
SCENARIO_STATUS_CODE_OK_B2B_DOMESTIC_NO_DISTANCE_VATID
public
mixed
SCENARIO_STATUS_CODE_OK_B2B_DOMESTIC_NO_DISTANCE_VATID
= 12
SCENARIO_STATUS_CODE_OK_B2B_DOMESTIC_SAME_COUNTRY
public
mixed
SCENARIO_STATUS_CODE_OK_B2B_DOMESTIC_SAME_COUNTRY
= 10
SCENARIO_STATUS_CODE_OK_B2C_DISTANCE
public
mixed
SCENARIO_STATUS_CODE_OK_B2C_DISTANCE
= 21
SCENARIO_STATUS_CODE_OK_B2C_DOMESTIC_NO_DISTANCE_VATID
public
mixed
SCENARIO_STATUS_CODE_OK_B2C_DOMESTIC_NO_DISTANCE_VATID
= 22
SCENARIO_STATUS_CODE_OK_B2C_DOMESTIC_SAME_COUNTRY
public
mixed
SCENARIO_STATUS_CODE_OK_B2C_DOMESTIC_SAME_COUNTRY
= 20
SCENARIO_STATUS_CODE_OK_EXPORT
public
mixed
SCENARIO_STATUS_CODE_OK_EXPORT
= 1
SOURCE_TYPE_CLASS
public
mixed
SOURCE_TYPE_CLASS
= [1 => \Vatjar\Amazon\Model\AmazonSale::class, 3 => \Vatjar\Amazon\Model\AmazonRefund::class, 5 => \Vatjar\Amazon\Model\AmazonVatSale::class, 30 => \Vatjar\Api\Model\ApiOrderUpload::class, 31 => \Vatjar\Api\Model\ApiOrderUpload::class, 32 => \Vatjar\Api\Model\ApiOrderUpload::class, 33 => \Vatjar\Api\Model\ApiOrderUpload::class, 34 => \Vatjar\Api\Model\ApiOrderUpload::class, 41 => \Vatjar\Api\Model\ApiOrderUpload::class, 42 => \Vatjar\Api\Model\ApiOrderUpload::class, 43 => \Vatjar\Api\Model\ApiOrderUpload::class, 44 => \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
$awaiting_delete
public
mixed
$awaiting_delete
$change_time
public
mixed
$change_time
$invoice_string
public
mixed
$invoice_string
$_existsModel
protected
bool
$_existsModel
$activity_id
protected
mixed
$activity_id
$activity_invoice_id
protected
mixed
$activity_invoice_id
$amazon
protected
mixed
$amazon
= null
$buyer_vat_country_id
protected
mixed
$buyer_vat_country_id
$buyer_vatid
protected
mixed
$buyer_vatid
$channel_id
protected
mixed
$channel_id
$create_time
protected
mixed
$create_time
$credit_note
protected
mixed
$credit_note
$currency_id
protected
mixed
$currency_id
$discount
protected
mixed
$discount
$event_date
protected
mixed
$event_date
$event_time
protected
mixed
$event_time
$from_bill_country_id
protected
mixed
$from_bill_country_id
$from_country_id
protected
mixed
$from_country_id
$from_vatid_validation_status_id
protected
mixed
$from_vatid_validation_status_id
$id
protected
mixed
$id
$invoice_number_id
protected
mixed
$invoice_number_id
$is_invoice
protected
mixed
$is_invoice
$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
$linked_movement_credit_id
protected
mixed
$linked_movement_credit_id
$movement_perspective_id
protected
mixed
$movement_perspective_id
$movement_type_id
protected
mixed
$movement_type_id
$position
protected
mixed
$position
$prevent_scenario
protected
mixed
$prevent_scenario
$price
protected
mixed
$price
$product_id
protected
mixed
$product_id
$quantity
protected
mixed
$quantity
$sales_channel
protected
mixed
$sales_channel
$seller_vat_country_id
protected
mixed
$seller_vat_country_id
$seller_vatid
protected
mixed
$seller_vatid
$ship
protected
mixed
$ship
$source_id
protected
mixed
$source_id
$source_type
protected
mixed
$source_type
$status_code
protected
mixed
$status_code
$to_bill_country_id
protected
mixed
$to_bill_country_id
$to_country_id
protected
mixed
$to_country_id
$to_vatid_validation_status_id
protected
mixed
$to_vatid_validation_status_id
$transid
protected
mixed
$transid
$update_time
protected
mixed
$update_time
$user_id
protected
mixed
$user_id
$user_module_id
protected
mixed
$user_module_id
$value_eur
protected
mixed
$value_eur
$vat_country_id
protected
mixed
$vat_country_id
$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() : string|null
Return values
string|nullgetChangedFields()
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
getChannelId()
public
getChannelId() : int
Return values
intgetCreateTime()
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
getFromBillCountryId()
public
getFromBillCountryId() : int|null
Return values
int|nullgetFromCountryId()
public
getFromCountryId() : mixed
getFromVatId()
public
getFromVatId() : mixed
getFromVatidValidationStatusId()
public
getFromVatidValidationStatusId() : int|null
Return values
int|nullgetGrossPrice()
public
getGrossPrice() : mixed
getGrossUnitPrice()
public
getGrossUnitPrice() : mixed
getId()
public
getId() : mixed
getInvoiceNumberId()
public
getInvoiceNumberId() : mixed
getInvoiceString()
Get the value of invoice_string
public
getInvoiceString() : 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>getLinkedMovementCreditId()
public
getLinkedMovementCreditId() : int|null
Return values
int|nullgetMovementPerspectiveId()
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
getPreventScenario()
public
getPreventScenario() : int
Return values
intgetPrice()
public
getPrice() : mixed
getProduct()
public
getProduct() : Product|null
Return values
Product|nullgetProductId()
public
getProductId() : mixed
getQuantity()
public
getQuantity() : int|null
Return values
int|nullgetSalesChannel()
public
getSalesChannel() : string|null
Return values
string|nullgetSellerVatCountryId()
public
getSellerVatCountryId() : int|null
Return values
int|nullgetSellerVatid()
public
getSellerVatid() : mixed
getShip()
public
getShip() : mixed
getShippingPrice()
public
getShippingPrice() : mixed
getSourceId()
public
getSourceId() : mixed
getSourceType()
public
getSourceType() : mixed
getStatusCode()
public
getStatusCode() : mixed
getStatusCodeOf()
public
static getStatusCodeOf(mixed $mc) : mixed
Parameters
- $mc : mixed
getThe()
public
static getThe(mixed $paramater) : mixed
Parameters
- $paramater : mixed
getToBillCountryId()
public
getToBillCountryId() : int|null
Return values
int|nullgetToCountryId()
public
getToCountryId() : mixed
getToVatId()
public
getToVatId() : mixed
getToVatidValidationStatusId()
public
getToVatidValidationStatusId() : mixed
getToVatIdValidationStatusId()
public
getToVatIdValidationStatusId() : int|null
Return values
int|nullgetTransid()
public
getTransid() : mixed
getUpdateTime()
public
getUpdateTime() : mixed
getUserId()
public
getUserId() : mixed
getUserModuleId()
public
getUserModuleId() : mixed
getValueEur()
public
getValueEur() : int
Return values
intgetVatCountryId()
public
getVatCountryId() : mixed
getVatrate()
public
getVatrate() : mixed
initialize()
public
initialize() : mixed
isB2B()
public
isB2B() : mixed
isB2C()
public
isB2C() : mixed
isCredit()
public
isCredit() : mixed
isDomestic()
public
isDomestic() : mixed
isExport()
public
isExport() : mixed
isProduct()
public
isProduct() : mixed
isStatusCodeB2B()
public
static isStatusCodeB2B(mixed $mc) : mixed
Parameters
- $mc : mixed
isStatusCodeB2C()
public
static isStatusCodeB2C(mixed $mc) : mixed
Parameters
- $mc : mixed
isStatusCodeDomestic()
public
static isStatusCodeDomestic(mixed $mc) : mixed
Parameters
- $mc : mixed
isStatusCodeExport()
public
static isStatusCodeExport(mixed $mc) : mixed
Parameters
- $mc : 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
setAwaitingDelete()
Set the value of awaitingDelete
public
setAwaitingDelete(mixed $awaitingDelete) : self
Parameters
- $awaitingDelete : mixed
Return values
selfsetBuyerVatCountryId()
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
MovementCreditsetBuyerVatId()
public
setBuyerVatId(string|null $buyerVatId) : self
Parameters
- $buyerVatId : string|null
Return values
selfsetChangeTime()
Set the value of change_time
public
setChangeTime(mixed $change_time) : self
Parameters
- $change_time : mixed
Return values
selfsetChannelId()
public
setChannelId(int $salesChannelId) : self
Parameters
- $salesChannelId : int
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
selfsetInvoiceString()
Set the value of invoice_string
public
setInvoiceString(mixed $invoice_string) : self
Parameters
- $invoice_string : 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
setToVatIdValidationStatusId()
public
setToVatIdValidationStatusId(int|null $toVatidValidationStatusId) : self
Parameters
- $toVatidValidationStatusId : int|null
Return values
selfsetTransid()
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
$thissetUserModuleId()
public
setUserModuleId(int $user_module_id) : self
Parameters
- $user_module_id : int
Return values
selfsetValueEur()
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
statusCodeListOfB2B()
public
static statusCodeListOfB2B() : mixed
statusCodeListOfB2C()
public
static statusCodeListOfB2C() : mixed
statusCodeListOfDomestic()
public
static statusCodeListOfDomestic() : mixed
statusCodeListOfExport()
public
static statusCodeListOfExport() : mixed
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>