com.knowgate.hipergate
Class InvoiceLine

java.lang.Object
  extended by com.knowgate.dataobjs.DBPersist
      extended by com.knowgate.hipergate.InvoiceLine
All Implemented Interfaces:
java.io.Serializable, java.util.Map

public class InvoiceLine
extends DBPersist

Invoice Line

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>
 
Field Summary
 
Fields inherited from class com.knowgate.dataobjs.DBPersist
AllVals, sAuditCls, sAuditUsr, sTransactId
 
Constructor Summary
InvoiceLine()
           
 
Method Summary
 java.math.BigDecimal computeTotal()
          Compute line total from base price, number of units and taxes If is_tax_included==1 Or is_tax_included is null Then pct_tax_rate is applied Else it is ignored
 boolean store(JDCConnection oConn)
          Store invoice line This method updated k_invoices.dt_modified to current datetime as a side effect
 
Methods inherited from class com.knowgate.dataobjs.DBPersist
allcaps, allcaps, changelog, clear, clone, containsKey, containsValue, delete, entrySet, exists, get, get, getAuditClassName, getCreationDate, getDate, getDateFormated, getDateShort, getDateTime, getDateTime24, getDecimal, getDecimalFormated, getDecimalFormated, getDouble, getDoubleFormated, getFloat, getFloatFormated, getInt, getInteger, getIntervalPart, getItemMap, getItems, getMoney, getShort, getSQLDate, getSQLTime, getString, getStringHtml, getStringNull, getTable, getTable, getTableName, getTime, getTimeOfDay, getTimestamp, getUIdFromName, isEmpty, isNull, iterator, keySet, load, load, parseXML, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, putAll, putAll, remove, remove, replace, replace, replace, replace, replace, replace, replace, replace, setAuditTransact, setAuditUser, setCreationDate, size, toLowerCase, toUpperCase, toXML, toXML, toXML, toXML, values
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

InvoiceLine

public InvoiceLine()
Method Detail

store

public boolean store(JDCConnection oConn)
              throws java.sql.SQLException

Store invoice line

This method updated k_invoices.dt_modified to current datetime as a side effect

Overrides:
store in class DBPersist
Parameters:
oConn - JDCConnection
Returns:
boolean
Throws:
java.sql.SQLException

computeTotal

public java.math.BigDecimal computeTotal()

Compute line total from base price, number of units and taxes

If is_tax_included==1 Or is_tax_included is null Then pct_tax_rate is applied Else it is ignored

Returns:
BigDecimal pr_sale * nu_quantity * pct_tax_rate