From a611b22650d1e40593db4fb1bce29d925e49e932 Mon Sep 17 00:00:00 2001 From: rtk0c Date: Tue, 25 May 2021 23:56:02 -0700 Subject: More work on workflow management UI --- core/src/UI/UI_DatabaseView.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'core/src/UI/UI_DatabaseView.cpp') 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; -- cgit v1.2.3-70-g09d2