1 14 package org.compiere.acct; 15 16 import java.math.*; 17 import java.sql.*; 18 19 import org.compiere.util.*; 20 import org.compiere.model.*; 21 22 28 public class DocLine_Bank extends DocLine 29 { 30 36 public DocLine_Bank (String DocumentType, int TrxHeader_ID, int TrxLine_ID) 37 { 38 super (DocumentType, TrxHeader_ID, TrxLine_ID); 39 } 41 42 private boolean m_IsReversal = false; 43 44 private int m_C_Payment_ID = 0; 45 46 private BigDecimal m_TrxAmt = Env.ZERO; 47 private BigDecimal m_StmtAmt = Env.ZERO; 48 private BigDecimal m_InterestAmt = Env.ZERO; 49 50 54 public void setC_Payment_ID (int C_Payment_ID) 55 { 56 m_C_Payment_ID = C_Payment_ID; 57 } 62 public int getC_Payment_ID() 63 { 64 return m_C_Payment_ID; 65 } 67 71 public void setIsReversal(String IsReversal) 72 { 73 if (IsReversal != null && IsReversal.equals("Y")) 74 m_IsReversal = true; 75 else 76 m_IsReversal = false; 77 } 79 83 public boolean isReversal() 84 { 85 return m_IsReversal; 86 } 88 94 public void setAmount (BigDecimal StmtAmt, BigDecimal InterestAmt, BigDecimal TrxAmt) 95 { 96 if (StmtAmt != null) 97 m_StmtAmt = StmtAmt; 98 if (InterestAmt != null) 99 m_InterestAmt = InterestAmt; 100 if (TrxAmt != null) 101 m_TrxAmt = TrxAmt; 102 } 104 108 public BigDecimal getInterestAmt() 109 { 110 return m_InterestAmt; 111 } 113 117 public BigDecimal getStmtAmt() 118 { 119 return m_StmtAmt; 120 } 122 126 public BigDecimal getTrxAmt() 127 { 128 return m_TrxAmt; 129 } 131 } | Popular Tags |