RoundingTable
RoundingTable class for handling tase with price rounding off rules.
Class methods
Method | Description | Available from version |
---|---|---|
allowClearCache | Method allows resetting cache after several uses of methods add/update/delete . Always works jointly with the method disallowClearCache. |
|
clearCache | Resets managed cache. | |
clearPriceTypeIds | Clears array of price type IDs, processed when using methods add/update . |
|
deleteByPriceType | Deletes rounding off rules for price type with code $priceType . |
|
disallowClearCache | Prohibits resetting cache after several uses of methods add/update/delete . Always works jointly with the method allowClearCache. |
|
getMap | Returns list of fields for table with price rounding off rules. | |
getRoundTypes | Returns array with rounding off types. | |
getTableName | Returns name for tables with price rounding off rules. | |
isAllowedClearCache | Checks if cache reset is permitted or not. | |
onAfterAdd | Default handler for the event onAfterAdd . |
|
onAfterDelete | Default handler for the event onAfterDelete . |
|
onAfterUpdate | Default handler for the event onAfterUpdate . |
|
onBeforeAdd | Default handler for the event onBeforeAdd . |
|
onBeforeUpdate | Default handler for the event onBeforeUpdate . |
|
onDelete | Default handler for the event onDelete . |
|
onUpdate | Default handler for the event onUpdate . |
|
setPriceTypeIds | Generates list of price types with added/updated/deleted rounding off rules |
Rounding off rules fields
Field | Description | Type | Required |
---|---|---|---|
ID | Rule ID. | Int | Yes |
CATALOG_GROUP_ID | Price type ID. | Int | Yes |
PRICE | Minimal price. | Decimal(18, 4) | Yes |
ROUND_TYPE | Ronding off type. | Int | Yes |
ROUND_PRECISION | Rounding off precision. | Decimal(18, 4) | Yes |
CREATED_BY | User ID who created rules. | Int | No |
DATE_CREATE | Date and time a rule is created. | Datetime | No |
MODIFY_BY | User who most recently modified a rule. | Int | No |
DATE_MODIFY | Date and time who modified a rule. | Datetime | No |
© «Bitrix24», 2001-2024