Hi Arpit,
thanks for tour reply. Please check my code
<simple-method method-name="createFinAccountTrans" short-description="Create
a Financial Account Transaction">
<call-simple-method method-name="getArithmeticSettingsInline"/>
<make-value value-field="newEntity" entity-name="FinAccountTrans"/>
<set-nonpk-fields value-field="newEntity" map="parameters"/>
<sequenced-id sequence-name="FinAccountTrans"
field="newEntity.finAccountTransId"/>
<field-to-result field="newEntity.finAccountTransId"
result-name="finAccountTransId"/>
<now-timestamp field="nowTimestamp"/>
<if-empty field="newEntity.transactionDate">
<set from-field="nowTimestamp"
field="newEntity.transactionDate"/>
</if-empty>
<if-empty field="newEntity.entryDate">
<set from-field="nowTimestamp" field="newEntity.entryDate"/>
</if-empty>
<set field="newEntity.performedByPartyId"
from-field="userLogin.partyId"/>
<!-- make sure the amount is a sane number -->
<set field="originalAmount" from-field="newEntity.amount"/>
<calculate field="newEntity.amount"
decimal-scale="${roundingDecimals}" rounding-mode="${roundingMode}">
<calcop operator="get" field="newEntity.amount"/>
</calculate>
<if-compare-field field="newEntity.amount" to-field="originalAmount"
operator="not-equals" type="BigDecimal">
<log level="warning" message="In createFinAccountTrans had to
round the amount from [${originalAmount}] to [${newEntity.amount}]"></log>
</if-compare-field>
<create-value value-field="newEntity"/>
<field-to-result field="newEntity.finAccountTransId"
result-name="finAccountTransId"/>
<!-- MYCODE START-->
<set from-field="newEntity.transactionDate"
field="createAcctgTransParams.transactionDate" />
<set field="createAcctgTransParams.partyId"
from-field="newEntity.partyId"/>
<set value="N" field="createAcctgTransParams.isPosted"/>
<set value="ACTUAL"
field="createAcctgTransParams.glFiscalTypeId"/>
<set from-field="newEntity.amount"
field="createAcctgTransParams.OrigAmount"/>
<if-not-empty field="newEntity.finAccountTransTypeId">
<if-compare field="newEntity.finAccountTransTypeId"
operator="equals" value="DEPOSIT">
<set value="RECEIPT"
field="createAcctgTransParams.acctgTransTypeId"/>
</if-compare>
<if-compare field="newEntity.finAccountTransTypeId"
operator="equals" value="WITHDRAWAL">
<set value="PAYMENT_ACCTG_TRANS"
field="createAcctgTransParams.acctgTransTypeId"/>
</if-compare>
</if-not-empty>
<call-service service-name="createAcctgTrans"
in-map-name="createAcctgTransParams" include-user-login="true">
<result-to-field result-name="acctgTransId"/>
</call-service>
<field-to-result field="acctgTransId"
result-name="acctgTransId"/>
<!-- END -->
</simple-method>
Giving Error like
The Following Errors Occurred:
Unknown parameter found: [createFinAccountTrans.acctgTransId]
At the same time code for accessing it from screen is written below
<set field="acctgTransId" from-field="parameters.acctgTransId"/>
I don't want to change the above line because if I am accessing the same
Accounting transaction Posting screen from normal flow so it should not
interrupt .
Please suggest me the best way to resolve it
Regards,
Prasanthi
--
View this message in context:
http://ofbiz.135035.n4.nabble.com/Not-able-to-navigate-to-a-screen-tp2221044p2221329.html
Sent from the OFBiz - User mailing list archive at Nabble.com.