You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Wickersheimer Jeremy (JIRA)" <ji...@apache.org> on 2007/07/06 08:48:04 UTC

[jira] Commented: (OFBIZ-1128) Wrong calculation of Billing Account available balance

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

Wickersheimer Jeremy commented on OFBIZ-1128:
---------------------------------------------

Excuse my intrusion, i do not know much about the business but maybe it was intended to count only the approved orders ? 

> Wrong calculation of Billing Account available balance
> ------------------------------------------------------
>
>                 Key: OFBIZ-1128
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1128
>             Project: OFBiz
>          Issue Type: Bug
>          Components: accounting
>            Reporter: Rashko Rejmer
>            Assignee: Jacopo Cappellato
>            Priority: Minor
>         Attachments: billingAccountAmountCalculation.patch
>
>
> Try to create two sales orders that are payed with one billing account and make them with different statuses - for example the first one with status "ORDER_CREATED" and the second one with status "ORDER_APPROVED".
> Next go to the page of that billing account. The available balance of the account is calculated this way: 
> 	availableBalance = billingAccountLimit - amount of the second order. The amount of the first orders is not considered at all. 
> I thing that this is happening because of the query to the "OrderPurchasePaymentSummary" entity. This entity doesn't group the OrderPaymentPreference records that has different order statuses. 
> This patch should fix that problem.
> Regards,
> Rashko Rejmer

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