function getInTransit($clothId) { return getInTransitUpToDate($clothId, null); }
function appendExtraInfo($clothRows, $upToDate) { $result = array(); foreach ($clothRows as $row) { $row['previsions'] = getPrevisionsUpToDate($row['clothId'], $upToDate); $row['plotters'] = getPlotters($row['clothId'], 'false', null, $upToDate); $row['ordersInTransit'] = getInTransitUpToDate($row['clothId'], $upToDate); array_push($result, $row); } return $result; }