From 213ff5826aec6e5f8f4dc9fb320ba6a91e2c2793 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Sun, 10 Feb 2008 19:05:34 +0000 Subject: [PATCH] Fix [ 1890725 ] CopyOrder creating new order out of trx --- base/src/org/compiere/process/CopyOrder.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/base/src/org/compiere/process/CopyOrder.java b/base/src/org/compiere/process/CopyOrder.java index 755570076e..2620a84f3d 100644 --- a/base/src/org/compiere/process/CopyOrder.java +++ b/base/src/org/compiere/process/CopyOrder.java @@ -1,5 +1,5 @@ /****************************************************************************** - * Product: Adempiere ERP & CRM Smart Business Solution * + * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2006 ComPiere, Inc. All Rights Reserved. * * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * @@ -64,7 +64,7 @@ public class CopyOrder extends SvrProcess } // prepare /** - * Perrform process. + * Perform process. * @return Message (clear text) * @throws Exception if not successful */ @@ -83,7 +83,7 @@ public class CopyOrder extends SvrProcess // MOrder from = new MOrder (getCtx(), p_C_Order_ID, get_TrxName()); MOrder newOrder = MOrder.copyFrom (from, p_DateDoc, - dt.getC_DocType_ID(), dt.isSOTrx(), false, true, null); // copy ASI + dt.getC_DocType_ID(), dt.isSOTrx(), false, true, get_TrxName()); // copy ASI newOrder.setC_DocTypeTarget_ID(p_C_DocType_ID); boolean OK = newOrder.save(); if (!OK) @@ -105,4 +105,4 @@ public class CopyOrder extends SvrProcess return dt.getName() + ": " + newOrder.getDocumentNo(); } // doIt -} // CopyOrder +} // CopyOrder \ No newline at end of file