do not reset $transaction at each loop + replace "." by "," in amount field