summaryrefslogtreecommitdiff
path: root/noncore/apps/qashmoney/transaction.cpp
authormickeyl <mickeyl>2003-11-09 01:26:34 (UTC)
committer mickeyl <mickeyl>2003-11-09 01:26:34 (UTC)
commit28d03a7d43f449949991a91cab63580ef6220725 (patch) (unidiff)
tree0d48f35e50f3f4ef58c1961ee4ed968dab183abb /noncore/apps/qashmoney/transaction.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/transaction.cpp') (more/less context) (ignore whitespace changes)
-rwxr-xr-xnoncore/apps/qashmoney/transaction.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/noncore/apps/qashmoney/transaction.cpp b/noncore/apps/qashmoney/transaction.cpp
index a3bd9e7..dcf46b1 100755
--- a/noncore/apps/qashmoney/transaction.cpp
+++ b/noncore/apps/qashmoney/transaction.cpp
@@ -22,20 +22,20 @@ Transaction::~Transaction ()
22 { 22 {
23 sqlite_close ( tdb ); 23 sqlite_close ( tdb );
24 } 24 }
25 25
26void Transaction::addTransaction ( QString description, QString payee, int accountid, int parentid, int number, int day, int month, int year, float amount, int cleared, int budgetid, int lineitemid ) 26void Transaction::addTransaction ( QString description, QString payee, int accountid, int parentid, int number, int day, int month, int year, float amount, int cleared, int budgetid, int lineitemid )
27 { 27 {
28 sqlite_exec_printf ( tdb, "insert into transactions values ( '%q', %i, %i, %i, %i, %i, %i, %.2f, %i, %i, 0, 0, 0, 0, 0, 0, %i, '%q', 0, 28 sqlite_exec_printf ( tdb, "insert into transactions values ( '%q', %i, %i, %i, %i, %i, %i, %.2f, %i, %i, 0, 0, 0, 0, 0, 0, %i, '%q', 0, "
29 0, 0, 0, NULL );", 0, 0, 0, ( const char * ) payee, accountid, parentid, number, day, month, year, amount, cleared, budgetid, lineitemid, ( const char * ) description ); 29 "0, 0, 0, NULL );", 0, 0, 0, ( const char * ) payee, accountid, parentid, number, day, month, year, amount, cleared, budgetid, lineitemid, ( const char * ) description );
30 } 30 }
31 31
32void Transaction::updateTransaction ( QString description, QString payee, int number, int day, int month, int year, float amount, int cleared, int budgetid, int lineitemid, int transactionid ) 32void Transaction::updateTransaction ( QString description, QString payee, int number, int day, int month, int year, float amount, int cleared, int budgetid, int lineitemid, int transactionid )
33 { 33 {
34 sqlite_exec_printf ( tdb, "update transactions set reservedtwo = '%q', payee = '%q', number = %i, day = %i, month = %i, year = %i, amount = %.2f, 34 sqlite_exec_printf ( tdb, "update transactions set reservedtwo = '%q', payee = '%q', number = %i, day = %i, month = %i, year = %i, amount = %.2f,"
35 cleared = %i, budgetid = %i, reservedone = %i where transid = %i;", 0, 0, 0, ( const char * ) description, ( const char * ) payee, number, day, month, year, 35 "cleared = %i, budgetid = %i, reservedone = %i where transid = %i;", 0, 0, 0, ( const char * ) description, ( const char * ) payee, number, day, month, year,
36 amount, cleared, budgetid, lineitemid, transactionid ); 36 amount, cleared, budgetid, lineitemid, transactionid );
37 } 37 }
38 38
39void Transaction::deleteTransaction ( int transid ) 39void Transaction::deleteTransaction ( int transid )
40 { 40 {
41 sqlite_exec_printf ( tdb, "delete from transactions where transid = %i;", 0, 0, 0, transid ); 41 sqlite_exec_printf ( tdb, "delete from transactions where transid = %i;", 0, 0, 0, transid );