CheckManager
FinalYes
Class CheckManager
Table of Contents
Constants
- CHECK_LIMIT_RECORDS = 5
- CHECK_RESENDING_TIME = 4
- This is time re-sending a check print in minutes
- EVENT_ON_BEFORE_CHECK_ADD_VERIFY = 'OnBeforeCheckAddVerify'
- EVENT_ON_CHECK_COLLATE_DOCUMENTS = 'OnCheckCollateDocuments'
- EVENT_ON_CHECK_PRINT_ERROR = 'OnCheckPrintError'
- EVENT_ON_CHECK_PRINT_SEND = 'OnPrintableCheckSend'
- EVENT_ON_CHECK_VALIDATION_ERROR = 'OnCheckValidationError'
- EVENT_ON_GET_CUSTOM_CHECK = 'OnGetCustomCheckList'
- MIN_TIME_FOR_SWITCH_CASHBOX = 240
Methods
- addByType() : Result
- addChecks() : Result
- addCorrection() : mixed
- collateDocuments() : array<string|int, Entity>
- collectInfo() : array<string|int, mixed>
- create() : Check|null
- createByType() : null|Check
- delete() : mixed
- getCheckInfo() : array<string|int, mixed>
- getCheckInfoByExternalUuid() : array<string|int, mixed>|false
- getCheckList() : array<string|int, mixed>
- getCheckTypeMap() : array<string|int, mixed>
- getLastPrintableCheckInfo() : array<string|int, mixed>|false
- getList() : Result
- getObjectById() : Check|null
- getOrder() : Order
- getPaymentByCheck() : Payment
- Returns payment by check
- getPrintableChecks() : array<string|int, mixed>
- getRelatedEntitiesForPayment() : array<string|int, mixed>
- getRelatedEntitiesForShipment() : array<string|int, mixed>
- getSalesCheckList() : mixed
- init() : void
- isAvailableCorrection() : bool
- reprint() : Result
- savePrintResult() : Result
Constants
CHECK_LIMIT_RECORDS
public
mixed
CHECK_LIMIT_RECORDS
= 5
CHECK_RESENDING_TIME
This is time re-sending a check print in minutes
public
mixed
CHECK_RESENDING_TIME
= 4
EVENT_ON_BEFORE_CHECK_ADD_VERIFY
public
mixed
EVENT_ON_BEFORE_CHECK_ADD_VERIFY
= 'OnBeforeCheckAddVerify'
EVENT_ON_CHECK_COLLATE_DOCUMENTS
public
mixed
EVENT_ON_CHECK_COLLATE_DOCUMENTS
= 'OnCheckCollateDocuments'
EVENT_ON_CHECK_PRINT_ERROR
public
mixed
EVENT_ON_CHECK_PRINT_ERROR
= 'OnCheckPrintError'
EVENT_ON_CHECK_PRINT_SEND
public
mixed
EVENT_ON_CHECK_PRINT_SEND
= 'OnPrintableCheckSend'
EVENT_ON_CHECK_VALIDATION_ERROR
public
mixed
EVENT_ON_CHECK_VALIDATION_ERROR
= 'OnCheckValidationError'
EVENT_ON_GET_CUSTOM_CHECK
public
mixed
EVENT_ON_GET_CUSTOM_CHECK
= 'OnGetCustomCheckList'
MIN_TIME_FOR_SWITCH_CASHBOX
public
mixed
MIN_TIME_FOR_SWITCH_CASHBOX
= 240
Methods
addByType()
public
static addByType(array<string|int, CollectableEntity> $entities, mixed $type[, array<string|int, CollectableEntity> $relatedEntities = array() ]) : Result
Parameters
- $entities : array<string|int, CollectableEntity>
- $type : mixed
- $relatedEntities : array<string|int, CollectableEntity> = array()
Return values
ResultaddChecks()
public
static addChecks(array<string|int, CollectableEntity> $entities) : Result
Parameters
- $entities : array<string|int, CollectableEntity>
Return values
ResultaddCorrection()
public
static addCorrection(mixed $type, mixed $cashboxId, array<string|int, mixed> $correction) : mixed
Parameters
- $type : mixed
- $cashboxId : mixed
- $correction : array<string|int, mixed>
collateDocuments()
public
static collateDocuments(array<string|int, mixed> $entities) : array<string|int, Entity>
Parameters
- $entities : array<string|int, mixed>
Tags
Return values
array<string|int, Entity>collectInfo()
public
static collectInfo([array<string|int, mixed> $filter = array() ]) : array<string|int, mixed>
Parameters
- $filter : array<string|int, mixed> = array()
Tags
Return values
array<string|int, mixed>create()
public
static create(array<string|int, mixed> $settings) : Check|null
Parameters
- $settings : array<string|int, mixed>
Return values
Check|nullcreateByType()
public
static createByType(string $type) : null|Check
Parameters
- $type : string
Return values
null|Checkdelete()
public
static delete(mixed $id) : mixed
Parameters
- $id : mixed
Tags
getCheckInfo()
public
static getCheckInfo(CollectableEntity $entity) : array<string|int, mixed>
Parameters
- $entity : CollectableEntity
Tags
Return values
array<string|int, mixed>getCheckInfoByExternalUuid()
public
static getCheckInfoByExternalUuid(mixed $uuid) : array<string|int, mixed>|false
Parameters
- $uuid : mixed
Tags
Return values
array<string|int, mixed>|falsegetCheckList()
public
static getCheckList() : array<string|int, mixed>
Return values
array<string|int, mixed>getCheckTypeMap()
public
static getCheckTypeMap() : array<string|int, mixed>
Return values
array<string|int, mixed>getLastPrintableCheckInfo()
public
static getLastPrintableCheckInfo(CollectableEntity $entity) : array<string|int, mixed>|false
Parameters
- $entity : CollectableEntity
Tags
Return values
array<string|int, mixed>|falsegetList()
public
static getList([array<string|int, mixed> $parameters = array() ]) : Result
Parameters
- $parameters : array<string|int, mixed> = array()
Tags
Return values
ResultgetObjectById()
public
static getObjectById(mixed $id) : Check|null
Parameters
- $id : mixed
Tags
Return values
Check|nullgetOrder()
public
static getOrder(CollectableEntity $entity) : Order
Parameters
- $entity : CollectableEntity
Tags
Return values
OrdergetPaymentByCheck()
Returns payment by check
public
static getPaymentByCheck(Check $check) : Payment
Parameters
- $check : Check
Return values
PaymentgetPrintableChecks()
public
static getPrintableChecks(array<string|int, mixed> $cashboxIds[, array<string|int, mixed> $orderIds = array() ]) : array<string|int, mixed>
Parameters
- $cashboxIds : array<string|int, mixed>
- $orderIds : array<string|int, mixed> = array()
Tags
Return values
array<string|int, mixed>getRelatedEntitiesForPayment()
public
static getRelatedEntitiesForPayment(mixed $checkType, mixed $paymentId[, string $registryType = SaleRegistry::REGISTRY_TYPE_ORDER ]) : array<string|int, mixed>
Parameters
- $checkType : mixed
- $paymentId : mixed
- $registryType : string = SaleRegistry::REGISTRY_TYPE_ORDER
Tags
Return values
array<string|int, mixed>getRelatedEntitiesForShipment()
public
static getRelatedEntitiesForShipment(mixed $checkType, mixed $shipmentId[, string $registryType = SaleRegistry::REGISTRY_TYPE_ORDER ]) : array<string|int, mixed>
Parameters
- $checkType : mixed
- $shipmentId : mixed
- $registryType : string = SaleRegistry::REGISTRY_TYPE_ORDER
Tags
Return values
array<string|int, mixed>getSalesCheckList()
public
static getSalesCheckList() : mixed
init()
public
static init() : void
isAvailableCorrection()
public
static isAvailableCorrection() : bool
Return values
boolreprint()
public
static reprint(int $checkId) : Result
Parameters
- $checkId : int
Return values
ResultsavePrintResult()
public
static savePrintResult(mixed $checkId, array<string|int, mixed> $data) : Result
Parameters
- $checkId : mixed
- $data : array<string|int, mixed>