Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/plugins/sql/mymoneystoragesql.cpp
Context not available. | |||||
1824 | int entryDateCol = t.fieldNumber("entryDate"); | 1824 | int entryDateCol = t.fieldNumber("entryDate"); | ||
---|---|---|---|---|---|
1825 | int currencyIdCol = t.fieldNumber("currencyId"); | 1825 | int currencyIdCol = t.fieldNumber("currencyId"); | ||
1826 | int bankIdCol = t.fieldNumber("bankId"); | 1826 | int bankIdCol = t.fieldNumber("bankId"); | ||
1827 | auto originIdCol = t.fieldNumber("origin"); | ||||
1827 | 1828 | | |||
1828 | while (query.next()) { | 1829 | while (query.next()) { | ||
1829 | MyMoneyTransaction tx; | 1830 | MyMoneyTransaction tx; | ||
Context not available. | |||||
1833 | tx.setEntryDate(GETDATE_D(entryDateCol)); | 1834 | tx.setEntryDate(GETDATE_D(entryDateCol)); | ||
1834 | tx.setCommodity(GETSTRING(currencyIdCol)); | 1835 | tx.setCommodity(GETSTRING(currencyIdCol)); | ||
1835 | tx.setBankID(GETSTRING(bankIdCol)); | 1836 | tx.setBankID(GETSTRING(bankIdCol)); | ||
1837 | tx.setOrigin(static_cast<eMyMoney::Transaction::Origin>(GETINT(originIdCol))); | ||||
1836 | 1838 | | |||
1837 | // skip all splits while the transaction id of the split is less than | 1839 | // skip all splits while the transaction id of the split is less than | ||
1838 | // the transaction id of the current transaction. Don't forget to check | 1840 | // the transaction id of the current transaction. Don't forget to check | ||
Context not available. |