xiaoding721
2024-10-29 69296cb82cbac409959d82417ad0eddf07f51bbb
_Main/BL/Type_PackagingPlanCell/Function_CalcPackagingInventory.qbl
@@ -8,10 +8,11 @@
    
    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.TransferIn()                                    +
                                                               guard( this.Package(), 0.0 )                         -
                                                               ifexpr( this.TransferIn() > 0.0, 0, this.Unpacking() ),
                                                               0.0 )
                                                      - this.Out()
                    );
    
    this.PackagingInventory( value );