Commit ebb60346 authored by holivier's avatar holivier

When adding SalaryStep, salaryStepSeqId can be enter by UI so it should be...

When adding SalaryStep, salaryStepSeqId can be enter by UI so it should be test if it's in parameters,
and in this case use it.
parent 1c72e604
......@@ -122,3 +122,20 @@
<make-value entity-name="EmplLeave" value-field="newEntity"/>
<set-pk-fields value-field="newEntity" map="parameters"/>
<set-nonpk-fields map="parameters" value-field="newEntity"/>
@@ -192,13 +242,15 @@
<simple-method method-name="createSalaryStep" short-description="Create a Salary Step">
<make-value entity-name="SalaryStep" value-field="newEntity"/>
<set-pk-fields map="parameters" value-field="newEntity"/>
<set-nonpk-fields map="parameters" value-field="newEntity"/>
<set field="newEntity.createdByUserLogin" from-field="parameters.userLogin.userLoginId"/>
- <sequenced-id sequence-name="SalaryStep" field="newEntity.salaryStepSeqId"/>
+ <if-empty field="newEntity.salaryStepSeqId">
+ <sequenced-id sequence-name="SalaryStep" field="newEntity.salaryStepSeqId"/>
+ </if-empty>
<field-to-result field="salaryStepSeqId" result-name="salaryStepSeqId"/>
<create-value value-field="newEntity"/>
</simple-method>
<simple-method method-name="updateSalaryStep" short-description="Update Salary Step">
<entity-one entity-name="SalaryStep" value-field="lookedUpValue"/>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment