Skip to content

Instantly share code, notes, and snippets.

@msulima
Last active December 21, 2015 02:19
Show Gist options
  • Save msulima/6234487 to your computer and use it in GitHub Desktop.
Save msulima/6234487 to your computer and use it in GitHub Desktop.
public void processSales(List<Sale> sales, Customer customer) {
List<Transaction> transactions = createTransactionsForSales(sales, customer);
if (isAnyTransactionInForeignCurrency(transactions)) {
notifyForeignOffice(customer);
}
saveInDatabase(transactions);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment