QualityCheckRenderComponent
extends Injectable
in package
Table of Contents
Constants
- CHECK_ORDER_LIST = ['vat', 'pull', 'statusCode', 'amazonAmount']
- MONTH_ERROR_MISSING_TYPE = -30
- MONTH_ERROR_NO_PRODUCT_AFTER_END_DATE = -20
- MONTH_ERROR_NO_PRODUCT_END_DATE = -21
- MONTH_ERROR_NOT_FOUND = -11
- MONTH_ERROR_WRONG_DATE = -10
- MONTH_WARNING_NO_PRODUCT_END_DATE = -5
- MONTH_WARNING_PART = -1
Properties
- $lastMonthCheckListByUserValue : mixed
Methods
- getLastMonth() : Obj
- lastMonthCheckListByUser() : array<string|int, mixed>
- monthCheckListByUser() : array<string|int, mixed>
- renderCheck() : string
- renderCheckList() : string
- renderError() : mixed
- renderLastMonthCheckListByUser() : array<string|int, mixed>
- renderOk() : mixed
- renderCheckAmazonPull() : string
- renderCheckAmazonVat() : string
- renderCheckAmazonVatAmount() : string
- renderCheckStatusCode() : string
Constants
CHECK_ORDER_LIST
public
mixed
CHECK_ORDER_LIST
= ['vat', 'pull', 'statusCode', 'amazonAmount']
MONTH_ERROR_MISSING_TYPE
public
mixed
MONTH_ERROR_MISSING_TYPE
= -30
MONTH_ERROR_NO_PRODUCT_AFTER_END_DATE
public
mixed
MONTH_ERROR_NO_PRODUCT_AFTER_END_DATE
= -20
MONTH_ERROR_NO_PRODUCT_END_DATE
public
mixed
MONTH_ERROR_NO_PRODUCT_END_DATE
= -21
MONTH_ERROR_NOT_FOUND
public
mixed
MONTH_ERROR_NOT_FOUND
= -11
MONTH_ERROR_WRONG_DATE
public
mixed
MONTH_ERROR_WRONG_DATE
= -10
MONTH_WARNING_NO_PRODUCT_END_DATE
public
mixed
MONTH_WARNING_NO_PRODUCT_END_DATE
= -5
MONTH_WARNING_PART
public
mixed
MONTH_WARNING_PART
= -1
Properties
$lastMonthCheckListByUserValue
private
mixed
$lastMonthCheckListByUserValue
Methods
getLastMonth()
public
getLastMonth() : Obj
Return values
ObjlastMonthCheckListByUser()
public
lastMonthCheckListByUser() : array<string|int, mixed>
Return values
array<string|int, mixed>monthCheckListByUser()
public
monthCheckListByUser(mixed $year, mixed $month) : array<string|int, mixed>
Parameters
- $year : mixed
- $month : mixed
Return values
array<string|int, mixed>renderCheck()
public
renderCheck(UserQualityCheck $check[, bool $plain = false ]) : string
Parameters
- $check : UserQualityCheck
- $plain : bool = false
Tags
Return values
stringrenderCheckList()
public
renderCheckList(array<string|int, UserQualityCheck> $checkList[, mixed $plain = false ]) : string
Parameters
- $checkList : array<string|int, UserQualityCheck>
- $plain : mixed = false
Return values
string —$ret
renderError()
public
renderError(mixed $text[, mixed $href = null ][, mixed $plain = false ]) : mixed
Parameters
- $text : mixed
- $href : mixed = null
- $plain : mixed = false
renderLastMonthCheckListByUser()
public
renderLastMonthCheckListByUser([mixed $plain = false ]) : array<string|int, mixed>
Parameters
- $plain : mixed = false
Return values
array<string|int, mixed>renderOk()
public
renderOk([mixed $plain = false ]) : mixed
Parameters
- $plain : mixed = false
renderCheckAmazonPull()
private
renderCheckAmazonPull(UserQualityCheck $check[, bool $plain = false ]) : string
Parameters
- $check : UserQualityCheck
- $plain : bool = false
Return values
stringrenderCheckAmazonVat()
private
renderCheckAmazonVat(UserQualityCheck $check[, bool $plain = false ]) : string
Parameters
- $check : UserQualityCheck
- $plain : bool = false
Return values
stringrenderCheckAmazonVatAmount()
private
renderCheckAmazonVatAmount(UserQualityCheck $check[, bool $plain = false ]) : string
Parameters
- $check : UserQualityCheck
- $plain : bool = false
Return values
stringrenderCheckStatusCode()
private
renderCheckStatusCode(mixed $check[, mixed $plain = false ]) : string
Parameters
- $check : mixed
- $plain : mixed = false