function handleInventoryProductRel($entity) { if (isset($_REQUEST) && $_REQUEST['action'] != 'InvoiceAjax' && $_REQUEST['action'] != 'SalesOrderAjax' && $_REQUEST['ajxaction'] != 'DETAILVIEW' && $_REQUEST['action'] != 'MassEditSave' && $_REQUEST['action'] != 'ProcessDuplicates') { require_once "include/utils/InventoryUtils.php"; updateInventoryProductRel($entity); } }
private function resetInventoryStockById($parentId) { if (!empty($parentId)) { $entityCache = new VTEntityCache($this->user); $entityData = $entityCache->forId($parentId); updateInventoryProductRel($entityData); } }
function handleInventoryProductRel($entity) { require_once "include/utils/InventoryUtils.php"; updateInventoryProductRel($entity); }