From ef4e5c32578256ad425c24c6fafa975da6dd4fc5 Mon Sep 17 00:00:00 2001
From: lazhen <17772815105@139.com>
Date: 星期二, 06 八月 2024 13:16:29 +0800
Subject: [PATCH] 财务产量和销量日期校验bug
---
_Main/BL/Type_FinancialProductionSource/Method_ReadStructure.qbl | 6 +++---
_Main/BL/Type_FinancialProductionReport/Method_ImportVerification.qbl | 6 ++----
_Main/BL/Type_FinancialSalesReport/Method_ImportVerification.qbl | 2 +-
3 files changed, 6 insertions(+), 8 deletions(-)
diff --git a/_Main/BL/Type_FinancialProductionReport/Method_ImportVerification.qbl b/_Main/BL/Type_FinancialProductionReport/Method_ImportVerification.qbl
index 55ea3ee..be9326a 100644
--- a/_Main/BL/Type_FinancialProductionReport/Method_ImportVerification.qbl
+++ b/_Main/BL/Type_FinancialProductionReport/Method_ImportVerification.qbl
@@ -27,11 +27,9 @@
error( Translations::MP_FinancialProductionReport_ImportIndetifyIllegalTime() );
}
period := cnv2.Convert( indexcolumn.Name() );
- // info( "寮�濮嬫椂闂达細", this.SalesForecastInputSource().PlanningStartDate().Format( "Y-M2-D2" ),
- // "缁撴潫鏃堕棿锛�", this.SalesForecastInputSource().PlanningEndDate().Format( "Y-M2-D2" ),
- // "鍒楁椂闂达細", cnv2.Convert( indexColumn.name() ).Format( "Y-M2-D2" ) );
+
// 鍒ゆ柇鏄惁鍦ㄨ鍒掑懆鏈熷唴
- if ( period <= startofthisyear or period >= startofnextyear ) {
+ if ( period < startofthisyear or period > startofnextyear ) {
error( Translations::MP_FinancialProductionReport_ImportIndetifyOverPeriod() );
}
indexcolumn := indexcolumn.NextColumn();
diff --git a/_Main/BL/Type_FinancialProductionSource/Method_ReadStructure.qbl b/_Main/BL/Type_FinancialProductionSource/Method_ReadStructure.qbl
index 44f9498..e4409b5 100644
--- a/_Main/BL/Type_FinancialProductionSource/Method_ReadStructure.qbl
+++ b/_Main/BL/Type_FinancialProductionSource/Method_ReadStructure.qbl
@@ -16,9 +16,9 @@
FinancialProductionReport::XMLImportFinancialProductionReportXMLHeaders( tableXML );
xlstable := FinancialProductionReport::XMLImportFinancialProductionReportXML( tableXML );
-
+
xlstable.SyncRows();
-
+
xlstable.Name( sheetName );
xlstable.IsImport( true );
this.FinancialProductionReport( relinsert, &xlstable );
@@ -27,7 +27,7 @@
// 锛堝鍏ュ墠锛夌粰绌哄�艰祴浜堥粯璁ゅ�硷紙N/A锛�,骞朵笖鍒犻櫎绌鸿鏁版嵁鍜屾暟鎹牎楠�
xlstable.IdentifyNullValues();
-
+
xlstable.ImportVerification();
}
//瀵煎叆鍚庡鐞嗘暟鎹�
diff --git a/_Main/BL/Type_FinancialSalesReport/Method_ImportVerification.qbl b/_Main/BL/Type_FinancialSalesReport/Method_ImportVerification.qbl
index 73d9cf9..bfb8e24 100644
--- a/_Main/BL/Type_FinancialSalesReport/Method_ImportVerification.qbl
+++ b/_Main/BL/Type_FinancialSalesReport/Method_ImportVerification.qbl
@@ -31,7 +31,7 @@
// "缁撴潫鏃堕棿锛�", this.SalesForecastInputSource().PlanningEndDate().Format( "Y-M2-D2" ),
// "鍒楁椂闂达細", cnv2.Convert( indexColumn.name() ).Format( "Y-M2-D2" ) );
// 鍒ゆ柇鏄惁鍦ㄨ鍒掑懆鏈熷唴
- if ( period <= startofthisyear or period >= startofnextyear ) {
+ if ( period < startofthisyear or period > startofnextyear ) {
error( Translations::MP_FinancialProductionReport_ImportIndetifyOverPeriod() );
}
indexcolumn := indexcolumn.NextColumn();
--
Gitblit v1.9.3