stock optimisation: fixed error when stock optimisation was used with inventories
generateMovementListForStockOptimisation was raising error when there was inventories. The method was assuming that doing getObject() on an inventory line (from getFutureInventoryList) was always returning a movement. But sometimes we get the inventory itself. So do not use getVariationCategoryList, but use the variation_text stored in the stock table.
Showing
Please register or sign in to comment