Almost a gift, as I recall that was masterminded by the science minister and they have to spend up big to get it all working.
The modernisation of the ships was partially paid from a credit given by the German government (425 million DM); subsequent credits were given in 2001 and 2003. One of the ships almost sank during transfer.
The Indonesian science minister "convinced" Ludwig-Holger Pfahls, then an undersecretary in the German defense ministry, to sign off the deal. Pfahls was the main actor in at least half a dozen major cases of multi-million-dollar bribery in the defense ministry concerning deals with at least Israel, Saudi-Arabia and the USA. The Israel deal cost him his post in 1992 (he "voluntarily retired"); afterwards he got jobs with the companies he finagled the deals for.
After criminal proceedings were started against him in 1999 he fled to Taiwan, probably spent a while in Hongkong and was finally arrested in Paris in 2005 (it is suspected that Securite and DGSE supported him in the meantime) and deported to Germany where he was convicted only for the Saudi-Arabia bribe. He received a 27 month prison sentence of which he served half before he got out on probation. He is currently (since mid-april) in court again facing charges of fraud, insolvency and extortion.