Openbravo Issue Tracking System - Modules
View Issue Details
0015059ModulesGross Amounts in Invoices and Orders Linespublic2010-10-28 09:502010-11-10 10:26
networkb 
dalsasua 
immediatemajoralways
closedfixed 
20Community Appliance
2.50 
 
OBPS
0015059: decimals error to edit Gross Unit Price
. in purchase invoice line, if you select "Edit Gross Amounts" and change the value of "Gross Unit Price", in some ocassions, the value calculated in "Line Gross Amount" is not correct
. in purchase invoice lines
  . select the product hammer
  . Invoice quantity = 1
  . Net unit price = 45
  . select a tax with rate 19%
  . select "Edit Gross Amounts"
  . change the value of "Gross Unit Price" to 45.00
 the value "Line Gross Amount" calculated is 45.01, but the correct value should be 45.00

If you change the value "Line Gross Amount" to 45.00, when you save the line, error is returned:
ERROR: Line Amount Is Not Correct
No tags attached.
related to defect 00149202.50MP24 closed adrianromero Openbravo ERP Wrong Net Unit Price when Line Net Amount is edited 
Issue History
2010-10-28 09:50networkbNew Issue
2010-10-28 09:50networkbAssigned To => dalsasua
2010-10-28 09:50networkbOBNetwork customer => Yes
2010-10-28 10:21psanjuanNote Added: 0032285
2010-10-28 10:21psanjuanResolutionopen => unable to reproduce
2010-10-28 10:21psanjuanSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=1141#r1141
2010-10-28 10:22psanjuanNote Added: 0032286
2010-10-28 10:22psanjuanStatusnew => closed
2010-10-28 10:22psanjuanNote Deleted: 0032285
2010-10-28 12:09rafarodaNote Added: 0032293
2010-10-28 16:13rafarodaIssue Monitored: rafaroda
2010-10-28 16:31mgerkeNote Added: 0032311
2010-10-28 16:47psanjuanStatusclosed => new
2010-10-28 16:47psanjuanSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=1144#r1144
2010-10-28 17:07psanjuanNote Added: 0032314
2010-10-29 11:17dalsasuaStatusnew => scheduled
2010-10-29 11:17dalsasuaNote Added: 0032328
2010-10-29 11:17dalsasuafix_in_branch => pi
2010-11-02 13:02hgbotCheckin
2010-11-02 13:02hgbotNote Added: 0032353
2010-11-02 13:03hgbotStatusscheduled => resolved
2010-11-02 13:03hgbotResolutionunable to reproduce => fixed
2010-11-02 13:03hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.module.grossamountinvoicelines/rev/891e7f104c7f78ca9fd1bd912a7cff5997513049 [^]
2010-11-10 10:26sathiyanStatusresolved => closed
2010-11-10 13:14rafarodaRelationship addedrelated to 0014920

Notes
(0032286)
psanjuan   
2010-10-28 10:22   
following the steps I'm not able to reproduce this..
(0032293)
rafaroda   
2010-10-28 12:09   
Any relationship of this issue with 0014920? I say it because the error message is exactly the same: ERROR: Line Amount Is Not Correct
(0032311)
mgerke   
2010-10-28 16:31   
IMHO, a warning must arise that the user was entering a gross amount (=> 45.00) that is not possible with a tax percentage of 19% and the gross amount must be changed to 45.01 (in both fields on the right side)
(0032314)
psanjuan   
2010-10-28 17:07   
system should not change any value entered by the end-user but to provide a warning letting him/her know that the gross amount entered is not valid taking into account previously selected tax rate.
(0032328)
dalsasua   
2010-10-29 11:17   
As discussed, a warning message will be shown everytime the entered amount is not allowed.
(0032353)
hgbot   
2010-11-02 13:02   
Repository: erp/pmods/org.openbravo.module.grossamountinvoicelines
Changeset: 891e7f104c7f78ca9fd1bd912a7cff5997513049
Author: David Alsasua <david.alsasua <at> openbravo.com>
Date: Tue Nov 02 12:59:18 2010 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.module.grossamountinvoicelines/rev/891e7f104c7f78ca9fd1bd912a7cff5997513049 [^]

Fixes issue 15059: Decimals error to edit Gross Unit Price.
Fixed in version 1.0.7 of the module

---
M src-db/database/sourcedata/AD_MODULE.xml
M src/org/openbravo/module/grossamountinvoicelines/SL_Invoice_GrossNet_Amt.java
M src/org/openbravo/module/grossamountinvoicelines/SL_Order_GrossNet_Amt.java
A src-db/database/sourcedata/AD_MESSAGE.xml
---