Class Contract
java.lang.Object
net.tangly.core.MutableEntityExtendedImp
net.tangly.erp.crm.domain.Contract
- All Implemented Interfaces:
net.tangly.core.Entity,net.tangly.core.EntityExtended,net.tangly.core.HasComments,net.tangly.core.HasDateRange,net.tangly.core.HasId,net.tangly.core.HasLocation,net.tangly.core.HasMutableComments,net.tangly.core.HasMutableDateRange,net.tangly.core.HasMutableId,net.tangly.core.HasMutableName,net.tangly.core.HasMutableTags,net.tangly.core.HasMutableText,net.tangly.core.HasName,net.tangly.core.HasOid,net.tangly.core.HasTags,net.tangly.core.HasText,net.tangly.core.MutableEntity,net.tangly.core.MutableEntityExtended,CrmEntity
public class Contract
extends net.tangly.core.MutableEntityExtendedImp
implements net.tangly.core.MutableEntityExtended, CrmEntity
A legal contract between two parties, one being the seller, and one being the sellee. The properties of the entity define the identifiers of the contract and the time interval.
- correspondence address used in mail exchange and invoicing
- bank account used for invoicing
- amount (without VAT or expenses) of the whole contract
- seller of the contract
- selle of the contract
- The locale of the contract defines the language used to generate invoice documents.
- The currency of the contract amount and the one used in the invoices
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.tangly.core.HasDateRange
net.tangly.core.HasDateRange.RangeFilter<T extends net.tangly.core.HasDateRange>Nested classes/interfaces inherited from interface net.tangly.core.HasLocation
net.tangly.core.HasLocation.GeoPosition, net.tangly.core.HasLocation.PlusCode -
Field Summary
Fields inherited from interface net.tangly.core.HasDateRange
FROM, TOFields inherited from interface net.tangly.core.HasId
IDFields inherited from interface net.tangly.core.HasMutableName
NAMEFields inherited from interface net.tangly.core.HasName
NAMEFields inherited from interface net.tangly.core.HasOid
OID, UNDEFINED_OIDFields inherited from interface net.tangly.core.HasTags
TAGSFields inherited from interface net.tangly.core.HasText
TEXT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(ContractExtension extension) Optional<net.tangly.core.Address> address()voidaddress(net.tangly.core.Address address) voidamountWithoutVat(BigDecimal amountWithoutVat) net.tangly.core.BankConnectionvoidbankConnection(net.tangly.core.BankConnection bankConnection) voidbudgetInHours(BigDecimal budgetInHours) voidcontractExtensions(@NotNull Iterable<ContractExtension> extensions) currency()voidbooleanlocale()voidstatic ContractSignedEventvoidremove(ContractExtension extension) sellee()voidsellee(LegalEntity sellee) seller()voidseller(LegalEntity seller) toString()booleanvalidate()Methods inherited from class net.tangly.core.MutableEntityExtendedImp
add, add, clear, comments, comments, hashCode, id, id, init, name, name, oid, range, range, remove, remove, tags, tags, text, textMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.tangly.erp.crm.domain.CrmEntity
address, address, email, email, im, im, phoneNr, phoneNr, plusCode, position, site, siteMethods inherited from interface net.tangly.core.HasComments
comments, findByAuthor, findByTag, findByTimeMethods inherited from interface net.tangly.core.HasDateRange
from, isActive, isActive, range, toMethods inherited from interface net.tangly.core.HasId
idMethods inherited from interface net.tangly.core.HasLocation
hasAddress, hasPlusCode, hasPositionMethods inherited from interface net.tangly.core.HasMutableComments
add, addComments, comments, removeMethods inherited from interface net.tangly.core.HasMutableDateRange
from, range, toMethods inherited from interface net.tangly.core.HasMutableId
idMethods inherited from interface net.tangly.core.HasMutableName
nameMethods inherited from interface net.tangly.core.HasMutableTags
add, addTags, clear, rawTags, remove, removeTagNamed, tags, update, updateMethods inherited from interface net.tangly.core.HasMutableText
textMethods inherited from interface net.tangly.core.HasName
nameMethods inherited from interface net.tangly.core.HasOid
oidMethods inherited from interface net.tangly.core.HasTags
containsTag, containsTag, findBy, findBy, findByNamespace, rawTags, tags, value, valueMethods inherited from interface net.tangly.core.HasText
text
-
Constructor Details
-
Contract
public Contract(long oid)
-
-
Method Details
-
of
-
address
- Specified by:
addressin interfacenet.tangly.core.HasLocation
-
address
public void address(net.tangly.core.Address address) -
bankConnection
public net.tangly.core.BankConnection bankConnection() -
bankConnection
public void bankConnection(net.tangly.core.BankConnection bankConnection) -
amountWithoutVat
-
totalAmountWithoutVat
-
budgetInHours
-
budgetInHours
-
amountWithoutVat
-
seller
-
seller
-
sellee
-
sellee
-
locale
-
locale
-
currency
-
currency
-
add
-
remove
-
contractExtensions
-
contractExtensions
-
validate
public boolean validate()- Specified by:
validatein interfacenet.tangly.core.Entity- Specified by:
validatein interfacenet.tangly.core.MutableEntity
-
equals
- Overrides:
equalsin classnet.tangly.core.MutableEntityExtendedImp
-
toString
-