25 lines
814 B
Diff
25 lines
814 B
Diff
|
diff --git i/kitsas/apuri/siirtoapuri.cpp w/kitsas/apuri/siirtoapuri.cpp
|
||
|
index 9a2c51f3..9565200f 100644
|
||
|
--- i/kitsas/apuri/siirtoapuri.cpp
|
||
|
+++ w/kitsas/apuri/siirtoapuri.cpp
|
||
|
@@ -25,6 +25,7 @@
|
||
|
#include "db/tositetyyppimodel.h"
|
||
|
#include "tiliote/tiliotekirjaaja.h"
|
||
|
|
||
|
+#include <QtAlgorithms>
|
||
|
#include <QDebug>
|
||
|
|
||
|
SiirtoApuri::SiirtoApuri(QWidget *parent, Tosite *tosite) :
|
||
|
@@ -361,8 +362,9 @@ void SiirtoApuri::laskunmaksu()
|
||
|
TositeVienti eka = lista.at(0).toMap();
|
||
|
tosite()->asetaPvm(eka.pvm());
|
||
|
tosite()->asetaOtsikko( eka.selite() );
|
||
|
- if( eka.kreditEuro() )
|
||
|
- lista.swapItemsAt(0,1);
|
||
|
+ if( eka.kreditEuro() ) {
|
||
|
+ qSwap(lista.begin()[0], lista.begin()[1]);
|
||
|
+ }
|
||
|
tosite()->viennit()->asetaViennit(lista);
|
||
|
reset();
|
||
|
|