You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Rishi Solanki (JIRA)" <ji...@apache.org> on 2009/09/17 11:04:57 UTC

[jira] Commented: (OFBIZ-2783) Cost Centers: implement new accounting screen to associate gl accounts to "cost centers"

    [ https://issues.apache.org/jira/browse/OFBIZ-2783?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12756429#action_12756429 ] 

Rishi Solanki commented on OFBIZ-2783:
--------------------------------------

Here are the improvements in the code and functionality for the cost center.
When we run the functionality, and add the amount percentage for different cost centers, the problem is that it is working on Ajax Request for each row submit.
Need to change this approach, as screen flicker on showing and hiding of each amount percentage change.
Steps to get right functionality ;
- Change the event handler first from jsonservice to jsonservice-multi.
- Pass all the amount percentage as prefix "amp_" so that service will get a map as prefix of "amp_".
- In the service iterate on the map key set values, get the other values and call the service to create the GlAccountCategoryMembers.
- Now the page is not reload and if you do not get the success in Ajax call then show error that "Amount Percentage is not equals to 100".

Thanks to Anil for discussion prior to implementation.

--
Rishi

> Cost Centers: implement new accounting screen to associate gl accounts to "cost centers"
> ----------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-2783
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-2783
>             Project: OFBiz
>          Issue Type: New Feature
>          Components: accounting
>    Affects Versions: SVN trunk
>            Reporter: Brajesh Patel
>            Assignee: Anil K Patel
>            Priority: Minor
>             Fix For: SVN trunk
>
>         Attachments: OFBIZ-2783.patch
>
>
> The new screen will be implemented under the "Global GL Settings" menu.
> The screen will be used to quickly create and manage GlAccountGroupMember records for "cost center" groups.
> The idea is that the user sets, for each gl account, the percentage amount to be accounted for each "cost center".
> The screen will present a list with all the gl accounts:
> For example, if we have three "cost center" records in the GlAccountCategory entity: "Cost Center 1", "Cost Center 2", "Cost Center 3"
> then the title section of the list will be:
> gl account id | code | name | Cost Center 1 |Cost Center 2 | Cost Center 3
> The fields for the "cost center" columns will be input fields where the user will enter the "amountPercentage" of the account for that cost center.
> A) When the user sets the amountPercentage field for a cost center the system will create or update the corresponding GlAccountCategoryMember.
> B) When the user removes the amountPercentage field for a cost center (or sets it to zero) the system will delete the corresponding GlAccountCategoryMember.
> C) The system should check that the total of the sum of all the amountPercentages set for each account is 100 (with no negative values) and prompt for an error if it is not.
> Ideally, operations A, B and C should be done automatically (Ajax) when the cursor is moved outside of the record.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.