|
|
|
@ -8,12 +8,13 @@ import info.bukova.isspst.data.TripBillApproval;
|
|
|
|
|
import info.bukova.isspst.services.IsspstException;
|
|
|
|
|
import info.bukova.isspst.services.requirement.RequirementBaseServiceImpl;
|
|
|
|
|
import info.bukova.isspst.services.requirement.RequirementTypeService;
|
|
|
|
|
|
|
|
|
|
import java.util.Date;
|
|
|
|
|
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
|
|
|
|
import java.util.Date;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @author Pepa Rokos
|
|
|
|
|
*/
|
|
|
|
@ -34,7 +35,7 @@ public class TripBillApprovalServiceImpl extends RequirementBaseServiceImpl<Trip
|
|
|
|
|
approval.setReqDate(new Date());
|
|
|
|
|
approval.setType(reqTypeService.getTypeById(Constants.REQTYPE_BUSINESSTRIP));
|
|
|
|
|
approval.setState(RequirementState.NEW);
|
|
|
|
|
approval.setNumser(bill.getRequirement().getNumser());
|
|
|
|
|
// approval.setNumser(bill.getRequirement().getNumser());
|
|
|
|
|
approval.setDescription(StringUtils.localize("TravelOrdersFormTitle") + " \"" + bill.getOwnedBy() + "\" - " + bill.getRequirement().getDescription());
|
|
|
|
|
approval.setBill(bill);
|
|
|
|
|
bill.setApproval(approval);
|
|
|
|
|