_Main/BL/Type_PackagingPlanCell/Function_CalcPackagingInventory.qbl
@@ -6,11 +6,13 @@ [* // lihongji Jul-26-2024 (created) value := this.InitialPackagingInventory() + guard( this.Previous().PackagingInventory() + guard( this.Previous().Package(), 0.0 ) - value := ifexpr( this.PackagingPlanRow().Factory() = "长春工厂", this.CC_PackagingInventory(), this.InitialPackagingInventory() + guard( this.Previous().PackagingInventory() + guard( this.Package(), 0.0 ) - ifexpr( this.TransferIn() > 0.0, 0, this.Unpacking() ), 0.0 ) - this.Out(); - this.Out() ); this.PackagingInventory( value ); *]