private function _createQty($stockItemId, $lotId, $total)
 {
     $tbl = Quantity::ENTITY_NAME;
     $bind = [Quantity::ATTR_STOCK_ITEM_REF => $stockItemId, Quantity::ATTR_LOT_REF => $lotId, Quantity::ATTR_TOTAL => $total];
     $result = $this->_repoGeneric->addEntity($tbl, $bind);
     /* update qty of the stock item */
     $stockItem = $this->_repoMageStockItem->get($stockItemId);
     $qty = $stockItem->getQty();
     $qty += $total;
     $stockItem->setQty($qty);
     $stockItem->setIsInStock(true);
     $this->_repoMageStockItem->save($stockItem);
     return $result;
 }