From fdabb11e5665a2913080f3658e5205b06b2ccdd3 Mon Sep 17 00:00:00 2001 From: Nicolas Micoud Date: Wed, 8 Jul 2015 08:10:29 -0500 Subject: [PATCH] IDEMPIERE-2175 Changing access modifier in Doc class to make it extendible --- .../src/org/compiere/acct/Doc_BankStatement.java | 6 +++--- .../src/org/compiere/acct/Doc_GLJournal.java | 6 +++--- .../src/org/compiere/acct/Doc_Invoice.java | 12 ++++++------ 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/org.adempiere.base/src/org/compiere/acct/Doc_BankStatement.java b/org.adempiere.base/src/org/compiere/acct/Doc_BankStatement.java index f8ae106ae8..3190365420 100644 --- a/org.adempiere.base/src/org/compiere/acct/Doc_BankStatement.java +++ b/org.adempiere.base/src/org/compiere/acct/Doc_BankStatement.java @@ -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 list = new ArrayList(); 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; diff --git a/org.adempiere.base/src/org/compiere/acct/Doc_GLJournal.java b/org.adempiere.base/src/org/compiere/acct/Doc_GLJournal.java index 32a57faf99..176aad9013 100644 --- a/org.adempiere.base/src/org/compiere/acct/Doc_GLJournal.java +++ b/org.adempiere.base/src/org/compiere/acct/Doc_GLJournal.java @@ -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 list = new ArrayList(); MJournalLine[] lines = journal.getLines(false); diff --git a/org.adempiere.base/src/org/compiere/acct/Doc_Invoice.java b/org.adempiere.base/src/org/compiere/acct/Doc_Invoice.java index 61f3dd94f6..03bb9bb554 100644 --- a/org.adempiere.base/src/org/compiere/acct/Doc_Invoice.java +++ b/org.adempiere.base/src/org/compiere/acct/Doc_Invoice.java @@ -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())