Optima Groovy-Hooks hinzugefügt
This commit is contained in:
15
Optima/_Groovy/dbsCaseContractHooks_prefixGen.groovy
Normal file
15
Optima/_Groovy/dbsCaseContractHooks_prefixGen.groovy
Normal file
@@ -0,0 +1,15 @@
|
||||
public class dbsCaseContractHooks_prefixGen {
|
||||
|
||||
/* ########################################################################################
|
||||
* ################### The functions below may be edited by customers #####################
|
||||
* ########################################################################################
|
||||
*/
|
||||
public String generateContractNumberPrefix(String configuredPrefix) {
|
||||
int year = Calendar.getInstance().get( Calendar.YEAR);
|
||||
if ( configuredPrefix == null || configuredPrefix == ""){
|
||||
return "${year}-";
|
||||
} else {
|
||||
return "${configuredPrefix}-${year}-";
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user