IDEMPIERE-3206 Extensibility issues with LCO Allocation Accounting
This commit is contained in:
parent
c624d4ec7d
commit
72a5009f03
|
@ -53,6 +53,14 @@ public class DocLine_Allocation extends DocLine
|
|||
m_DiscountAmt = line.getDiscountAmt();
|
||||
m_WriteOffAmt = line.getWriteOffAmt();
|
||||
m_OverUnderAmt = line.getOverUnderAmt();
|
||||
|
||||
// Get Payment Conversion Rate
|
||||
if (line.getC_Payment_ID() != 0)
|
||||
{
|
||||
MPayment payment = new MPayment (doc.getCtx(), line.getC_Payment_ID(), doc.getTrxName());
|
||||
int C_ConversionType_ID = payment.getC_ConversionType_ID();
|
||||
this.setC_ConversionType_ID(C_ConversionType_ID);
|
||||
}
|
||||
} // DocLine_Allocation
|
||||
|
||||
private int m_C_Invoice_ID;
|
||||
|
|
|
@ -100,14 +100,6 @@ public class Doc_AllocationHdr extends Doc
|
|||
{
|
||||
MAllocationLine line = lines[i];
|
||||
DocLine_Allocation docLine = new DocLine_Allocation(line, this);
|
||||
|
||||
// Get Payment Conversion Rate
|
||||
if (line.getC_Payment_ID() != 0)
|
||||
{
|
||||
MPayment payment = new MPayment (getCtx(), line.getC_Payment_ID(), getTrxName());
|
||||
int C_ConversionType_ID = payment.getC_ConversionType_ID();
|
||||
docLine.setC_ConversionType_ID(C_ConversionType_ID);
|
||||
}
|
||||
//
|
||||
if (log.isLoggable(Level.FINE)) log.fine(docLine.toString());
|
||||
list.add (docLine);
|
||||
|
|
|
@ -728,7 +728,7 @@ public final class FactLine extends X_Fact_Acct
|
|||
|
||||
Timestamp convDate = getDateAcct();
|
||||
|
||||
if ( m_doc instanceof Doc_BankStatement || m_doc instanceof Doc_AllocationHdr )
|
||||
if ( m_docLine != null && ( m_doc instanceof Doc_BankStatement || m_doc instanceof Doc_AllocationHdr ) )
|
||||
convDate = m_docLine.getDateConv();
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue