Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0014920 | Openbravo ERP | 07. Sales management | public | 2010-10-19 16:11 | 2010-12-09 16:07 |
|
Reporter | rafaroda | |
Assigned To | adrianromero | |
Priority | high | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 20 | OS Version | Community Appliance |
Product Version | pi | |
Target Version | 2.50MP24 | Fixed in Version | | |
Merge Request Status | |
Review Assigned To | |
OBNetwork customer | OBPS |
Web browser | |
Modules | Core |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0014920: Wrong Net Unit Price when Line Net Amount is edited |
Description | Net Unit Price is wrongly calculated when Line Net Amount is edited. |
Steps To Reproduce | 1) Create a Sales Invoice header.
2) Create a Sales Invoice line with product = Donuts and Select a Tax. Save the record.
3) Change invoiced quantity to 26. Save the record.
4) Click on Edit Line Net Amount. Save the record.
5) Change Line Net Amount to 27 and try to save the record.
ERROR displayed: Line Amount Is Not Correct |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | related to | defect | 0015059 | | closed | dalsasua | Modules | decimals error to edit Gross Unit Price |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2010-10-19 16:11 | rafaroda | New Issue | |
2010-10-19 16:11 | rafaroda | Assigned To | => adrianromero |
2010-10-19 16:11 | rafaroda | OBNetwork customer | => No |
2010-10-19 16:13 | rafaroda | Issue Monitored: rafaroda | |
2010-10-19 17:18 | networkb | Issue Monitored: networkb | |
2010-10-19 17:19 | networkb | OBNetwork customer | No => Yes |
2010-10-20 09:01 | rafaroda | Note Added: 0031996 | |
2010-10-21 09:13 | jonalegriaesarte | Target Version | => 2.50MP24 |
2010-11-10 10:55 | hgbot | Checkin | |
2010-11-10 10:55 | hgbot | Note Added: 0032528 | |
2010-11-10 10:55 | hgbot | Status | new => resolved |
2010-11-10 10:55 | hgbot | Resolution | open => fixed |
2010-11-10 10:55 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/54eb8122cee0e6d2928032b362ce28e54a9c9944 [^] |
2010-11-10 11:27 | sivaraman | Note Added: 0032535 | |
2010-11-10 12:53 | psarobe | Note Added: 0032538 | |
2010-11-10 12:53 | psarobe | Status | resolved => new |
2010-11-10 12:53 | psarobe | Resolution | fixed => open |
2010-11-10 13:02 | psarobe | Note Deleted: 0032538 | |
2010-11-10 13:02 | psarobe | Status | new => scheduled |
2010-11-10 13:02 | psarobe | fix_in_branch | => pi |
2010-11-10 13:02 | psarobe | Status | scheduled => resolved |
2010-11-10 13:02 | psarobe | Resolution | open => fixed |
2010-11-10 13:14 | rafaroda | Relationship added | related to 0015059 |
2010-11-10 20:06 | hudsonbot | Checkin | |
2010-11-10 20:06 | hudsonbot | Note Added: 0032544 | |
2010-11-12 09:46 | sureshbabu | Note Added: 0032576 | |
2010-11-12 09:46 | sureshbabu | Status | resolved => closed |
2010-11-12 10:24 | adrianromero | Note Added: 0032578 | |
2010-11-12 10:24 | adrianromero | Status | closed => new |
2010-11-12 10:24 | adrianromero | Resolution | fixed => open |
2010-11-12 10:25 | adrianromero | Note Added: 0032579 | |
2010-11-15 05:34 | hgbot | Checkin | |
2010-11-15 05:34 | hgbot | Note Added: 0032606 | |
2010-11-15 05:34 | hgbot | Status | new => resolved |
2010-11-15 05:34 | hgbot | Resolution | open => fixed |
2010-11-15 05:34 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/devel/pi/rev/54eb8122cee0e6d2928032b362ce28e54a9c9944 [^] => http://code.openbravo.com/erp/devel/pi/rev/3e0886948e278090d12f46e270373c3b4be0a772 [^] |
2010-11-15 05:47 | sivaraman | Note Added: 0032607 | |
2010-11-15 15:40 | hudsonbot | Checkin | |
2010-11-15 15:40 | hudsonbot | Note Added: 0032615 | |
2010-11-17 06:34 | sureshbabu | Note Added: 0032652 | |
2010-11-17 06:34 | sureshbabu | Status | resolved => closed |
2010-12-09 16:07 | anonymous | sf_bug_id | 0 => 3133523 |
Notes |
|
|
|
|
(0032528)
|
hgbot
|
2010-11-10 10:55
|
|
Repository: erp/devel/pi
Changeset: 54eb8122cee0e6d2928032b362ce28e54a9c9944
Author: Sivaraman Rajagopal <sivaraman.rajagopal <at> openbravo.com>
Date: Wed Nov 10 15:23:10 2010 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/54eb8122cee0e6d2928032b362ce28e54a9c9944 [^]
Fixes issue 14920: Wrong Net Unit Price when Line Net Amount is edited
Line Net Amount is re-calculated, multiplying invoice quantity with actual price, in order to get below condition passed.
Line Net Amount == (price actual * invoice quantity)
i.e,
invoice quantity = 26
actual price = 1.04
If Net Amount is changed to 27 and invoice, it will be re-calculated as 27.04. Thus, we can get check passed in trigger and avoid error message
---
M src/org/openbravo/erpCommon/ad_callouts/SL_Invoice_Amt.java
---
|
|
|
|
Pre-requisition:
Make sure output format of price edition is "#0.00" in Format.xml
Steps to test:
1. Log on to Openbravo with Admin role
2. Go to Sales Management || Transactions || Sales Invoice
3. Create Header
4. Create a line with product = Donuts and Save the record
5. Change invoiced quantity to 26 and Save the record
6. Click on Edit Line Net Amount and Save the record
7. Change Line Net Amount to 27 and verify if record is successfully saved with following values
Net Unit Price = 1.04
Line Net Amount = 27.04
Note:
Change Line Net Amount with many different values and verify if it can be saved with re-calculated values. Also modify the output format of price edition as "#0.000" in Format.xml and verify the same behavior in saving invoice lines. |
|
|
|
|
|
|
verified, now when i change the Line net amount to 27 it changes to 27.04 |
|
|
|
In order to make the fix consistent with the behavior implemented in other areas related to the same situation. This issue has to be resolved again. |
|
|
|
|
|
(0032606)
|
hgbot
|
2010-11-15 05:34
|
|
Repository: erp/devel/pi
Changeset: 3e0886948e278090d12f46e270373c3b4be0a772
Author: Sivaraman Rajagopal <sivaraman.rajagopal <at> openbravo.com>
Date: Mon Nov 15 10:03:21 2010 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/3e0886948e278090d12f46e270373c3b4be0a772 [^]
Fixes issue 14920: Wrong Net Unit Price when Line Net Amount is edited
Line Net Amount is re-calculated, multiplying invoice quantity with actual price, in order to check below condition. Message will be thrown if it fail
Line Net Amount == (price actual * invoice quantity)
---
M src-db/database/sourcedata/AD_MESSAGE.xml
M src/org/openbravo/erpCommon/ad_callouts/SL_Invoice_Amt.java
---
|
|
|
|
Pre-requisition:
Make sure output format of price edition is "#0.00" in Format.xml
Steps to test:
1. Log on to Openbravo with Admin role
2. Go to Sales Management || Transactions || Sales Invoice
3. Create Header
4. Create a line with product = Donuts and Save the record
5. Change invoiced quantity to 26 and Save the record
6. Click on Edit Line Net Amount and Save the record
7. Change Line Net Amount to 27 and verify if message is shown suggesting re-calculated amount i.e, 27.04
8. Now, change Line Net Amount to 27.04 (suggested amount) and verify if it can be successfully saved
Note:
Change Line Net Amount with many different values and verify if it can be saved with re-calculated values. Also modify the output format of price edition as "#0.000" in Format.xml and verify the same behavior in saving invoice lines. |
|
|
|
|
|
|
verified, still the information message needs to be fine tuned. |
|