IDEMPIERE-2175 Changing access modifier in Doc class to make it extendible

This commit is contained in:
Nicolas Micoud 2015-07-08 08:10:29 -05:00
parent 2866e6a799
commit fdabb11e56
3 changed files with 12 additions and 12 deletions

View File

@ -58,7 +58,7 @@ public class Doc_BankStatement extends Doc
} // Doc_Bank
/** Bank Account */
private int m_C_BankAccount_ID = 0;
protected int m_C_BankAccount_ID = 0;
/**
* Load Specific Document Details
@ -94,7 +94,7 @@ public class Doc_BankStatement extends Doc
* AMTTYPE_Interest
* @return DocLine Array
*/
private DocLine[] loadLines(MBankStatement bs)
protected DocLine[] loadLines(MBankStatement bs)
{
ArrayList<DocLine> list = new ArrayList<DocLine>();
MBankStatementLine[] lines = bs.getLines(false);
@ -288,7 +288,7 @@ public class Doc_BankStatement extends Doc
* Get AD_Org_ID from Bank Account
* @return AD_Org_ID or 0
*/
private int getBank_Org_ID ()
protected int getBank_Org_ID ()
{
if (m_C_BankAccount_ID == 0)
return 0;

View File

@ -50,8 +50,8 @@ public class Doc_GLJournal extends Doc
} // Doc_GL_Journal
/** Posting Type */
private String m_PostingType = null;
private int m_C_AcctSchema_ID = 0;
protected String m_PostingType = null;
protected int m_C_AcctSchema_ID = 0;
/**
* Load Specific Document Details
@ -75,7 +75,7 @@ public class Doc_GLJournal extends Doc
* @param journal journal
* @return DocLine Array
*/
private DocLine[] loadLines(MJournal journal)
protected DocLine[] loadLines(MJournal journal)
{
ArrayList<DocLine> list = new ArrayList<DocLine>();
MJournalLine[] lines = journal.getLines(false);

View File

@ -71,13 +71,13 @@ public class Doc_Invoice extends Doc
} // Doc_Invoice
/** Contained Optional Tax Lines */
private DocTax[] m_taxes = null;
protected DocTax[] m_taxes = null;
/** Currency Precision */
private int m_precision = -1;
protected int m_precision = -1;
/** All lines are Service */
private boolean m_allLinesService = true;
protected boolean m_allLinesService = true;
/** All lines are product item */
private boolean m_allLinesItem = true;
protected boolean m_allLinesItem = true;
/**
* Load Specific Document Details
@ -815,7 +815,7 @@ public class Doc_Invoice extends Doc
* @param dr DR entry (normal api)
* @return true if landed costs were created
*/
private boolean landedCost (MAcctSchema as, Fact fact, DocLine line, boolean dr)
protected boolean landedCost (MAcctSchema as, Fact fact, DocLine line, boolean dr)
{
int C_InvoiceLine_ID = line.get_ID();
MLandedCostAllocation[] lcas = MLandedCostAllocation.getOfInvoiceLine(
@ -1054,7 +1054,7 @@ public class Doc_Invoice extends Doc
* Update ProductPO PriceLastInv
* @param as accounting schema
*/
private void updateProductPO (MAcctSchema as)
protected void updateProductPO (MAcctSchema as)
{
MClientInfo ci = MClientInfo.get(getCtx(), as.getAD_Client_ID());
if (ci.getC_AcctSchema1_ID() != as.getC_AcctSchema_ID())