Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0008903Openbravo ERP08. Project and service managementpublic2009-05-05 09:192009-05-15 11:17
networkb 
jayakumar 
immediatemajoralways
closedfixed 
20rPath Linux
2.40MP3 
2.40MP4 
Core
No
0008903: report "project profitability" is incorrect with invoices voids
the field "revenue real" in service column, and the field "reinvoicing real" in expense column, when exist any void invoice, the negative invoice is included in calcule, but the positive invoice is not included
. create invoice I with total amount 100 euros with project p
. run project profitability report with project p selected:
   field real revenue in service column is 100
. void invoice I
. run project profitability report with project p selected:
   field real revenue in service column is -100

the same error is with expenses invoices.
The problem is not in the report which correctly displays both invoices in Complete and Closed status.

The problem is that the negative invoice created when voiding has the status closed. Both the voided invoice and the invoice created to void it have to be in status void.

Review the following lines in the procedure C_INVOICE_POST:
-- Reversal Transaction is closed
          UPDATE C_INVOICE
            SET DocStatus='CL', -- the reversal transaction
            DocAction='--',
            Processed='Y'
          WHERE C_Invoice_ID=v_RInvoice_ID;
comsupchennai_sprint6
related to backport 0009088 closed rafaroda Change Project Profitability citeria for displaying invoices 
blocks defect 0008895 closed jayakumar report "project profitability" is incorrect with invoices voids 
Issue History
2009-05-05 12:04psarobeTypedefect => backport
2009-05-05 12:04psarobefix_in_branch => 2.40
2009-05-07 12:33psarobeSteps to Reproduce Updated
2009-05-07 12:53rafarodaAssigned Torafaroda => sathiyan
2009-05-07 12:53rafarodaSteps to Reproduce Updated
2009-05-07 13:16sathiyanAssigned Tosathiyan => jayakumar
2009-05-11 06:12hgbotCheckin
2009-05-11 06:12hgbotNote Added: 0016207
2009-05-11 06:12hgbotStatusscheduled => resolved
2009-05-11 06:12hgbotResolutionopen => fixed
2009-05-11 06:12hgbotFixed in SCM revision => http://code.openbravo.com/erp/stable/2.40/rev/28f141bf34d11849ae6d48e143b1df69cb08b0a6 [^]
2009-05-11 06:19jayakumarTag Attached: comsupchennai_sprint6
2009-05-11 17:48psarobeFixed in Version => 2.40MP4
2009-05-15 11:17sureshbabuStatusresolved => closed
2009-05-15 11:17sureshbabuNote Added: 0016373
2009-05-19 18:17rafarodaRelationship addedrelated to 0009088

Notes
(0016207)
hgbot   
2009-05-11 06:12   
Repository: erp/stable/2.40
Changeset: 28f141bf34d11849ae6d48e143b1df69cb08b0a6
Author: Jayakumar Kasinathan <jayakumar.kasinathan <at> openbravo.com>
Date: Sun May 10 21:44:10 2009 -0400
URL: http://code.openbravo.com/erp/stable/2.40/rev/28f141bf34d11849ae6d48e143b1df69cb08b0a6 [^]

Fixes bug 8903 report \"project profitability\" is incorrect with invoices voids.

---
M src-db/database/model/functions/C_INVOICE_POST.xml
---
(0016373)
sureshbabu   
2009-05-15 11:17   
Tested working fine