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

Vikas Mayur commented on OFBIZ-1381:
------------------------------------

There have been many changes to the store credit return process, please see 
OFBIZ-2502 for more details. The store credit now is done to an account 
(whether billing or financial account) based on the account preference setup on 
the product store. A new account is created, if not found. While you can 
specifically mention the account on the return header screen just to make sure 
that you do the store credit to the account you want.

The bug I think is still valid. The part of the code at and beyond line 791 
OrderReturnServices class can be improved in such a manner that if no billing 
account is found with -ve balance and if the default store credit on store is 
billing account than do the credit to billing account associated with 
particular order for which the refund is made, so that no new billing account 
is created. If no billing account is found, than simply create one.

If that sounds like a right approach, let me know.
                
> If you Create and Ship an Order for a billing account and then create a store 
> credit, a second billing account is created
> -------------------------------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-1381
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1381
>             Project: OFBiz
>          Issue Type: Bug
>          Components: accounting, order
>    Affects Versions: SVN trunk
>            Reporter: Skip Dever
>             Fix For: SVN trunk
>
>         Attachments: quickReturn.patch
>
>
> If you sell a WG-1111 to DemoCustCompany on a billing account, then ship it, 
> then create a return on a store credit for the same Order/Invoice, the 
> DemoCustomer will end up with two billing accounts.  Do it again and he will 
> have three.
> If this is not a "feature" that someone is using, I will fix it.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to