Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0007216Openbravo ERPB. User interfacepublic2009-01-29 11:282009-03-03 06:00
plujan 
Dowid 
highmajorhave not tried
closedfixed 
30
pi 
2.50beta 
Core
No
0007216: If a wrong price is entered on an Invoice Line, message is not correct and line net amount is not updated
I create a new Invoice, then I go to lines. After selecting a product, Line net is correct, so I save. Then I modify the unit price by a letter and save. The error message is not correct:
      
ERROR: null value in column "priceactual" violates not-null constraint

But the Line Net Amount keeps the old value.
1. Create a Sales Invoice
2. Create a line for the invoice
3. Enter a product
4. Save. Verify that Line Net Amount has the correct value.
5. Modify the price changing Unit Price to "asd"
6. Save. A wrong error message is shown. See attach. Note that Line Net Amount keeps the previous value
The error message should be changed to "ERROR: The value for Unit Price is not correct" or something similar.
Since I entered a wrong value in Unit Price and it was replaced by zero, Line Net Amount should be changed to zero too.
comsup_sprint7
depends on backport 0007331 closed Dowid If a wrong price is entered on an Invoice Line, message is not correct and line net amount is not updated 
depends on defect 0007538 closed rafaroda Saving an Invoice line after an error shows a new different error 
related to feature request 0007441pi acknowledged iciordia Validation of number field before saving 
png BUG_250_trunk_WrongMessageInvoiceLinePrice.PNG (64,743) 2009-01-29 11:28
https://issues.openbravo.com/file_download.php?file_id=760&type=bug
png
Issue History
2009-01-29 11:28plujanNew Issue
2009-01-29 11:28plujanAssigned To => rafaroda
2009-01-29 11:28plujansf_bug_id0 => 2545175
2009-01-29 11:28plujanFile Added: BUG_250_trunk_WrongMessageInvoiceLinePrice.PNG
2009-01-29 11:28plujanRegression testing => No
2009-01-29 11:38plujanSeveritytrivial => minor
2009-01-29 11:38plujanSummaryIf a wrong price is entered on an Invoice Line, message is not correct => If a wrong price is entered on an Invoice Line, message is not correct and line net amount is not updated
2009-01-29 11:38plujanDescription Updated
2009-01-29 11:38plujanProposed Solution updated
2009-01-29 11:38plujanSteps to Reproduce Updated
2009-02-03 09:58psarobeNote Added: 0013053
2009-02-03 09:58psarobePrioritynormal => high
2009-02-03 09:58psarobeSeverityminor => major
2009-02-03 09:58psarobeStatusnew => scheduled
2009-02-03 09:58psarobeAssigned Torafaroda => Dowid
2009-02-03 09:58psarobefix_in_branch => trunk
2009-02-09 18:04DowidRelationship addedrelated to 0007441
2009-02-12 16:32plujanRelationship addeddepends on 0007538
2009-02-12 16:34plujanNote Added: 0013423
2009-02-23 11:35svnbotCheckin
2009-02-23 11:35svnbotNote Added: 0013907
2009-02-23 11:35svnbotStatusscheduled => resolved
2009-02-23 11:35svnbotResolutionopen => fixed
2009-02-23 11:35svnbotsvn_revision => 13511
2009-02-24 14:59PavelPonomarevTag Attached: comsup_sprint7
2009-03-03 06:00sureshbabuStatusresolved => closed
2009-03-03 06:00sureshbabuNote Added: 0014248
2009-03-03 06:00sureshbabuFixed in Version => trunk

Notes
(0013053)
psarobe   
2009-02-03 09:58   
Take in note that when you can finally save, the line amount still don't change so that's the reason why we change the severity to Major, high because you have, for example:

Quantity: 1
Price: 0
Line net amount: 35
(0013423)
plujan   
2009-02-12 16:34   
Added dependency to new issue found, required to verify this one.
(0013907)
svnbot   
2009-02-23 11:35   
Repository: openbravo
Revision: 13511
Author: dowid
Date: 2009-02-23 11:35:34 +0100 (Mon, 23 Feb 2009)

Bug fixed 0007216: If a wrong price is entered on an Invoice Line, message is not correct and line net amount is not updated

---
U trunk/src/org/openbravo/erpCommon/ad_callouts/SL_Invoice_Amt.java
U trunk/src/org/openbravo/erpCommon/utility/Utility.java
---

https://dev.openbravo.com/websvn/openbravo/?rev=13511&sc=1 [^]
(0014248)
sureshbabu   
2009-03-03 06:00   
Retested in context http://79.125.56.185/openbravotrunk [^]