Products_Calculations_Handler
in package
Calculations handler.
Tags
Table of Contents
- entityBeforeSave() : mixed
- EntityBeforeSave handler function.
- getValueField() : float|string
- Calculation.
Methods
entityBeforeSave()
EntityBeforeSave handler function.
public
entityBeforeSave(EventHandler $eventHandler) : mixed
Parameters
- $eventHandler : EventHandler
Return values
mixed —getValueField()
Calculation.
private
getValueField(int $currencyId[, float|null $purchase = null ][, float|null $unitPrice = null ][, float|null $margin = null ]) : float|string
Parameters
- $currencyId : int
- $purchase : float|null = null
- $unitPrice : float|null = null
- $margin : float|null = null