aboutsummaryrefslogtreecommitdiff
path: root/core/src/UI/UI_DatabaseView.cpp
diff options
context:
space:
mode:
authorrtk0c <[email protected]>2021-05-25 23:56:02 -0700
committerrtk0c <[email protected]>2021-05-25 23:56:02 -0700
commita611b22650d1e40593db4fb1bce29d925e49e932 (patch)
tree1103179b6344c368e214852f16742129642c338b /core/src/UI/UI_DatabaseView.cpp
parentbb2ab4bc5b2c9cc25ef1858ac538f2dc48af2d2c (diff)
More work on workflow management UI
Diffstat (limited to 'core/src/UI/UI_DatabaseView.cpp')
-rw-r--r--core/src/UI/UI_DatabaseView.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/src/UI/UI_DatabaseView.cpp b/core/src/UI/UI_DatabaseView.cpp
index fb7fdfe..73ea657 100644
--- a/core/src/UI/UI_DatabaseView.cpp
+++ b/core/src/UI/UI_DatabaseView.cpp
@@ -468,7 +468,7 @@ private:
case DeliveryDirection::WarehouseToCustomer: outgoingFlag = true; break;
}
- auto& stmt = mProject->GetTransactionsModel().GetDeliveries().FilterByTypeAndId;
+ auto& stmt = mProject->Database.GetDeliveries().FilterByTypeAndId;
// clang-format off
DEFER { stmt.reset(); };
// clang-format on
@@ -482,7 +482,7 @@ private:
int arrivalTimeCol = stmt.getColumnIndex("ArrivalTime");
while (stmt.executeStep()) {
auto items = LoadItems(
- mProject->GetTransactionsModel().GetDeliveries().GetItems,
+ mProject->Database.GetDeliveries().GetItems,
stmt.getColumn(rowIdCol).getInt64());
auto summary = CreateItemsSummary(items);
@@ -609,7 +609,7 @@ public:
#pragma ide diagnostic ignored "HidingNonVirtualFunction"
void OnProjectChanged(Project* newProject)
{
- auto& table = newProject->GetTransactionsModel().GetSales();
+ auto& table = newProject->Database.GetSales();
Statements.GetRowCount = &table.GetRowCount;
Statements.GetRows = &table.GetRows;
Statements.GetItems = &table.GetItems;
@@ -634,7 +634,7 @@ public:
#pragma ide diagnostic ignored "HidingNonVirtualFunction"
void OnProjectChanged(Project* newProject)
{
- auto& table = newProject->GetTransactionsModel().GetPurchases();
+ auto& table = newProject->Database.GetPurchases();
Statements.GetRowCount = &table.GetRowCount;
Statements.GetRows = &table.GetRows;
Statements.GetItems = &table.GetItems;