diff options
author | rtk0c <[email protected]> | 2021-05-25 23:56:02 -0700 |
---|---|---|
committer | rtk0c <[email protected]> | 2021-05-25 23:56:02 -0700 |
commit | a611b22650d1e40593db4fb1bce29d925e49e932 (patch) | |
tree | 1103179b6344c368e214852f16742129642c338b /core/src/UI/UI_DatabaseView.cpp | |
parent | bb2ab4bc5b2c9cc25ef1858ac538f2dc48af2d2c (diff) |
More work on workflow management UI
Diffstat (limited to 'core/src/UI/UI_DatabaseView.cpp')
-rw-r--r-- | core/src/UI/UI_DatabaseView.cpp | 8 |
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; |