From 93c4356c65e12abafda9f9b9e485c22e0a814cc4 Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Tue, 7 May 2019 17:32:21 +0800 Subject: [PATCH] IDEMPIERE-3877 Purchase Order-Currency Type=NULL when created through process "create PO from requisition" --- .../src/org/compiere/process/RequisitionPOCreate.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/org.adempiere.base.process/src/org/compiere/process/RequisitionPOCreate.java b/org.adempiere.base.process/src/org/compiere/process/RequisitionPOCreate.java index 0337437a95..3f4fec2b82 100644 --- a/org.adempiere.base.process/src/org/compiere/process/RequisitionPOCreate.java +++ b/org.adempiere.base.process/src/org/compiere/process/RequisitionPOCreate.java @@ -26,6 +26,7 @@ import org.adempiere.exceptions.NoVendorForProductException; import org.apache.commons.collections.keyvalue.MultiKey; import org.compiere.model.MBPartner; import org.compiere.model.MCharge; +import org.compiere.model.MConversionType; import org.compiere.model.MOrder; import org.compiere.model.MOrderLine; import org.compiere.model.MProduct; @@ -352,6 +353,8 @@ public class RequisitionPOCreate extends SvrProcess m_order.setC_DocTypeTarget_ID(); m_order.setBPartner(m_bpartner); m_order.setM_PriceList_ID(M_PriceList_ID); + if (MConversionType.getDefault(getAD_Client_ID()) > 0) + m_order.setC_ConversionType_ID(MConversionType.getDefault(getAD_Client_ID())); // default po document type if (!p_ConsolidateDocument) {