[ 
https://issues.apache.org/jira/browse/OFBIZ-1542?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12554883
 ] 

Jacopo Cappellato commented on OFBIZ-1542:
------------------------------------------

The idea is to implement a service that takes as input "organizationPartyId" 
and returns as output:
* a List of glAccountId that must be added to the GlAccountOrganization entity
* other lists for glAccountTypeId that should be added (together with the 
mapped glAccountId) to the GlAccountTypeDefault, InvoiceItemTypeGlAccount, 
PaymentMethodTypeGlAccount, VarianceReasonGlAccount, CreditCardTypeGlAccount, 
FinAccountTypeGlAccount, TaxAuthorityGlAccount...

The logic is the following:

1) verify if for each of the global glAccountId (for example the ones in the 
InvoiceItem, CostComponentCalc etc... entities) we have:
1a) an organization specific mapping to a different account (and the 
corresponding entry in the GlAccountOrganization entity) OR
1b) the corresponding entry in the GlAccountOrganization entity for the global 
glAccountId
2) for each of the organization specific mapping, verify if there is the 
corresponding entry in the GlAccountOrganization entity

The service will be triggered by a link in the main organization's setup screen 
(PartyAccountingPreferences?) and once invoked, should return the lists to a 
screen that will render them in "multi" form widgets, so that the user can 
check the values and create the corresponding entries in the 
GlAccountOrganization entity.

Does it make sense?






> Implement service to help user to verify/complete the GL setup of an 
> organization
> ---------------------------------------------------------------------------------
>
>                 Key: OFBIZ-1542
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1542
>             Project: OFBiz
>          Issue Type: Sub-task
>          Components: accounting
>    Affects Versions: SVN trunk
>            Reporter: Jacopo Cappellato
>            Assignee: Ashish Vijaywargiya
>


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

Reply via email to