lazhen
2024-10-21 b02a3586a97064c94087c0e3ca2eac36cd9d9b42
_Main/BL/Type_InventorySummarySource/StaticMethod_Initialize.qbl
@@ -37,9 +37,9 @@
        traverse( stockingpoint, ProductInStockingPoint_MP, pisp,  pisp.Product_MP().IsLeaf() ){
          productids.Add( pisp.ProductID() );
          //获取工厂行
          factoryrow          := table.GetRow( ifexpr( iscc, ccunit, dlunit ), pisp.ProductID() );
          factoryrow          := table.GetRow( ifexpr( iscc, ccunit, dlunit ), pisp.Product_MP() );
          //获取合计行
          allrow              := table.GetRow( allunit, pisp.ProductID() );
          allrow              := table.GetRow( allunit, pisp.Product_MP() );
          
          pispips             := selectsortedset( pisp, ProductInStockingPointInPeriod, pispip, pispip.Start() < startofnextyear 
                                                  and pispip.Period_MP().TimeUnit() = Translations::MP_GlobalParameters_Day(), pispip.Start() );
@@ -80,7 +80,8 @@
    traverse( table, InventorySummaryColumn, column, column.TimeUnit() = Translations::MP_GlobalParameters_Day() and column.StartDate() < startofplanning.Date() ){
      traverse( productidset, Elements, productid ){
        productids.Add( productid );
        column.GenerateCell( selections, ccsps, dlsps, table, column.StartDate(), column.EndaDate(), productid, allunit, ccunit, dlunit );
        product               := selectobject( owner, Product_MP, product, product.ID() = productid );
        column.GenerateCell( selections, ccsps, dlsps, table, column.StartDate(), column.EndaDate(), product, allunit, ccunit, dlunit );
      }
    }