getting the stock for product/variation wrong
Closed this issue · 1 comments
sparkcom commented
In line 106 in ProductStockExension.php
I changed it to
` public function getStockForWarehouse($warehouse)
{
//original line
//$record = $warehouse->StockedProducts()->filter('ProductID', $this->owner->ID)->first();
//new line
$record = $warehouse->StockedProducts()->filter( array('ProductID'=> $this->owner->ID, 'ProductClass'=>$this->owner->ClassName ))->first();
...
}`
wilr commented
Thanks!