📄 minvoicetax.java
字号:
package org.compiere.model;
import java.util.*;
import java.sql.*;
import java.math.*;
import java.io.Serializable;
import org.compiere.util.*;
public class MInvoiceTax
extends PO
{
public MInvoiceTax (Properties ctx, int C_InvoiceTax_ID)
{
super (ctx, C_InvoiceTax_ID);
if (C_InvoiceTax_ID == 0)
{
setC_Tax_ID (0);
setTaxBaseAmt (Env.ZERO);
setC_Invoice_ID (0);
setTaxAmt (Env.ZERO);
}
}
protected POInfo initPO (Properties ctx)
{
int AD_Table_ID = 334;
POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID);
return poi;
}
public boolean save ()
{
Log.trace (Log.l4_Data, "MInvoiceTax.save");
return super.save ();
}
public String toString ()
{
StringBuffer sb = new StringBuffer ("MInvoiceTax[").append (getID ()).append ("]");
return sb.toString ();
}
void setC_Tax_ID (int C_Tax_ID)
{
setValueNoCheck ("C_Tax_ID", new Integer (C_Tax_ID));
}
public int getC_Tax_ID ()
{
Integer ii = (Integer)getValue ("C_Tax_ID");
if (ii == null)
return 0;
return ii.intValue ();
}
void setTaxBaseAmt (BigDecimal TaxBaseAmt)
{
if (TaxBaseAmt == null)
throw new IllegalArgumentException ("TaxBaseAmt is mandatory");
setValueNoCheck ("TaxBaseAmt", TaxBaseAmt);
}
public BigDecimal getTaxBaseAmt ()
{
BigDecimal bd = (BigDecimal)getValue ("TaxBaseAmt");
if (bd == null)
return Env.ZERO;
return bd;
}
void setC_Invoice_ID (int C_Invoice_ID)
{
setValueNoCheck ("C_Invoice_ID", new Integer (C_Invoice_ID));
}
public int getC_Invoice_ID ()
{
Integer ii = (Integer)getValue ("C_Invoice_ID");
if (ii == null)
return 0;
return ii.intValue ();
}
void setTaxAmt (BigDecimal TaxAmt)
{
if (TaxAmt == null)
throw new IllegalArgumentException ("TaxAmt is mandatory");
setValueNoCheck ("TaxAmt", TaxAmt);
}
public BigDecimal getTaxAmt ()
{
BigDecimal bd = (BigDecimal)getValue ("TaxAmt");
if (bd == null)
return Env.ZERO;
return bd;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -