You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Mridul Pathak (JIRA)" <ji...@apache.org> on 2009/06/02 18:19:07 UTC

[jira] Updated: (OFBIZ-2502) Add functionality for store credit either in fin account or billing account while performing return.

     [ https://issues.apache.org/jira/browse/OFBIZ-2502?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mridul Pathak updated OFBIZ-2502:
---------------------------------

    Attachment: OFBIZ-2502.patch

Re-implemented this feature.  Uploading the new patch.  Following scenarios are now covered in this patch:

1) Added a field to ProductStore to specify Store Credit Account type (FIN_ACCOUNT or BILLING_ACCOUNT), default for demo ProductStore is FIN_ACCOUNT.
2) If finAccountId or billingAccountId is explicitly supplied, then it is used.
3) If none is supplied, BillingAccount with negative balance is looked up, and credit is stored if found one.
4) Else, ProductStore is looked up to find the Store Credit Account type.
5) If its FIN_ACCOUNT, the FinAccount of type STORE_CREDIT_ACCT is looked up for the party, if found is used, else new FIN_ACCOUNT of same type is created.
6) If its BILLING_ACCOUNT, an existing BILLING_ACCOUNT is used, if none exists, new one is created.

> Add functionality for store credit either in fin account or billing account while performing return.
> ----------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-2502
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-2502
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: order
>    Affects Versions: SVN trunk
>            Reporter: Santosh Malviya
>            Priority: Minor
>             Fix For: SVN trunk
>
>         Attachments: FinAccountOrBillingAccount.patch, OFBIZ-2502.patch
>
>
> Currently OFBiz creates a Store Credit as a Payment associated with a Billing Account (creating a new BA if one doesn't already exist). Do same for fin account. 
> Following are the steps to do this:
> (1) Add a field to the ProductStore entity to specify whether returns should go on a Financial Account or a Billing Account.
> (2) Extend the processCreditReturn service to look at that setting and if set for a Financial Account find one for the customer (create one if necessary) and add a credit transaction to it for the credit and associate that credit transaction to the ReturnItem it came from (just like currently done with BillingAccount Payment).

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