From e214dc30f8ee918a35ad8a64043acf0ad5d57639 Mon Sep 17 00:00:00 2001 From: phib Date: Fri, 29 May 2009 05:04:53 +0000 Subject: [PATCH] Reverting 9206 BT 2788727:RMA "Create Order" creates wrong doc type -> doesn't create wrong doc type because it's a replacement order. --- base/src/org/adempiere/process/RMACreateOrder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/src/org/adempiere/process/RMACreateOrder.java b/base/src/org/adempiere/process/RMACreateOrder.java index b822db1c08..5796a45fd9 100644 --- a/base/src/org/adempiere/process/RMACreateOrder.java +++ b/base/src/org/adempiere/process/RMACreateOrder.java @@ -70,7 +70,7 @@ public class RMACreateOrder extends SvrProcess order.setSalesRep_ID(rma.getSalesRep_ID()); order.setM_PriceList_ID(originalOrder.getM_PriceList_ID()); order.setM_Warehouse_ID(originalOrder.getM_Warehouse_ID()); - order.setC_DocTypeTarget_ID(rma.getC_DocType_ID()); + order.setC_DocTypeTarget_ID(originalOrder.getC_DocTypeTarget_ID()); order.setC_PaymentTerm_ID(originalOrder.getC_PaymentTerm_ID()); order.setDeliveryRule(originalOrder.getDeliveryRule());