details: /erp/devel/pi/rev/8a25bf27771e
changeset: 11574:8a25bf27771e
user: Martin Taal <martin.taal <at> openbravo.com>
date: Wed Apr 13 13:44:16 2011 +0200
summary: Fixes issue 16795: Goods receipt window and goods shipment don't
work. All fields in blank
diffstat:
modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/reference/NumberUIDefinition.java
| 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (23 lines):
diff -r da3706b645b0 -r 8a25bf27771e
modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/reference/NumberUIDefinition.java
---
a/modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/reference/NumberUIDefinition.java
Wed Apr 13 13:12:14 2011 +0200
+++
b/modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/reference/NumberUIDefinition.java
Wed Apr 13 13:44:16 2011 +0200
@@ -123,7 +123,7 @@
@Override
public Object createFromClassicString(String value) {
if (value == null || value.length() == 0) {
- return "";
+ return null;
}
String valueStr = value.toString();
VariablesSecureApp variables =
RequestContext.get().getVariablesSecureApp();
@@ -166,6 +166,10 @@
@Override
public Object createFromClassicString(String value) {
+ if (value == null || value.length() == 0) {
+ return null;
+ }
+
final BigDecimal superValue = (BigDecimal)
super.createFromClassicString(value);
return superValue.longValue();
}
------------------------------------------------------------------------------
Forrester Wave Report - Recovery time is now measured in hours and minutes
not days. Key insights are discussed in the 2010 Forrester Wave Report as
part of an in-depth evaluation of disaster recovery service providers.
Forrester found the best-in-class provider in terms of services and vision.
Read this report now! http://p.sf.net/sfu/ibm-webcastpromo
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits