public class Quote extends ChargeableTask
DBObject.DenormalizeAction
Modifier and Type | Field and Description |
---|---|
static GlobalId |
DBCLASS_GID
A quote is a record of estimated costs for a job.
|
static java.lang.String |
DBCLASS_NAME
A quote is a record of estimated costs for a job.
|
skipAlert, STATUS_ACCEPTED, STATUS_COMPLETED, STATUS_DOLATER, STATUS_ENTERED, STATUS_REJECTED, STATUS_STARTED
ATTRIBUTE_MARVIN, dbClass, ds, NO_LOOP_PARAMS
Constructor and Description |
---|
Quote(DBClass def,
DataSource dataSource)
Std.
|
Modifier and Type | Method and Description |
---|---|
Sale |
createSale(MutableDataSource mds) |
protected void |
eventFieldUpdated(DBField field,
java.lang.Object previous,
GlobalKey previousKey,
FldParams params)
update dependent fields.
|
protected void |
extAutoEnterCreate()
Additional functionality when an object is created.
|
protected void |
extCopy(DBObject target)
Additional functionality when an object is copied
|
protected void |
extFixUp()
The extended fix up routine for known problems.
|
protected GlobalKey |
extGetDerivedGlobalKey(DBField field,
FldParams params)
Calculate the derived global key for this field.
|
protected java.lang.Object |
extGetDerivedValue(DBField field,
FldParams params)
Calculate the derived value for this field.
|
protected boolean |
extIsMandatory(DBField field)
Conditional mandatory field.
|
protected boolean |
extIsOnChange(DBField field)
OVERRIDE This method to specify that when a field is updated it will affect other fields.
|
protected void |
extPreSaveRecord()
Over ridden method
|
Sale |
findCalcSale(java.lang.String... args)
Find the linked sale.
|
InquirySource |
findInquiryType(java.lang.String... args)
Select the code to report how this person/business found out about your
products/services.
|
QuoteKeywords |
findKeywords(java.lang.String... args)
The keywords for this quote.
|
Sale |
findSale() |
SalesCycle |
findSaleCycleId(java.lang.String... args)
Sales cycle that this quote was generated from.
|
SalesCycle |
findSalesCycle(java.lang.String... args)
Sales cycle (one salesCycle to many quotes).
|
TaskType |
findSaleType(java.lang.String... args)
Sale Type.
|
QuoteTemplate |
findTemplateId(java.lang.String... args)
The template used to fill in the Quote.
|
Purchase[] |
generatePO()
Generates purchase order
|
java.lang.String |
getAdditionalPrintInfo(java.lang.String... args) |
Sale |
getCalcSale(java.lang.String... args) |
java.util.Date |
getExpiryDt(java.lang.String... args) |
InquirySource |
getInquiryType(java.lang.String... args) |
QuoteKeywords |
getKeywords(java.lang.String... args) |
java.lang.String |
getQuoteNumber(java.lang.String... args) |
SalesCycle |
getSaleCycleId(java.lang.String... args) |
SalesCycle |
getSalesCycle(java.lang.String... args) |
TaskType |
getSaleType(java.lang.String... args) |
QuoteTemplate |
getTemplateId(java.lang.String... args) |
java.lang.String |
getTerms(java.lang.String... args) |
java.lang.String |
getTermsHTML(java.lang.String... args) |
java.lang.String |
getTermsText(java.lang.String... args) |
boolean |
isQtExpiresIn(java.lang.String... args) |
boolean |
isTermsIncHTMLTags(java.lang.String... args) |
Quote |
setAdditionalPrintInfo(java.lang.String value,
java.lang.String... args) |
Quote |
setExpiryDt(java.util.Date value,
java.lang.String... args) |
Quote |
setInquiryType(com.aspc.dal.dbobj.misc.InquirySource value,
java.lang.String... args) |
Quote |
setKeywords(com.aspc.dal.layers.aspc_app.task.keyword.QuoteKeywords value,
java.lang.String... args) |
Quote |
setQuoteNumber(java.lang.String value,
java.lang.String... args) |
Quote |
setSaleCycleId(com.aspc.dal.layers.aspc_app.task.SalesCycle value,
java.lang.String... args) |
Quote |
setSalesCycle(com.aspc.dal.layers.aspc_app.task.SalesCycle value,
java.lang.String... args) |
Quote |
setSaleType(com.aspc.dal.layers.aspc_app.misc.TaskType value,
java.lang.String... args) |
Quote |
setTemplateId(com.aspc.dal.layers.aspc_app.task.QuoteTemplate value,
java.lang.String... args) |
Quote |
setTerms(java.lang.String value,
java.lang.String... args) |
Quote |
setTermsIncHTMLTags(boolean value,
java.lang.String... args) |
protected void |
updateQuoteNumber() |
copyChildren, extPostSaveRecord, extPreValidate, findAccountManager, findBillTo, findCalcSaleType, findCampaign, findChargeTaxCode, findContact, findCopyFromTemplate, findDefaultLabourRate, findLastCompleteActivity, findLastModifiedActivity, findNextScheduledActivity, findPaymentTerms, findRecipient, findSite, findSiteRegion, findState, findSuburb, getAccountManager, getActivities, getAdjTotalPrice, getBillTo, getCalcAttn, getCalcBillTo, getCalcSaleType, getCampaign, getChargeTaxCode, getChargeTaxRate, getContact, getContactDisplaySiteAddress, getCopyFromTemplate, getCreditSurchargePerc, getCustomerInvoice, getCustomerInvoiceDate, getCustomerPO, getDefaultLabourRate, getDefaultSiteContact, getDeliveryFee, getDiscountRate, getDisplayContact, getDisplaySiteAddress, getDisplaySiteCountry, getDisplaySitePhone, getDisplaySitePostCode, getDisplaySiteState, getDisplaySiteSuburbCity, getJobItems, getLastActionTime, getLastCompleteActivity, getLastModifiedActivity, getLastNoticeNumber, getNextScheduledActivity, getOrderConfirmationNum, getPaymentTerms, getProfit, getProfitPerc, getRecipient, getRecipientName, getReminderComment, getSite, getSiteAddress, getSiteContactMobile, getSiteContactPerson, getSiteContactPhone, getSiteCoordinate, getSiteCountry, getSiteFax, getSiteName, getSiteNotes, getSitePhone, getSitePostcode, getSiteRegion, getSiteState, getSiteSuburbCity, getState, getStatusJournal, getSuburb, getTotalDiscount, getTotalRoyalties, setAccountManager, setAdjTotalPrice, setBillTo, setCampaign, setChargeTaxCode, setChargeTaxRate, setContact, setCopyFromTemplate, setCreditSurchargePerc, setCustomerInvoice, setCustomerInvoiceDate, setCustomerPO, setDefaultLabourRate, setDeliveryFee, setDiscountRate, setOrderConfirmationNum, setPaymentTerms, setRecipient, setReminderComment, setSite, setSiteAddress, setSiteContactMobile, setSiteContactPerson, setSiteContactPhone, setSiteCoordinate, setSiteCountry, setSiteFax, setSiteName, setSiteNotes, setSitePhone, setSitePostcode, setSiteRegion, setSiteState, setSiteSuburbCity, setState, setSuburb, updateProspectCategory
cleanupCurrentNote, copyIncludeField, createFromType, extPreValidateDelete, extSetValue, extValidateField, findAssignTo, findAssignToGroup, findAttachedEmail, findCalcCustomer, findCategory, findCurrentNote, findCurrentNoteRaw, findDependsOn, findEnteredBy, findInitialAssignTo, findInitialNotNullAssignTo, findKey, findLastModifiedBy, findOwner, findOwnerBusUnit, findPredecessorsStatus, findPriority, findRepeatBase, findRepeatNext, findRepeatPrevious, findRequestedBy, findResult, findSchedAmPm, findSeriesPrevious, findSimpleStatus, findStatus, findStatusLastChangedBy, findTemplateType, findType, getActionByDate, getActualDuration, getActualEnd, getActualEndMonth, getActualStart, getAdditionalCharge, getAdditionalCosts, getAdditionalDetails, getAdjActualDuration, getAdjustedCost, getAssignTo, getAssignToDate, getAssignToGroup, getAttachedEmail, getCalcActualDuration, getCalcCustomer, getCalcTotalDuration, getCategory, getCurrentNote, getCurrentNoteRaw, getDependsOn, getDescription, getDisplayBusyTime, getDisplayId, getDisplaySchedTime, getDisplayShortDesc, getDisplayStatus, getDueBy, getDuration, getEndDate, getEnteredBy, getEnterTime, getEnterTimeMonthYear, getEstVSActualHours, getExpectedFinishMonthYear, getFullTextSearchScore, getHtmlDescription, getICalEnd, getICalFullAddress, getICalOrganizer, getICalStart, getID, getInitialAssignTo, getInitialAssignToDate, getInitialNotNullAssignTo, getInitialNotNullAssignToDate, getIssueDate, getLastModifiedBy, getLastModifiedTime, getLinkedJobs, getNextAlert, getNextOverdueAlert, getObseleteNotes, getOwner, getOwnerBusUnit, getPercUntilClosed, getPreAlertDuration, getPredecessorsStatus, getPrimaryType, getPriority, getProperties, getRawSearchText, getReferenceNumber, getReferencesUUID, getRepeatBase, getRepeatedTimezone, getRepeatNext, getRepeatPrevious, getRequestedBy, getResult, getSchedAmPm, getSequence, getSeriesPrevious, getShortDesc, getSimpleStatus, getStartDate, getStatus, getStatusLastChanged, getStatusLastChangedBy, getStatusLastChangedTurnaround, getTags, getTagsLabel, getTagsRaw, getTaskCoverphoto, getTaskfeedBackBad, getTaskfeedBackGood, getTaskfeedbacknotes, getTaskRating, getTaskSeries, getTemplateType, getTimemapDurationField, getTimemapEndTime, getTimemapEndTimeField, getTimemapStartTime, getTimemapStartTimeField, getTmpAttachmentKey, getTotalCost, getTotalLabourCosts, getTotalLabourPrice, getTotalLabourPriceExcTax, getTotalPriceExcTax, getTotalPriceIncTax, getTotalProductCosts, getTotalProductPrice, getTotalProductPriceExcTax, getTotalProfit, getTotalProfitPerc, getTotalRelatedCosts, getTotalTax, getType, getUntouchedTaskSeries, getUUID, getValueForPublic, getWeakReferencesUUID, handleEvent, hasReadAccess, isAllPredecessorsClosed, isApplicableTo, isCategoryRequired, isChangedByUser, isCheckPredecessorsClosed, isChildNode, isClosed, isContains, isCurrent, isDescendantNode, isDirectory, isDueByExpiresIn, isLockedAssignTo, isLockedStartDate, isMatchesSkillLevel, isMyGroup, isNextAlertDueIn, isNoteRequired, isPublic, isReferenceable, isRepeated, isSameNode, isSendAlert, isTimemapHasEndTime, isVersionable, lastModified, listNodes, makeQuery, makeSearchPlan, processRawTags, setActualEnd, setActualStart, setAdditionalCharge, setAdditionalCosts, setAdditionalDetails, setAdjActualDuration, setAdjustedCost, setAllPredecessorsClosed, setAssignTo, setAssignToDate, setAssignToGroup, setAttachedEmail, setCategory, setCategoryRequired, setChangedByUser, setCurrentNoteRaw, setDependsOn, setDescription, setDueBy, setDuration, setEndDate, setEnteredBy, setEnterTime, setID, setInitialAssignTo, setInitialAssignToDate, setIssueDate, setLastModifiedBy, setLastModifiedTime, setLockedAssignTo, setLockedStartDate, setNextAlert, setNextOverdueAlert, setObseleteNotes, setOwner, setOwnerBusUnit, setPercUntilClosed, setPreAlertDuration, setPredecessorsStatus, setPrimaryType, setPriority, setProperties, setRawSearchText, setReferenceable, setReferenceNumber, setReferencesUUID, setRepeatBase, setRepeated, setRepeatedTimezone, setRepeatNext, setRepeatPrevious, setRequestedBy, setResult, setSchedAmPm, setSendAlert, setSequence, setSeriesPrevious, setShortDesc, setSimpleStatus, setStartDate, setStatus, setStatusLastChanged, setStatusLastChangedBy, setTags, setTagsRaw, setTaskCoverphoto, setTaskfeedBackBad, setTaskfeedBackGood, setTaskfeedbacknotes, setTaskRating, setTemplateType, setTmpAttachmentKey, setType, setUUID, setVersionable, setWeakReferencesUUID, toString, updateStatus, vDisplayName, vName
addReloadEventListener, archiveCheck, autoEnterCreate, calculateValue, calculateValue, calculateValue, callingRestoreByJournal, changeThreadMode, checkCreateAccess, checkDelete, checkDeleteAccess, checkModifyAccess, checkModifyAccess, checkReadAccess, clearCache, copy, copyFields, copyInwardLinks, delete, denormalizedResult, displayLogName, displayName, displayValue, doSearch, dump, equals, eventDataLoaded, extCanDeleteDependantObject, extCheckCreateAccess, extCheckDeleteAccess, extCheckModifyAccess, extCheckModifyAccess, extCheckReadAccess, extDelete, extDeleteRecord, extGetValue, extMarkSavePoint, extPostDeleteRecord, extPreDeleteRecord, extRaiseEvents, extRollbackTo, extSaveRecord, extUndelete, extValidateDelete, extValidateRecord, fetchLinkHolder, findGlobalKey, findGlobalKey, findGlobalKey, findGlobalKey, findLinkedObject, findLinkedObject, findLinkedObject, findRawData, fireEventDataLoaded, fixUp, forceLockedTransaction, getBoolean, getBoolean, getBoolean, getBoolean, getBoolean, getBoolean, getChangedFieldInfo, getChangedFields, getDate, getDate, getDate, getDate, getDate, getDefaultValue, getDisableOnChangeEvent, getDouble, getDouble, getDouble, getDouble, getDouble, getFieldDouble, getFieldInt, getFieldLong, getFieldString, getFormattedString, getFormattedString, getGlobalKey, getGlobalKey, getGlobalKey, getGlobalKey, getGlobalKey, getInt, getInt, getInt, getInt, getInt, getInt, getInwardLinkage, getKeyString, getKeyValue, getLinkedObject, getLinkedObject, getLinkedObject, getLinkedObjectByKey, getLinkedRowId, getLinkedRowId, getLinkedRowIdByData, getLinkHolder, getLockedTransaction, getLong, getLong, getLong, getLong, getLong, getLong, getMutableArrayValue, getMutableArrayValue, getOriginalKey, getOriginalValue, getOriginalValue, getProcessedValue, getPureValue, getRawData, getRawValue, getRawValue, getRowId, getRowKey, getSecondaryCacheGroupKey, getSrcLayerID, getString, getString, getString, getString, getString, getString, getValue, getValue, getValue, getValue, hasAutoChanged, hasAutoChanged, hasChanged, hasChangedByUser, hasChangedByUserField, hasChangedByUserField, hasFieldChanged, hasFieldChanged, hashCode, hasStoredResult, iCheckDeleteAccess, iCheckModifyAccess, iCheckReadAccess, iGetDenormalizedMap, iGetRawValue, iPlaceDenormalizedResult, iPostSaveOrDeleteRecord, iPreSaveOrDeleteRecord, iPreValidate, iRaiseEvents, iSaveOrDeleteRecord, isBrokenLink, isBrokenLink, isChanged, isDataCacheKnownToBeDirty, isDeleted, isEmpty, iSetValue, isForceReindex, isKeyWordField, isMandatory, isNew, isNull, isNull, isOnChange, isReindex, iValidateRecord, lastTouched, makeArchiveDataLoader, makeClone, makeDataLoader, makeDenormalizedDoc, makeLinkedArray, makeModifyAccessException, makeWriteProvider, manualDenormalizeOnSave, markSavePoint, optLockedTransaction, registerWatchedObject, reindex, releaseDenormalized, removeReloadEventListener, restoreByJournal, rollbackTo, setBoolean, setBoolean, setBoolean, setBoolean, setDisableOnChangeEvent, setDouble, setDouble, setInt, setInt, setLong, setLong, setRawData, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, touch, undelete, validateField, validateRecord, validateSubType
public static final java.lang.String DBCLASS_NAME
public static final GlobalId DBCLASS_GID
public Quote(DBClass def, DataSource dataSource) throws java.lang.Exception
def
- The class of this objectdataSource
- The datasource for this objectjava.lang.Exception
- A serious problem occurred@CheckReturnValue @Nonnull public java.lang.String getAdditionalPrintInfo(java.lang.String... args)
@Nonnull public Quote setAdditionalPrintInfo(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nullable public Sale getCalcSale(java.lang.String... args)
@CheckReturnValue @Nonnull public final Sale findCalcSale(java.lang.String... args) throws NotFoundException
Sale
(Integer,
Derived, Searchable)args
- the optional argumentsNotFoundException
- Sale was not found@CheckReturnValue @Nullable public java.util.Date getExpiryDt(java.lang.String... args)
@Nonnull public Quote setExpiryDt(java.util.Date value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nullable public InquirySource getInquiryType(java.lang.String... args)
@CheckReturnValue @Nonnull public final InquirySource findInquiryType(java.lang.String... args) throws NotFoundException
InquirySource
(String, Searchable)args
- the optional argumentsNotFoundException
- InquirySource was not found@Nonnull public Quote setInquiryType(com.aspc.dal.dbobj.misc.InquirySource value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nullable public QuoteKeywords getKeywords(java.lang.String... args)
@CheckReturnValue @Nonnull public final QuoteKeywords findKeywords(java.lang.String... args) throws NotFoundException
QuoteKeywords
(Integer, Searchable)args
- the optional argumentsNotFoundException
- QuoteKeywords was not found@Nonnull public Quote setKeywords(com.aspc.dal.layers.aspc_app.task.keyword.QuoteKeywords value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue public boolean isQtExpiresIn(java.lang.String... args)
@CheckReturnValue @Nonnull public java.lang.String getQuoteNumber(java.lang.String... args)
@Nonnull public Quote setQuoteNumber(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nullable public SalesCycle getSaleCycleId(java.lang.String... args)
@CheckReturnValue @Nonnull public final SalesCycle findSaleCycleId(java.lang.String... args) throws NotFoundException
SalesCycle
(Integer, Searchable)args
- the optional argumentsNotFoundException
- SalesCycle was not found@Nonnull public Quote setSaleCycleId(com.aspc.dal.layers.aspc_app.task.SalesCycle value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nullable public TaskType getSaleType(java.lang.String... args)
@CheckReturnValue @Nonnull public final TaskType findSaleType(java.lang.String... args) throws NotFoundException
TaskType
(String, Mandatory, Searchable)args
- the optional argumentsNotFoundException
- TaskType was not found@Nonnull public Quote setSaleType(com.aspc.dal.layers.aspc_app.misc.TaskType value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nullable public SalesCycle getSalesCycle(java.lang.String... args)
@CheckReturnValue @Nonnull public final SalesCycle findSalesCycle(java.lang.String... args) throws NotFoundException
SalesCycle
(Integer, Searchable)args
- the optional argumentsNotFoundException
- SalesCycle was not found@Nonnull public Quote setSalesCycle(com.aspc.dal.layers.aspc_app.task.SalesCycle value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nullable public QuoteTemplate getTemplateId(java.lang.String... args)
@CheckReturnValue @Nonnull public final QuoteTemplate findTemplateId(java.lang.String... args) throws NotFoundException
QuoteTemplate
(Integer, Searchable)args
- the optional argumentsNotFoundException
- QuoteTemplate was not found@Nonnull public Quote setTemplateId(com.aspc.dal.layers.aspc_app.task.QuoteTemplate value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getTerms(java.lang.String... args)
@Nonnull public Quote setTerms(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getTermsHTML(java.lang.String... args)
@CheckReturnValue public boolean isTermsIncHTMLTags(java.lang.String... args)
@Nonnull public Quote setTermsIncHTMLTags(boolean value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getTermsText(java.lang.String... args)
public Sale findSale()
public Sale createSale(MutableDataSource mds) throws java.lang.Exception
mds
- the mutable data sourcejava.lang.Exception
- Exception A serious problempublic Purchase[] generatePO() throws java.lang.Exception
java.lang.Exception
- a serious problem@OverridingMethodsMustInvokeSuper protected void extAutoEnterCreate() throws java.lang.Exception
extAutoEnterCreate
in class ChargeableTask
java.lang.Exception
- A serious problemcom.aspc.DBObj.DBObject#autoEnterCreate()
@CheckReturnValue protected boolean extIsMandatory(@Nonnull DBField field)
extIsMandatory
in class ChargeableTask
field
- The field to getDBObject.extIsMandatory( DBField)
@CheckReturnValue protected boolean extIsOnChange(@Nonnull DBField field)
ChargeableTask
extIsOnChange
in class ChargeableTask
field
- The field@OverridingMethodsMustInvokeSuper protected void eventFieldUpdated(@Nonnull DBField field, @Nullable java.lang.Object previous, @Nullable GlobalKey previousKey, @Nullable FldParams params) throws java.lang.Exception
eventFieldUpdated
in class ChargeableTask
field
- The field updated.previous
- The previous value for this field.previousKey
- The previous keyparams
- The parameters usedjava.lang.Exception
- a serious problem@OverridingMethodsMustInvokeSuper protected void extPreSaveRecord() throws java.lang.Exception
ChargeableTask
extPreSaveRecord
in class ChargeableTask
java.lang.Exception
- Exception A serious problem@CheckReturnValue protected java.lang.Object extGetDerivedValue(@Nonnull DBField field, @Nullable FldParams params) throws java.lang.Exception
extGetDerivedValue
in class ChargeableTask
field
- The field to getparams
- The parameters for this field eg. language= or default=java.lang.Exception
- A serious problem@CheckReturnValue @Nullable protected GlobalKey extGetDerivedGlobalKey(@Nonnull DBField field, @Nullable FldParams params) throws java.lang.Exception
extGetDerivedGlobalKey
in class ChargeableTask
field
- The field to getparams
- The parameters for this field eg. language= or default=java.lang.Exception
- A serious problem@OverridingMethodsMustInvokeSuper protected void extCopy(@Nonnull DBObject target) throws java.lang.Exception
extCopy
in class ChargeableTask
target
- The target objectjava.lang.Exception
- A serious problem@OverridingMethodsMustInvokeSuper protected void extFixUp() throws java.lang.Exception
extFixUp
in class ChargeableTask
java.lang.Exception
- A serious problemprotected void updateQuoteNumber() throws java.lang.Exception
java.lang.Exception
stSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.