Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0006955Openbravo ERP03. Procurement managementpublic2009-01-16 16:252009-02-26 11:24
RenateNieuwkoop 
gorkaion 
normalminoralways
closedfixed 
5
2.40 
2.50beta 
Core
No
0006955: Requisition: can enter negative quantities
Procurement Management || Transactions || Requisition || Header >> Lines

When entering a Requisition you can enter a negative amount. This doesn't make sense to me, why would you want a negative amount on a document that is just used internal in the company.

On a Purchase Order you can enter a negative amount also, but not sure if that's used to indicate return shipment to a Vendor?

2.40 community version
Change so that only positive amounts can be entered on a Requisition
commsup_sprint6
depends on backport 0006988 closed gorkaion Requisition: can enter negative quantities 
related to defect 0007698 closed gmauleon We are able to enter negative value in "Safety Lead Time" & "Time Horizon" fields 
related to defect 0009135 closed harikrishnan A requisition can be created with quantity 0 
Issue History
2009-01-16 16:25RenateNieuwkoopNew Issue
2009-01-16 16:25RenateNieuwkoopAssigned To => rafaroda
2009-01-16 16:25RenateNieuwkoopsf_bug_id0 => 2513496
2009-01-19 12:32psarobeStatusnew => scheduled
2009-01-19 12:32psarobeAssigned Torafaroda => gorkaion
2009-01-19 12:32psarobefix_in_branch => trunk
2009-02-16 16:57svnbotCheckin
2009-02-16 16:57svnbotNote Added: 0013537
2009-02-16 16:57svnbotStatusscheduled => resolved
2009-02-16 16:57svnbotResolutionopen => fixed
2009-02-16 16:57svnbotsvn_revision => 13237
2009-02-19 12:52gorkaionTag Attached: commsup_sprint6
2009-02-20 10:05sureshbabuStatusresolved => new
2009-02-20 10:05sureshbabuResolutionfixed => open
2009-02-20 10:05sureshbabuNote Added: 0013807
2009-02-23 11:54gorkaionStatusnew => scheduled
2009-02-23 11:55gorkaionStatusscheduled => resolved
2009-02-23 11:55gorkaionResolutionopen => fixed
2009-02-23 11:55gorkaionNote Added: 0013911
2009-02-23 18:04jpabloaeNote Deleted: 0013911
2009-02-23 18:05gorkaionNote Added: 0013967
2009-02-24 12:16rafarodaRelationship addedrelated to 0007698
2009-02-26 11:24sureshbabuRegression testing => No
2009-02-26 11:24sureshbabuStatusresolved => closed
2009-02-26 11:24sureshbabuNote Added: 0014088
2009-02-26 11:24sureshbabuFixed in Version => trunk
2009-05-25 10:08rafarodaRelationship addedrelated to 0009135

Notes
(0013537)
svnbot   
2009-02-16 16:57   
Repository: openbravo
Revision: 13237
Author: gorkaion
Date: 2009-02-16 16:56:57 +0100 (Mon, 16 Feb 2009)

Fixed bug 6955. Modified the column definition in the application dictionary to set a minimum value of 0 to the quantity and quantity order.

---
U trunk/src-db/database/sourcedata/AD_COLUMN.xml
U trunk/src-db/database/sourcedata/AD_FIELD.xml
---

https://dev.openbravo.com/websvn/openbravo/?rev=13237&sc=1 [^]
(0013807)
sureshbabu   
2009-02-20 10:05   
Instead of validating it on page level, it's better to validate it in field level (lost focus)
(0013967)
gorkaion   
2009-02-23 18:05   
The issue is correctly fixed.

Please log a new Feature request asking to enable the validation of numeric ranges in the field.
(0014088)
sureshbabu   
2009-02-26 11:24   
Retested in context http://79.125.56.185/openbravotrunk [^]