func cleanWorkerOrders(array []WorkerOrder) []WorkerOrder {
	array = revertWorkerOrder(array)
	var ordersClean []WorkerOrder
	for i := 0; i < len(array); i++ {
		if array[i].Quantity > array[i].AlreadyMade {
			ordersClean = append(ordersClean, array[i])
		}
	}
	ordersClean = removeDuplicatesWKOrders(ordersClean)
	return ordersClean
}
// This method cleans the array of WorkerOrders and leave only the orders that are not complete
This method cleans the array of WorkerOrders and leave only the orders that are not complete
// This method cleans the array of WorkerOrders and leave only the orders that are not complete
func cleanWorkerOrders(array []WorkerOrder) []WorkerOrder {
	array = revertWorkerOrder(array)
	var ordersClean []WorkerOrder
	for i := 0; i < len(array); i++ {
		if array[i].Quantity > array[i].AlreadyMade {
			ordersClean = append(ordersClean, array[i])
		}
	}
	ordersClean = removeDuplicatesWKOrders(ordersClean)
	return ordersClean
}
func cleanWorkerOrders ( array [ ] WorkerOrder ) [ ] WorkerOrder { array = revertWorkerOrder ( array ) var ordersClean [ ] WorkerOrder for i := 0 ; i < len ( array ) ; i ++ { if array [ i ] . Quantity > array [ i ] . AlreadyMade { ordersClean = append ( ordersClean , array [ i ] ) } } ordersClean = removeDuplicatesWKOrders ( ordersClean ) return ordersClean }
This method cleans the array of WorkerOrders and leave only the orders that are not complete
This method cleans the array of WorkerOrders and leave only the orders that are not complete