Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0034345Openbravo ERP07. Sales managementpublic2016-10-28 15:092017-03-15 20:18
ngarcia 
rqueralta 
highminoralways
closedfixed 
5
 
3.0PR17Q2 
markmm82
Core
No
0034345: Sales Dimensional Report is not showing sales order lines with 0 line net amount
Sales Dimensional Report is not showing sales order lines with 0 line net amount
As group admin role:
   Create a new purchase order
   Add a line to it and set its net unit price to 0
   Book it
   Launch the Purchase Dimensional Report
   Add Documentno and Product as Dimensions
   Check the previously created purchase order is shown in the report
   Create a new sales order
   Add a line to it and set its net unit price to 0
   Book it
   Launch the Sales Dimensional Report
   Add Documentno and Product as Dimensions
   Check the previously created sales order line is not shown in the report
No tags attached.
related to defect 00172323.0MP1 closed dalsasua Purchase order closed before create associated receipt is not showed in Purchase Dimensional Report 
related to design defect 0034907 new Triage Omni OMS Sales Dimensional Report can be improved by adding Document Type dimension. 
diff 34345notest.diff (1,330) 2016-10-28 15:11
https://issues.openbravo.com/file_download.php?file_id=9989&type=bug
Issue History
2016-10-28 15:09ngarciaNew Issue
2016-10-28 15:09ngarciaAssigned To => Triage Finance
2016-10-28 15:09ngarciaModules => Core
2016-10-28 15:09ngarciaTriggers an Emergency Pack => No
2016-10-28 15:11ngarciaFile Added: 34345notest.diff
2016-10-28 15:11ngarciaIssue Monitored: networkb
2016-10-28 15:11ngarciaRelationship addedrelated to 0017232
2016-12-27 18:56markmm82Assigned ToTriage Finance => rqueralta
2017-01-03 05:16rqueraltaNote Added: 0093114
2017-01-04 11:59psanjuanNote Added: 0093172
2017-01-11 11:06psanjuanNote Added: 0093326
2017-01-11 11:13psanjuanNote Edited: 0093326bug_revision_view_page.php?bugnote_id=0093326#r14240
2017-01-11 11:14psanjuanNote Edited: 0093326bug_revision_view_page.php?bugnote_id=0093326#r14241
2017-01-11 11:14psanjuanNote Added: 0093327
2017-01-11 11:30psanjuanNote Added: 0093343
2017-01-11 11:30psanjuanRelationship addedrelated to 0034907
2017-01-13 18:57markmm82Statusnew => scheduled
2017-01-16 19:44hgbotCheckin
2017-01-16 19:44hgbotNote Added: 0093609
2017-01-16 19:44hgbotStatusscheduled => resolved
2017-01-16 19:44hgbotResolutionopen => fixed
2017-01-16 19:44hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/d8929499d9ff31a86217532f69abe07fce464b40 [^]
2017-01-16 19:44hgbotCheckin
2017-01-16 19:44hgbotNote Added: 0093610
2017-01-16 19:58markmm82Review Assigned To => markmm82
2017-01-16 19:58markmm82Note Added: 0093614
2017-01-16 19:58markmm82Statusresolved => closed
2017-01-16 19:58markmm82Fixed in Version => 3.0PR17Q2
2017-03-15 20:18hudsonbotCheckin
2017-03-15 20:18hudsonbotNote Added: 0095100
2017-03-15 20:18hudsonbotCheckin
2017-03-15 20:18hudsonbotNote Added: 0095101

Notes
(0093114)
rqueralta   
2017-01-03 05:16   
As Group Admin role:
   Create a new sales order
   Add a line to it and set its net unit price to 0
   Book it
   Launch the Sales Dimensional Report
   Add Documentno and Product as Dimensions
   Check the previously created sales order line is shown in the report
(0093172)
psanjuan   
2017-01-04 11:59   
Issue verified.
(0093326)
psanjuan   
2017-01-11 11:06   
(edited on: 2017-01-11 11:14)
Test Plan:

Go to Sales Order window and create a new one for F&B EspaƱa, Alimentos y Supermercados business partner. Enter current date as order date.
Add a line to it, include any product and set a unit price = 0.
Book the order and write down order number (i.e. 1000223)
Launch Sales Dimensional Report for current date.
Add DocumentNo and Product as Dimensions.

Check that the order is shown in the report.

Repeat same test as above for all sales order types (POS order and Warehouse Order), and verify that all of them are shown in the report.

(0093327)
psanjuan   
2017-01-11 11:14   
Test plan above verified. Issue can be code reviewed and closed.
(0093343)
psanjuan   
2017-01-11 11:30   
New desing defect created and related to this issue. See issue 34907
(0093609)
hgbot   
2017-01-16 19:44   
Repository: erp/devel/pi
Changeset: d8929499d9ff31a86217532f69abe07fce464b40
Author: Rafael Queralta Pozo <rqueralta <at> nauta.cu>
Date: Mon Jan 02 17:15:14 2017 -0500
URL: http://code.openbravo.com/erp/devel/pi/rev/d8929499d9ff31a86217532f69abe07fce464b40 [^]

Fixed issue 34345:Sales Dimensional Report is not showing SO with 0 net amount

Having clause was changed to show Sales Order lines with 0 line net amount

---
M src/org/openbravo/erpCommon/ad_reports/ReportSalesDimensionalAnalyzeJR.java
---
(0093610)
hgbot   
2017-01-16 19:44   
Repository: erp/devel/pi
Changeset: a75ea21e11ecc2dc9e3afe65e339a7ebd3def11a
Author: Mark <markmm82 <at> gmail.com>
Date: Mon Jan 16 13:15:25 2017 -0500
URL: http://code.openbravo.com/erp/devel/pi/rev/a75ea21e11ecc2dc9e3afe65e339a7ebd3def11a [^]

Related to issue 34345: Code review improvements

Some code review improvements to check the amounts are GREATER THAN (not equals)
and/or LESS THAN (not equals) the filters provided in the UI. If there is not any
amount filter defined then it is not necessary to include a "HAVING" clause to the
query.

Applied these changes to Sales and Purchase Orders reports.

---
M src/org/openbravo/erpCommon/ad_reports/ReportPurchaseDimensionalAnalysesJR.java
M src/org/openbravo/erpCommon/ad_reports/ReportSalesDimensionalAnalyzeJR.java
---
(0093614)
markmm82   
2017-01-16 19:58   
Code review + Testing OK
(0095100)
hudsonbot   
2017-03-15 20:18   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/54e102bef53e [^]
Maturity status: Test
(0095101)
hudsonbot   
2017-03-15 20:18   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/54e102bef53e [^]
Maturity status: Test