From 23e251ff1d124de2fb13fe195a8b4575bc0676a1 Mon Sep 17 00:00:00 2001 From: lazhen <17772815105@139.com> Date: 星期五, 09 八月 2024 16:52:39 +0800 Subject: [PATCH] 财务销量报表二维表生成 --- _Main/BL/Type_MachiningPipelineSource0/StaticMethod_Initialize.qbl | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/_Main/BL/Type_MachiningPipelineSource0/StaticMethod_Initialize.qbl b/_Main/BL/Type_MachiningPipelineSource0/StaticMethod_Initialize.qbl index 5776315..1a69f9f 100644 --- a/_Main/BL/Type_MachiningPipelineSource0/StaticMethod_Initialize.qbl +++ b/_Main/BL/Type_MachiningPipelineSource0/StaticMethod_Initialize.qbl @@ -52,26 +52,26 @@ //鍛� weekcolumn := table.GetColumnByUnit( Translations::MP_GlobalParameters_Week(), weekstart ); - supplyquantity := [Real]ceil( pispip.NewSupplyQuantity() );//鍚戜笂鍙栨暣 - inventoryquantity := [Real]ceil( pispip.PlannedInventoryLevelEnd() );//鍚戜笂鍙栨暣 + supplyquantity := [Number]pispip.NewSupplyQuantity();//鍥涜垗浜斿叆 + inventoryquantity := [Number]pispip.PlannedInventoryLevelEnd();//鍥涜垗浜斿叆 //瑁呴厤绾� if( isccassemnly or isdlassemnly ){ - row.SetCellAssemblyValue( daycolumn, isccassemnly, supplyquantity ); - row.SetCellAssemblyValue( weekcolumn, isccassemnly, supplyquantity ); + row.SetCellAssemblyValue( daycolumn, isccassemnly, [Real]supplyquantity ); + row.SetCellAssemblyValue( weekcolumn, isccassemnly, [Real]supplyquantity ); } //鏈哄姞绾� if( isccproduction or isdlproduction ){ - row.SetCellProductionValue( daycolumn, isccproduction, supplyquantity ); - row.SetCellProductionValue( weekcolumn, isccproduction, supplyquantity ); + row.SetCellProductionValue( daycolumn, isccproduction, [Real]supplyquantity ); + row.SetCellProductionValue( weekcolumn, isccproduction, [Real]supplyquantity ); } //搴撳瓨 if( iscc or isdl ){ - row.SetCellInventoryValue( daycolumn, iscc, inventoryquantity ); + row.SetCellInventoryValue( daycolumn, iscc, [Real]inventoryquantity ); if( pispip.Start() = weekstart + Duration::Days( 6 ) or pispip.Period_MP() = endperiod ){ weekstart := ( weekstart + Duration::Days( 7 ) ).Date(); - row.SetCellInventoryValue( weekcolumn, iscc, inventoryquantity ); + row.SetCellInventoryValue( weekcolumn, iscc, [Real]inventoryquantity ); } } } -- Gitblit v1.9.3