From d82c813f4c07b13801a92fc20b3054d23a32ec58 Mon Sep 17 00:00:00 2001 From: yanyuan <yuan.yan@capgemini.com> Date: 星期三, 01 十一月 2023 16:47:02 +0800 Subject: [PATCH] Fix InventoryCost error --- _Main/UI/MacroPlannerWebApp/Component_Form633/Response_PanelPRDataButton_ButtonExportPR_OnClick.def | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/_Main/UI/MacroPlannerWebApp/Component_Form633/Response_PanelPRDataButton_ButtonExportPR_OnClick.def b/_Main/UI/MacroPlannerWebApp/Component_Form633/Response_PanelPRDataButton_ButtonExportPR_OnClick.def index db7b6a3..d189e36 100644 --- a/_Main/UI/MacroPlannerWebApp/Component_Form633/Response_PanelPRDataButton_ButtonExportPR_OnClick.def +++ b/_Main/UI/MacroPlannerWebApp/Component_Form633/Response_PanelPRDataButton_ButtonExportPR_OnClick.def @@ -7,14 +7,13 @@ DefinitionID: 'Responsedef_WebButton_OnClick' Precondition: [* - return not isnull( GlobalOTDTable ); + return not isnull( GlobalOTDTable ) and not isnull( MacroPlan ); *] QuillAction { Body: [* - tableBinaryData := PRData::ExportTheFileStream( MacroPlan ).AsBinaryData(); - Application.Download( "PRData.xlsx", tableBinaryData ); + Application.Download( "PRData.xlsx", PRData::ExportTheFileStream( DataHolderChecked.Data() ).AsBinaryData() ); *] GroupServerCalls: false } -- Gitblit v1.9.3