1 (edited by apmuthu 09/05/2014 06:56:25 pm)

Topic: Purpose of actual_cost field in stock_master table

X_stock_master.actual_cost field is used only in line 211 in includes/ui/items_cart.inc:

        if ($standard_cost == null)
            $this->standard_cost = $item_row["actual_cost"];
        else
            $this->standard_cost = $standard_cost;

This usage is only as a fallback value. At all other places, only last_cost field in the same table is used .

Where does this field actual_cost get populated from? It is not present in any of the extension files as well.