From 5e5f64f57af3862ebf7c9241dc848f97572f96b2 Mon Sep 17 00:00:00 2001
From: lazhen <17772815105@139.com>
Date: 星期五, 01 十一月 2024 12:39:21 +0800
Subject: [PATCH] 机加管线报表库存计算bug
---
 _Main/BL/Type_MachiningPipelineReport/Method_Generate.qbl |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/_Main/BL/Type_MachiningPipelineReport/Method_Generate.qbl b/_Main/BL/Type_MachiningPipelineReport/Method_Generate.qbl
index 9822d5e..353f594 100644
--- a/_Main/BL/Type_MachiningPipelineReport/Method_Generate.qbl
+++ b/_Main/BL/Type_MachiningPipelineReport/Method_Generate.qbl
@@ -37,7 +37,7 @@
           beforecolumn      := column.PreviousColumn();
           beforeinventory   := selectobject( showrow, Cell, c, c.Column() = beforecolumn );
           ccinventoryqty    := beforeinventory.CCInventoryQty() + maxinventory.CCProductionQty() - maxinventory.CCToDLDepartureQty() + maxinventory.DLToCCArrivalQty() - maxinventory.CCAssemblyPlanQty();
-          ccinventoryqty    := beforeinventory.DLInventoryQty() + maxinventory.DLProductionQty() - maxinventory.DLToCCDepartureQty() + maxinventory.DLToCCDepartureQty() - maxinventory.DLAssemblyPlanQty();
+          dlinventoryqty    := beforeinventory.DLInventoryQty() + maxinventory.DLProductionQty() - maxinventory.DLToCCDepartureQty() + maxinventory.DLToCCDepartureQty() - maxinventory.DLAssemblyPlanQty();
         }
         sumcell  := selectobject( column, Cell, c, c.Row() = sumrow );
         if( isnull( sumcell ) ){
@@ -64,5 +64,11 @@
         sumcell.Add( showcell );
       }
     }
+    rows                    := selectsortedset( this, Row, row, row.Name(), row.RowNr() );
+    i                       := 0;
+    traverse( rows, Elements, e ){
+      e.RowNr( i );
+      i                     := i + 1;
+    }
   *]
 }
--
Gitblit v1.9.3