From 29227ba5b040ac8d84a7477224972686f93208e8 Mon Sep 17 00:00:00 2001 From: teo_sarca Date: Wed, 31 Jan 2007 15:52:50 +0000 Subject: [PATCH] bug fix [ 1568774 ] Walk-In BP: invalid created/updated values --- base/src/org/compiere/model/MBPartner.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/base/src/org/compiere/model/MBPartner.java b/base/src/org/compiere/model/MBPartner.java index 6d9fc5d3c7..9ae5b58b98 100644 --- a/base/src/org/compiere/model/MBPartner.java +++ b/base/src/org/compiere/model/MBPartner.java @@ -24,6 +24,11 @@ import org.compiere.util.*; /** * Business Partner Model + *

+ * Change log: + *

* * @author Jorg Janke * @version $Id: MBPartner.java,v 1.5 2006/09/23 19:38:07 comdivision Exp $ @@ -61,6 +66,10 @@ public class MBPartner extends X_C_BPartner template.setAcqusitionCost(Env.ZERO); template.setShareOfCustomer(0); template.setSalesVolume(0); + // Reset Created, Updated to current system time ( teo_sarca ) + Timestamp ts = new Timestamp(System.currentTimeMillis()); + template.set_ValueNoCheck("Created", ts); + template.set_ValueNoCheck("Updated", ts); } return template; } // getTemplate