$value = updateMts($json); } else { if (isset($_GET['edit']) && isset($_GET['isNumber'])) { $value = editPrevisionNumberField($json, $_GET['field']); } else { if (isset($_GET['edit'])) { $value = editPrevisionField($json, $_GET['field']); } else { if (isset($_GET['updatePrevisionState']) && isset($_GET['clothIds'])) { $value = updatePrevisionState($_GET['clothIds']); } else { if (isset($_GET['updatePrevisionState']) && isset($_GET['deliveryType'])) { $value = updatePrevisionStateWithDeliveryType($_GET['deliveryType']); } else { if (isset($_GET['updateAllPrevisionsStates'])) { $value = updateAllPrevisionsStates(); } else { if (isset($_GET['acceptStateChange'])) { $value = acceptStateChange($json); } else { if (isset($_GET['weeksBySeason'])) { $value = updateWeeksBySeason($json); } else { if (isset($_GET['listForProduction'])) { $value = getPrevisions(null, null, $expand, true, null, $_GET['sellerCode'], $_GET['offset'], $json); } else { if (isset($_GET['listHistoric'])) { $value = getPrevisions(null, null, $expand, null, true, $_GET['sellerCode'], $_GET['offset'], $json); } else { $value = savePrevision($json); }
if (isset($_GET['listForProduction'])) { // deprecated - use with POST $value = getPrevisions(null, null, $expand, true, null, $_GET['sellerCode'], $filters); } else { if (isset($_GET['listHistoric'])) { // deprecated - use with POST $value = getPrevisions(null, null, $expand, null, true, $_GET['sellerCode']); } else { if (isset($_GET['expand']) && $_GET['expand'] == 'NONE') { $value = getPrevisionsBasic(); } else { if (isset($_GET['checkAllClothsCutted'])) { $value = checkAllClothsCutted($_GET['previsionId']); } else { if (isset($_GET['updateAllPrevisionsStates'])) { $value = updateAllPrevisionsStates($_GET['updateClothId'], $_GET['limit'], $_GET['offset']); } else { if (isset($_GET['updatePrevisionState'])) { $value = updatePrevisionState($_GET['updateClothId']); } else { if (isset($_GET['weeksBySeason'])) { $value = getWeeksBySeason($_GET['weeksBySeason']); } else { $value = getPrevisions(null, $designed, $expand, null); } } } } } } }