[ https://issues.apache.org/jira/browse/OFBIZ-2735?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12732401#action_12732401 ]
Sumit Pandit commented on OFBIZ-2735: ------------------------------------- To implement this following changes will require in existing service - Service - updateFinAccountBalancesFromTrans is called via ECA when create-store operation is performed at entity FinAccountTrans. This will recalculate the amount field of FinAccount Entity. For this add a condition so that updateFinAccountBalancesFromTrans will be called only when FinAccountTrans.statusId = FINACT_TRNS_APPROVED. And also update the same service where it calculate the balance of FinAccount (FinAccountTransService.xml line # 289 - 307), add a constraint that - DEPOSIT amount will add and WITHDRAW amount will subtract when FinAccountTransaction.statusId = FINACT_TRNS_APPROVED. > Implement a service to set the status of FinAccountTrans entity. > ---------------------------------------------------------------- > > Key: OFBIZ-2735 > URL: https://issues.apache.org/jira/browse/OFBIZ-2735 > Project: OFBiz > Issue Type: Improvement > Components: accounting > Affects Versions: SVN trunk > Reporter: Sumit Pandit > Priority: Minor > Fix For: SVN trunk > > -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.