Created
          May 26, 2020 16:14 
        
      - 
      
- 
        Save rzwitserloot/1b1d4d99f70175fe73b2dea21969894c to your computer and use it in GitHub Desktop. 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | long cost = 0; | |
| for (var option : promotionOptionList) { | |
| long q = option.getQuantity(); | |
| long c = promotionRefOptionService.get(option.getOptionId()).getCreditCost(); | |
| cost += q * c; | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment