Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0011097Openbravo ERP09. Financial managementpublic2009-10-22 17:502011-10-28 12:57
OlliJT 
vmromanos 
highmajoralways
closedout of date 
20rPath Linux
2.40MP10 
pi 
Core
No
0011097: Error in handling write-offs when cancelling payments in settlement
If the write-off is left empty, processing of the settlement fails. Follow the steps.
1. Create a new settlement.
2. Open the pop-up window to select payments to cancel.
3. Select a payment and make the write-off field empty.
4. Create a corresponding payment in the created side.
5. Try to process the settlement.

The last step fails because the write-off field of the canceled payment is empty, which is not taken into account by the procedure.
Change in one row in the c_settlement_post function.

Original:
SELECT COALESCE(SUM(C_Currency_Round( C_Currency_Convert((Amount - WriteOffAmt), C_Currency_ID, v_Currency, v_Date, NULL, v_AD_Client_ID, v_AD_Org_ID), v_Currency, NULL)), 0),

Fixed:
 SELECT COALESCE(SUM(C_Currency_Round( C_Currency_Convert((Amount - COALESCE(WriteOffAmt, 0)), C_Currency_ID, v_Currency, v_Date, NULL, v_AD_Client_ID, v_AD_Org_ID), v_Currency, NULL)), 0),
     
No tags attached.
blocks defect 0011095 closed vmromanos Error in handling write-offs when cancelling payments in settlement 
Issue History
2009-10-23 06:54rafarodaTypedefect => backport
2009-10-23 06:54rafarodafix_in_branch => 2.40
2011-10-28 12:57dmitry_mezentsevNote Added: 0042223
2011-10-28 12:57dmitry_mezentsevStatusscheduled => closed
2011-10-28 12:57dmitry_mezentsevResolutionopen => out of date
2011-10-28 12:57dmitry_mezentsevFixed in Version => pi

Notes
(0042223)
dmitry_mezentsev   
2011-10-28 12:57   
Openbravo provides community support only for the latest Openbravo version, which is Openbravo 3. This version has significantly improved financial flow and this issue is not present there. Upgrade path from Openbravo 2.50 to latest Openbravo version is available so we recommend to upgrade your instance to get this issue fixed.

Life cycle guarantee (backporting bug fixes to the previos to latest releases (Openbravo 2.40, 2.50)) is available for Professional Edition subscribers only. Please register your ticket through Openbravo Support Portal (http://support.openbravo.com/ [^]) if you have valid Professional subscription.

You can find more details about our Support policy in the following blog post
http://paolojuvara.blogspot.com/2009/12/maintenance-policy-for-openbravo-250.html [^]