hongjli
2025-01-14 386cb9a858f89d881acea3fd3a0d7c65945542ef
_Main/BL/Type_NewAssemblyOnlinePlanCell/StaticMethod_PostLayingProcessing.qbl
@@ -58,8 +58,9 @@
              
              targetQuantity := targetQuantity - [Number]finalQuantity;
              targetCell    := minselect( targetCells, Elements, tempNAOPCell, tempNAOPCell.OrderNr() > 0 and tempNAOPCell.Quantity() > 0, tempNAOPCell.OrderNr() );
              finalQuantity := minvalue( targetQuantity, targetCell.Quantity() );
              currentCell   := select( naopc, NewAssemblyOnlinePlanCell, tempNAOPCell, tempNAOPCell.NewAssemblyOnlinePlanRow() = targetCell.NewAssemblyOnlinePlanRow() );
              finalQuantity := minvalue( targetQuantity, guard( targetCell.Quantity(), 0.0 ) );
              currentCell   := select( naopc, NewAssemblyOnlinePlanCell, tempNAOPCell,
                                       guard( tempNAOPCell.NewAssemblyOnlinePlanRow() = targetCell.NewAssemblyOnlinePlanRow(), false ) );
            }
          }
        }