public void calculateQuantityToSupply(BigDecimal reorderQuantity,BigDecimal minimumStock,ListIterator<GenericValue> listIterIEP){
  if (quantity.compareTo(reorderQuantity) < 0) {
    quantity=reorderQuantity;
  }
}

public void calculateQuantityToSupply ( BigDecimal reorderQuantity , BigDecimal minimumStock , ListIterator < GenericValue > listIterIEP ) { if ( quantity . compareTo ( reorderQuantity ) < 0 ) { quantity = reorderQuantity ; } }
calculate the proposedorder quantity and update the quantity property . read the first productfacility . reorderquantity and calculate the quantity : if ( quantity < reorderquantity ) quantity = reorderquantity ;
