From 3e5bc7778fa23770660f766f1da6c28e68d44594 Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Tue, 27 Jul 2010 19:25:52 +0800 Subject: [PATCH] * fixed a spelling error in javadoc. * fixed official id support in saveNew_getID. --- base/src/org/compiere/model/PO.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/base/src/org/compiere/model/PO.java b/base/src/org/compiere/model/PO.java index f6c2d48a9e..ec7034c4ea 100644 --- a/base/src/org/compiere/model/PO.java +++ b/base/src/org/compiere/model/PO.java @@ -701,7 +701,7 @@ public abstract class PO } // setValueE /** - * Set Value if updteable and correct class. + * Set Value if updateable and correct class. * (and to NULL if not mandatory) * @param index index * @param value value @@ -2775,7 +2775,7 @@ public abstract class PO */ protected int saveNew_getID() { - if (get_ID() < 999999) // 2Pack assigns official ID's when importing + if (get_ID() > 0 && get_ID() < 999999) // 2Pack assigns official ID's when importing return get_ID(); return 0; } // saveNew_getID