KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > openbravo > erpCommon > ad_forms > DocLine_Bank


1 /*
2  ******************************************************************************
3  * The contents of this file are subject to the Compiere License Version 1.1
4  * ("License"); You may not use this file except in compliance with the License
5  * You may obtain a copy of the License at http://www.compiere.org/license.html
6  * Software distributed under the License is distributed on an "AS IS" basis,
7  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
8  * the specific language governing rights and limitations under the License.
9  * The Original Code is Compiere ERP & CRM Business Solution
10  * The Initial Developer of the Original Code is Jorg Janke and ComPiere, Inc.
11  * Portions created by Jorg Janke are Copyright (C) 1999-2001 Jorg Janke, parts
12  * created by ComPiere are Copyright (C) ComPiere, Inc.; All Rights Reserved.
13  * Contributor(s): Openbravo SL
14  * Contributions are Copyright (C) 2001-2006 Openbravo S.L.
15  ******************************************************************************
16 */

17 package org.openbravo.erpCommon.ad_forms;
18
19 import org.apache.log4j.Logger ;
20
21
22
23 public class DocLine_Bank extends DocLine {
24   static Logger log4jDocLine_Bank = Logger.getLogger(DocLine_Bank.class);
25
26     public String JavaDoc m_IsReversal = "N";
27
28     public String JavaDoc m_C_Payment_ID = "";
29     public String JavaDoc isManual = "";
30     public String JavaDoc chargeAmt = "";
31
32   public String JavaDoc m_TrxAmt = ZERO.toString();
33     public String JavaDoc m_StmtAmt = ZERO.toString();
34     public String JavaDoc m_InterestAmt = ZERO.toString();
35   public String JavaDoc convertChargeAmt = ZERO.toString();
36
37     public DocLine_Bank (String JavaDoc DocumentType, String JavaDoc TrxHeader_ID, String JavaDoc TrxLine_ID){
38         super(DocumentType, TrxHeader_ID, TrxLine_ID);
39     }
40
41     /**
42      * Set Amounts
43      * @param StmtAmt statement amt
44      * @param InterestAmt interest amount
45      * @param TrxAmt transaction amount
46      */

47     public void setAmount (String JavaDoc StmtAmt/*, String InterestAmt*/, String JavaDoc TrxAmt){
48         if (StmtAmt != null && !StmtAmt.equals(""))
49             m_StmtAmt = StmtAmt;
50         /*if (InterestAmt != null && !StmtAmt.equals(""))
51             m_InterestAmt = InterestAmt;*/

52         if (TrxAmt != null && !StmtAmt.equals(""))
53             m_TrxAmt = TrxAmt;
54     } // setAmount
55

56     public String JavaDoc getServletInfo() {
57     return "Servlet for the accounting";
58   } // end of getServletInfo() method
59
}
60
Popular Tags