| | |
| | | |
| | | 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 ) ); |
| | | } |
| | | } |
| | | } |