diff options
author | rtk0c <[email protected]> | 2021-04-28 21:25:55 -0700 |
---|---|---|
committer | rtk0c <[email protected]> | 2021-04-28 21:28:34 -0700 |
commit | 538e804fc9beb83e711a210ffbb6badc15f285d5 (patch) | |
tree | 6157a4065cfca3204f3406a4533095214ec3e04b /core/src/Model/TransactionsModel.cpp | |
parent | 00fd95526677d670d002ca81069636f0f74b91f7 (diff) |
Add table visualization for purchases
Diffstat (limited to 'core/src/Model/TransactionsModel.cpp')
-rw-r--r-- | core/src/Model/TransactionsModel.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/core/src/Model/TransactionsModel.cpp b/core/src/Model/TransactionsModel.cpp index 968f0c0..914191d 100644 --- a/core/src/Model/TransactionsModel.cpp +++ b/core/src/Model/TransactionsModel.cpp @@ -18,10 +18,14 @@ SalesTable::SalesTable(TransactionModel& db) )""") { } -DeliveryTable::DeliveryTable(TransactionModel& db) { +PurchasesTable::PurchasesTable(TransactionModel& db) + // language=SQLite + : GetRowCountStatement(db.GetSQLite(), "SELECT Count(*) FROM Purchases") + // language=SQLite + , GetRowsStatement(db.GetSQLite(), "SELECT * FROM Purchases WHERE rowid >= ? AND rowid < ?") { } -PurchasesTable::PurchasesTable(TransactionModel& db) { +DeliveryTable::DeliveryTable(TransactionModel& db) { } static std::string GetDatabaseFilePath(const Project& project) { |