Buisness logic docs updated
This commit is contained in:
@ -29,6 +29,13 @@ public class CommisionService {
|
||||
public CommisionService() {
|
||||
}
|
||||
|
||||
/**
|
||||
* save to database commision. It also checks for missing assignments from
|
||||
* previous commision (you can not get rid of accepted assignment)
|
||||
*
|
||||
* @param commision to save to db
|
||||
* @return Commision instance with id from database
|
||||
*/
|
||||
public Commision save(Commision commision) {
|
||||
Optional<Commision> lastCommision = this.getNewestCommision(commision.getCommisionOwner());
|
||||
if (lastCommision.isPresent()) {
|
||||
|
Reference in New Issue
Block a user