Fixes issue 0024800: createAccDefExpenseFact and computeTaxUndeductableLine
authorJon Alegría <jon.alegria@openbravo.com>
Tue, 11 Mar 2014 12:18:27 +0100
changeset 22677 6599ad024496
parent 22676 9a1b082f1cab
child 22678 1bc9b57dcfc1
Fixes issue 0024800: createAccDefExpenseFact and computeTaxUndeductableLine
methods of DocInvoice class must be public
src/org/openbravo/erpCommon/ad_forms/DocInvoice.java
--- a/src/org/openbravo/erpCommon/ad_forms/DocInvoice.java	Tue Mar 11 09:32:59 2014 +0100
+++ b/src/org/openbravo/erpCommon/ad_forms/DocInvoice.java	Tue Mar 11 12:18:27 2014 +0100
@@ -1077,7 +1077,7 @@
     return plan;
   }
 
-  String createAccDefExpenseFact(Fact fact, DocLine_Invoice line, Account prodExpAccount,
+  public String createAccDefExpenseFact(Fact fact, DocLine_Invoice line, Account prodExpAccount,
       Account prodDefExpAccount, String lineAmount, String strCurrencyId, ConnectionProvider conn) {
     BigDecimal amount = new BigDecimal(lineAmount);
     String Fact_Acct_Group_ID = SequenceIdData.getUUID();
@@ -1349,7 +1349,7 @@
     return "Servlet for the accounting";
   } // end of getServletInfo() method
 
-  private void computeTaxUndeductableLine(ConnectionProvider conn, AcctSchema as, Fact fact,
+  public void computeTaxUndeductableLine(ConnectionProvider conn, AcctSchema as, Fact fact,
       DocLine docLine, String Fact_Acct_Group_ID, String taxId, String strTaxAmount) {
     int invoiceLineTaxCount = 0;
     int totalInvoiceLineTax = getTaxLineCount(conn, taxId);