summaryrefslogtreecommitdiff
path: root/noncore/apps/qashmoney/transfer.cpp
authormickeyl <mickeyl>2003-11-09 01:26:34 (UTC)
committer mickeyl <mickeyl>2003-11-09 01:26:34 (UTC)
commit28d03a7d43f449949991a91cab63580ef6220725 (patch) (side-by-side diff)
tree0d48f35e50f3f4ef58c1961ee4ed968dab183abb /noncore/apps/qashmoney/transfer.cpp
parent61d14f9b908f06e3ef34c2ed3e7f1368c9e4533e (diff)
downloadopie-28d03a7d43f449949991a91cab63580ef6220725.zip
opie-28d03a7d43f449949991a91cab63580ef6220725.tar.gz
opie-28d03a7d43f449949991a91cab63580ef6220725.tar.bz2
fix compilage and integrate into buildsystem
directory structure is a mess though...
Diffstat (limited to 'noncore/apps/qashmoney/transfer.cpp') (more/less context) (ignore whitespace changes)
-rwxr-xr-xnoncore/apps/qashmoney/transfer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/apps/qashmoney/transfer.cpp b/noncore/apps/qashmoney/transfer.cpp
index 568d584..c4bbaf9 100755
--- a/noncore/apps/qashmoney/transfer.cpp
+++ b/noncore/apps/qashmoney/transfer.cpp
@@ -28,18 +28,18 @@ void Transfer::addTransfer ( int fromaccount, int fromparent, int toaccount, int
sqlite_get_table ( db, "select min ( rowid ) from transfers;", &results, 0, 0, 0 );
nextrowid = ( atoi ( results [ 1 ] ) ) - 1;
}
sqlite_exec_printf ( db, "insert into transfers values ( %i, %i, %i, %i, %i, %i, %i, 0, 0, %.2f, %i, 0, 0, 0, 0, 0, %i );", 0, 0, 0, fromaccount, fromparent, toaccount, toparent, day, month, year, amount, cleared, nextrowid );
}
void Transfer::updateTransfer ( int fromaccount, int fromparent, int toaccount, int toparent, int day, int month, int year, float amount, int cleared, int transferid )
{
- sqlite_exec_printf ( db, "update transfers set fromaccount = %i, fromparent = %i, toaccount = %i, toparent = %i, day = %i, month = %i, year = %i,
- amount = %.2f, cleared = %i where transferid = %i;", 0, 0, 0, fromaccount, fromparent, toaccount, toparent, day, month, year, amount, cleared, transferid );
+ sqlite_exec_printf ( db, "update transfers set fromaccount = %i, fromparent = %i, toaccount = %i, toparent = %i, day = %i, month = %i, year = %i,"
+ "amount = %.2f, cleared = %i where transferid = %i;", 0, 0, 0, fromaccount, fromparent, toaccount, toparent, day, month, year, amount, cleared, transferid );
}
void Transfer::deleteTransfer ( int transferid )
{
sqlite_exec_printf ( db, "delete from transfers where transferid = %i;", 0, 0, 0, transferid );
}
void Transfer::deleteAllTransfers ( int accountid )