Barcelona have reached total agreement with Lautaro Martinez over a Camp Nou move – now they have to agree a deal with his club Inter.