From 7a48109b4bc75b886dd7180d7db35ad2bf33fb67 Mon Sep 17 00:00:00 2001
From: xiaoding721 <33130084+xiaoding721@users.noreply.github.com>
Date: 星期四, 14 十一月 2024 19:06:44 +0800
Subject: [PATCH] 修复一些bug
---
_Main/BL/Type_LockPeriod/Method_Enable.qbl | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/_Main/BL/Type_LockPeriod/Method_Enable.qbl b/_Main/BL/Type_LockPeriod/Method_Enable.qbl
index ccff833..56456a3 100644
--- a/_Main/BL/Type_LockPeriod/Method_Enable.qbl
+++ b/_Main/BL/Type_LockPeriod/Method_Enable.qbl
@@ -1,19 +1,19 @@
Quintiq file version 2.0
#parent: #root
Method Enable (
- const NewOfflinePlanTable offlinePlanTable
+ const OfflinePlanArchiveVersion offlinePlanTable
)
{
TextBody:
[*
// Akari Oct-30-2024 (created)
- offlinePlanRow := select( offlinePlanTable,NewOfflinePlanRow,row,row.ProductID() = this.ProductInStockingPoint_MP().ProductID() and row.StockingPointID() = this.ProductInStockingPoint_MP().StockingPointID() );
+ offlinePlanRow := select( offlinePlanTable,Row,row,row.ProductID() = this.ProductInStockingPoint_MP().ProductID() and row.StockingPointID() = this.ProductInStockingPoint_MP().StockingPointID() );
- offlinePlanCells := selectset( offlinePlanRow, NewOfflinePlanCell,cell,true );
+ offlinePlanCells := selectset( offlinePlanRow, Cell,cell,cell.Column().TimeUnit() = "Day" );
offlinePlanCellIndexTree := NamedValueTree::Create();
for( i := 0; i< offlinePlanCells.Size(); i++ ){
offlinePlanCell := offlinePlanCells.Element( i );
- offlinePlanCellHandle := offlinePlanCellIndexTree.GetHandle( offlinePlanCell.NewOfflinePlanColumn().StartDate().AsQUILL() );
+ offlinePlanCellHandle := offlinePlanCellIndexTree.GetHandle( offlinePlanCell.Column().StartDate().AsQUILL() );
offlinePlanCellIndexTree.Root().AddChild( offlinePlanCellHandle,i );
}
--
Gitblit v1.9.3