BF [ 2004203 ] Default conversion type is used always
This commit is contained in:
parent
4da24b6233
commit
6adcc98adb
|
@ -1792,7 +1792,7 @@ public class MInvoice extends X_C_Invoice implements DocAction
|
|||
MBPartner bp = new MBPartner (getCtx(), getC_BPartner_ID(), get_TrxName());
|
||||
// Update total revenue and balance / credit limit (reversed on AllocationLine.processIt)
|
||||
BigDecimal invAmt = MConversionRate.convertBase(getCtx(), getGrandTotal(true), // CM adjusted
|
||||
getC_Currency_ID(), getDateAcct(), 0, getAD_Client_ID(), getAD_Org_ID());
|
||||
getC_Currency_ID(), getDateAcct(), getC_ConversionType_ID(), getAD_Client_ID(), getAD_Org_ID());
|
||||
if (invAmt == null)
|
||||
{
|
||||
m_processMsg = "Could not convert C_Currency_ID=" + getC_Currency_ID()
|
||||
|
|
|
@ -203,7 +203,7 @@ public class InvoiceCalculateTax extends SvrProcess {
|
|||
MBPartner bp = new MBPartner (Env.getCtx(), i.getC_BPartner_ID(), trx_name);
|
||||
// Update total revenue and balance / credit limit (reversed on AllocationLine.processIt)
|
||||
BigDecimal invAmt = MConversionRate.convertBase(Env.getCtx(), i.getGrandTotal(true).multiply(new BigDecimal(factor)), // CM adjusted
|
||||
i.getC_Currency_ID(), i.getDateAcct(), 0, getAD_Client_ID(), i.getAD_Org_ID());
|
||||
i.getC_Currency_ID(), i.getDateAcct(), i.getC_ConversionType_ID(), getAD_Client_ID(), i.getAD_Org_ID());
|
||||
if (invAmt == null)
|
||||
{
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue