xiaoding721
2024-09-12 5655862ec81022848c46d1862404f077b919f9fa
_Main/BL/Type_Archive/StaticMethod_GenerateForecast.qbl
@@ -2,13 +2,16 @@
#parent: #root
StaticMethod GenerateForecast (
  ArchiveExecutionStatus archiveExecutionStatus,
  MacroPlan macroPlan
  MacroPlan macroPlan,
  Boolean isClearForecast
)
{
  TextBody:
  [*
    traverse ( macroPlan, SalesDemand.astype( Forecast ), f ) {
      f.Delete();
    if( isClearForecast ){
      traverse ( macroPlan, SalesDemand.astype( Forecast ), f ) {
        f.Delete();
      }
    }
    
    productMPs := selectset( macroPlan,Product_MP,prod,not prod.IsSystem() );