details: /erp/devel/pi/rev/75ebe35a028a
changeset: 7417:75ebe35a028a
user: Adrián Romero <adrianromero <at> openbravo.com>
date: Mon May 24 14:12:24 2010 +0200
summary: Fixes issue 0013412: SL_Order_DocType fails with non-numeric
document type ID (i.e. newly created document types)
This changeset modifies the condition of comparing the strDocType with 0, the
Document type for new documents, not converting the value to integer because it
will fail for new document types, document types with an UUID as identifier
diffstat:
src/org/openbravo/erpCommon/ad_callouts/SL_Order_DocType.java | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 5ff164b62277 -r 75ebe35a028a
src/org/openbravo/erpCommon/ad_callouts/SL_Order_DocType.java
--- a/src/org/openbravo/erpCommon/ad_callouts/SL_Order_DocType.java Mon May
24 13:40:50 2010 +0200
+++ b/src/org/openbravo/erpCommon/ad_callouts/SL_Order_DocType.java Mon May
24 14:12:24 2010 +0200
@@ -92,7 +92,7 @@
String AD_Sequence_ID = "0";
SLOrderDocTypeData[] data = null;
- if (!newDocNo && Integer.valueOf(strDocType).intValue() != 0) {
+ if (!newDocNo && !"0".equals(strDocType)) {
data = SLOrderDocTypeData.select(this, strDocType);
if (data != null && data.length > 0) {
AD_Sequence_ID = data[0].adSequenceId;
------------------------------------------------------------------------------
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits