Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0035785Openbravo ERP07. Sales managementpublic2017-04-13 22:172018-01-19 10:22
collazoandy4 
collazoandy4 
normalminoralways
closedfixed 
5
 
3.0PR17Q3 
aferraz
Core
No
0035785: Discounts line in processed invoices not rounded in database
The Discounts lines in processed invoices theirs quantities have not been rounded in c_invoiceline table
 Go to Purchase invoice and create a new record:
   Business Partner: Bebidas Alegres, S.L.
   Create a new line:
     Product: Cerveza Ale 0,5L
     Invoiced Quantity: 10
   Go to Basic Discount tab and create a new record:
     Basic Discount: Descuento 10%
 Process the invoice
 Check in the database that the quantities of discount line have not been rounded (-1.3600000000000000)
No tags attached.
related to defect 0035699 closed AtulOpenbravo Wrong total gross amount when reactivating an order or a invoice which includes a basic discount of 100% 
Issue History
2017-04-13 22:17collazoandy4New Issue
2017-04-13 22:17collazoandy4Assigned To => collazoandy4
2017-04-13 22:17collazoandy4Modules => Core
2017-04-13 22:17collazoandy4Triggers an Emergency Pack => No
2017-04-14 00:06collazoandy4Statusnew => scheduled
2017-04-24 16:05collazoandy4Note Added: 0096136
2017-05-02 16:59aferrazRelationship addedrelated to 0035699
2017-05-04 09:32hgbotCheckin
2017-05-04 09:32hgbotNote Added: 0096369
2017-05-04 09:32hgbotStatusscheduled => resolved
2017-05-04 09:32hgbotResolutionopen => fixed
2017-05-04 09:32hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/6a7acea80102b80bca4b0da7958bf1cebebe79cd [^]
2017-05-04 09:54aferrazReview Assigned To => aferraz
2017-05-04 09:54aferrazNote Added: 0096370
2017-05-04 09:54aferrazStatusresolved => closed
2017-05-04 09:54aferrazFixed in Version => 3.0PR17Q3
2017-05-29 17:43hudsonbotCheckin
2017-05-29 17:43hudsonbotNote Added: 0096934
2018-01-18 13:18ngarciaIssue Monitored: ngarcia

Notes
(0096136)
collazoandy4   
2017-04-24 16:05   
Go to Purchase invoice and create a new record:
   Business Partner: Bebidas Alegres, S.L.
   Create a new line:
     Product: Cerveza Ale 0,5L
     Invoiced Quantity: 10
   Go to Basic Discount tab and create a new record:
     Basic Discount: Descuento 10%
 Process the invoice
 Check in the database that the quantities of discount line have been rounded -1.36
(0096369)
hgbot   
2017-05-04 09:32   
Repository: erp/devel/pi
Changeset: 6a7acea80102b80bca4b0da7958bf1cebebe79cd
Author: Armaignac <collazoandy4 <at> gmail.com>
Date: Thu Apr 13 17:56:06 2017 -0400
URL: http://code.openbravo.com/erp/devel/pi/rev/6a7acea80102b80bca4b0da7958bf1cebebe79cd [^]

Fixes issue 35785: Not rounded discount lines in processed invoices

The Discounts lines created in the invoice complete process was not rounded their
quantities in database

A call to the round process was added with the standard currency precision to the
discount value

---
M src-db/database/model/functions/C_INVOICE_POST.xml
---
(0096370)
aferraz   
2017-05-04 09:54   
Code review + Testing OK
(0096934)
hudsonbot   
2017-05-29 17:43   
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/1ee70113bdc4 [^]
Maturity status: Test