CostingInterface
in
Classes that implement this Interface can participate in material flow detection with greater depth
This interface is used by Class Scripts to give a hook into the detection process. This will allow the addition of costing calculations into the detection process.
Table of Contents
Methods
- calculateCost() : CostingEvent
- This method is called after the entry is closed. The return argument will be passed back to the material flow detection and then propagated through the flow.
Methods
calculateCost()
This method is called after the entry is closed. The return argument will be passed back to the material flow detection and then propagated through the flow.
public
calculateCost(LedgerEntry $entry) : CostingEvent
This function should return only the cost accrued during this movement. This incremental cost will be added onto any existing cost
Parameters
- $entry : LedgerEntry