@@ -123,7 +123,8 @@ public class Constants {
|
||||
new ReportMapping(MOD_ADDRESSBOOK, new Report("Adresa", "address", false, true)),
|
||||
new ReportMapping(MOD_TRIPBILL, new Report("Žádost", "tripRequirement", false, true)),
|
||||
new ReportMapping(MOD_TRIPBILL, new Report("Vyúčtování", "tripBill", false, true)),
|
||||
new ReportMapping(MOD_ORDER, new Report("Objednávka", "order", true, true))
|
||||
new ReportMapping(MOD_ORDER, new Report("Objednávka", "order", true, true)),
|
||||
new ReportMapping(MOD_REQUIREMENTS, new Report("Požadavky", "requirements"))
|
||||
};
|
||||
|
||||
public final static String REQTYPE_ORDER = "ORDER";
|
||||
|
||||
@@ -126,5 +126,21 @@ public class RequirementBase extends BaseData implements FilterableRequirement {
|
||||
public void setWorkflow(List<Workflow> workflow) {
|
||||
this.workflow = workflow;
|
||||
}
|
||||
|
||||
public User getLastApprover() {
|
||||
if (authorization.isEmpty()) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return authorization.get(authorization.size() - 1).getApprover();
|
||||
}
|
||||
|
||||
public Date getLastApproveDate() {
|
||||
if (authorization.isEmpty()) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return authorization.get(authorization.size() - 1).getAuthDate();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user