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

mridul.pathak edited comment on OFBIZ-1437 at 11/30/07 6:10 AM:
----------------------------------------------------------------

Jacopo and Anil,
Here is the patch for modifications according to the given comments with a new 
approach which is as follows.
1) Find out the ProductCategoryMember list for parameters.productId 
(Considering from/thru dates)
2) For each productCategoryId in the list find ProductCategoryGlAccount using 
fields parameters.organizationPartyId and parameters.glAccountTypreId.
3) If we find a match then stop and return the 
ProductCategoryGlAccount.glAccountId 

Please use the patch which seems more suitable to you.

      was (Author: mridul.pathak):
    Jacopo and Anil,
Here is the patch for modifications according to the given comments with a new 
approach which is as follows.
1) Find out the ProductCategoryMember list for parameters.productId 
(Considering from/thru dates)
2) For each productCategoryId in the list find ProductCategoryGlAccount using 
fields parameters.organizationPartyId and parameters.glAccountTypreId.
3) If we find a match then stop and return the 
ProductCategoryGlAccount.glAccountId 
  
> Modify the getProductOrgGlAccount service to also consider the new 
> ProductCategoryGlAccount entity
> --------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-1437
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1437
>             Project: OFBiz
>          Issue Type: Sub-task
>          Components: accounting
>            Reporter: Jacopo Cappellato
>            Assignee: Anil K Patel
>         Attachments: getProductOrgGlAccount_new_approach.patch, 
> getProductOrgGlAccountService.patch, getProductOrgGlAccountService.patch
>
>
> Modify the getProductOrgGlAccount service to also consider the new 
> ProductCategoryGlAccount entity: the information in this file will be 
> considered if no specific mapping for the productId was found in the 
> ProductGlAccount entity and before looking at the general 
> GlAccountTypeDefault entity.
> As usual, a product is associated to the category thru the 
> ProductCategoryMember entity.

-- 
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