public class PurchaseItem extends ChargeItem
DBObject.DenormalizeAction| Modifier and Type | Field and Description |
|---|---|
static GlobalId |
DBCLASS_GID
PurchaseItem
|
static java.lang.String |
DBCLASS_NAME
PurchaseItem
|
ATTRIBUTE_MARVIN, dbClass, ds, NO_LOOP_PARAMS| Constructor and Description |
|---|
PurchaseItem(DBClass def,
DataSource dataSource)
Std.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
eventFieldUpdated(DBField field,
java.lang.Object previous,
GlobalKey previousKey,
FldParams params)
update dependent fields.
|
protected void |
extCheckModifyAccess(DBField field)
Additional access checking for write access of this object.
|
protected void |
extCheckReadAccess()
Additional access checking for READ access of this object.
|
protected java.lang.Object |
extGetDerivedValue(DBField field,
FldParams params)
Calculate the derived value for the fields.
|
protected boolean |
extIsOnChange(DBField field)
OVERRIDE This method to specify that when a field is updated it will affect other fields.
|
protected void |
extPreSaveRecord()
OVERRIDE this method to add functionality to stSoftware BEFORE saving the record to the database.
|
ProductItem |
findChargeitem(java.lang.String... args)
The associated charge item.
|
Invoice |
findInvoiceId(java.lang.String... args)
Invoice Id.
|
InvoiceItem |
findInvoiceItemId(java.lang.String... args)
Invoice Item Id.
|
Job |
findJob(java.lang.String... args)
Job that this purchase is based upon.
|
Purchase |
findPurchaseId(java.lang.String... args)
Associated Purchase.
|
SupplierQuoteItem |
findSupplierQuoteItem(java.lang.String... args)
Links to a supplier Quote Item to be purchased.
|
ProductItem |
getChargeitem(java.lang.String... args) |
Invoice |
getInvoiceId(java.lang.String... args) |
InvoiceItem |
getInvoiceItemId(java.lang.String... args) |
Job |
getJob(java.lang.String... args) |
Purchase |
getPurchase() |
Purchase |
getPurchaseId(java.lang.String... args) |
SupplierQuoteItem |
getSupplierQuoteItem(java.lang.String... args) |
protected boolean |
isModifiableWhenLocked(DBField field) |
PurchaseItem |
setChargeitem(com.aspc.dal.layers.aspc_app.task.ProductItem value,
java.lang.String... args) |
PurchaseItem |
setInvoiceId(com.aspc.dal.layers.aspc_app.invoice.Invoice value,
java.lang.String... args) |
PurchaseItem |
setInvoiceItemId(com.aspc.dal.layers.aspc_app.invoice.InvoiceItem value,
java.lang.String... args) |
PurchaseItem |
setJob(com.aspc.dal.layers.aspc_app.task.Job value,
java.lang.String... args) |
PurchaseItem |
setPurchaseId(com.aspc.dal.layers.aspc_app.purchase.Purchase value,
java.lang.String... args) |
PurchaseItem |
setSupplierQuoteItem(com.aspc.dal.layers.aspc_app.purchase.SupplierQuoteItem value,
java.lang.String... args) |
copyIncludeField, extAutoEnterCreate, extCopy, extFixUp, extIsMandatory, extPreValidate, findAccount, findAdjPriceCheckedBy, findAdjPriceReason, findCalcPriceMatrix, findChargeItemStatus, findChargeItemType, findEnteredBy, findExportFg, findKey, findOwnerBusUnit, findRecurringBase, findTaxCodeId, getAccount, getAdjPriceCheckedBy, getAdjPriceCheckedNotes, getAdjPriceReason, getAdjPriceReasonNotes, getAdjTotalPrice, getAdjTotalPriceIncludingTax, getAdjUnitPrice, getAdjUnitPriceExcludingTax, getAdjUnitPriceIncludingTax, getBackOrdered, getCalcPriceMatrix, getCalcUnitPriceExcludingTax, getChargeItemStatus, getChargeItemType, getCode, getDescription, getDiscountRate, getEnteredBy, getEnteredTime, getExportedTime, getExportFg, getID, getItemCode, getMyobImportTime, getNotes, getOrdered, getOwnerBusUnit, getQty, getRecurringBase, getRoyalties, getTaxCodeId, getTaxRate, getTotalDiscount, getTotalPriceExcludingTax, getTotalPriceIncludingTax, getTotalRoyalties, getTotalTax, getUnitMeasure, getUnitPrice, getUnitPriceDisplay, getUnitPriceDisplayExcludingTax, getUnitPriceDisplayIncludingTax, getUnitPriceExcludingTax, getUnitPriceIncludingTax, hasReadAccess, isAdjPriceChecked, isAdjPriceReasonRequired, isAdjTotalPriceIncludesTax, isAdjUnitPriceIncludesTax, isAdjustItem, isMonthlyRecurring, isNeedToBeCloned, isUnitPriceIncludesTax, makeQuery, setAccount, setAdjPriceChecked, setAdjPriceCheckedBy, setAdjPriceCheckedNotes, setAdjPriceReason, setAdjPriceReasonNotes, setAdjPriceReasonRequired, setAdjTotalPrice, setAdjTotalPriceIncludesTax, setAdjTotalPriceIncludingTax, setAdjUnitPrice, setAdjUnitPriceIncludesTax, setAdjustItem, setBackOrdered, setChargeItemStatus, setCode, setDescription, setDiscountRate, setEnteredBy, setEnteredTime, setExportedTime, setExportFg, setID, setItemCode, setMonthlyRecurring, setMyobImportTime, setNotes, setOrdered, setOwnerBusUnit, setQty, setRecurringBase, setTaxCodeId, setTaxRate, setUnitMeasure, setUnitPrice, setUnitPriceExcludingTax, setUnitPriceIncludesTax, setUnitPriceIncludingTaxaddReloadEventListener, 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, extDelete, extDeleteRecord, extGetDerivedGlobalKey, extGetValue, extMarkSavePoint, extPostDeleteRecord, extPostSaveRecord, extPreDeleteRecord, extPreValidateDelete, extRaiseEvents, extRollbackTo, extSaveRecord, extSetValue, extUndelete, extValidateDelete, extValidateField, 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, makeSearchPlan, 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, toString, touch, undelete, validateField, validateRecord, validateSubTypepublic static final java.lang.String DBCLASS_NAME
public static final GlobalId DBCLASS_GID
public PurchaseItem(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 @Nullable public ProductItem getChargeitem(java.lang.String... args)
@CheckReturnValue @Nonnull public final ProductItem findChargeitem(java.lang.String... args) throws NotFoundException
ProductItem
(Integer, Searchable)args - the optional argumentsNotFoundException - ProductItem was not found@Nonnull public PurchaseItem setChargeitem(com.aspc.dal.layers.aspc_app.task.ProductItem value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception@CheckReturnValue @Nullable public Invoice getInvoiceId(java.lang.String... args)
@CheckReturnValue @Nonnull public final Invoice findInvoiceId(java.lang.String... args) throws NotFoundException
Invoice
(Integer, Searchable)args - the optional argumentsNotFoundException - Invoice was not found@Nonnull public PurchaseItem setInvoiceId(com.aspc.dal.layers.aspc_app.invoice.Invoice value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception@CheckReturnValue @Nullable public InvoiceItem getInvoiceItemId(java.lang.String... args)
@CheckReturnValue @Nonnull public final InvoiceItem findInvoiceItemId(java.lang.String... args) throws NotFoundException
InvoiceItem (Integer, Searchable)args - the optional argumentsNotFoundException - InvoiceItem was not found@Nonnull public PurchaseItem setInvoiceItemId(com.aspc.dal.layers.aspc_app.invoice.InvoiceItem value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception@CheckReturnValue @Nullable public Job getJob(java.lang.String... args)
@CheckReturnValue @Nonnull public final Job findJob(java.lang.String... args) throws NotFoundException
Job (Integer,
Searchable)args - the optional argumentsNotFoundException - Job was not found@Nonnull public PurchaseItem setJob(com.aspc.dal.layers.aspc_app.task.Job value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception@CheckReturnValue @Nullable public Purchase getPurchaseId(java.lang.String... args)
@CheckReturnValue @Nonnull public final Purchase findPurchaseId(java.lang.String... args) throws NotFoundException
Purchase
(Integer, Mandatory, Searchable)args - the optional argumentsNotFoundException - Purchase was not found@Nonnull public PurchaseItem setPurchaseId(com.aspc.dal.layers.aspc_app.purchase.Purchase value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception@CheckReturnValue @Nullable public SupplierQuoteItem getSupplierQuoteItem(java.lang.String... args)
@CheckReturnValue @Nonnull public final SupplierQuoteItem findSupplierQuoteItem(java.lang.String... args) throws NotFoundException
SupplierQuoteItem (Integer, Searchable)args - the optional argumentsNotFoundException - SupplierQuoteItem was not found@Nonnull public PurchaseItem setSupplierQuoteItem(com.aspc.dal.layers.aspc_app.purchase.SupplierQuoteItem value, java.lang.String... args) throws java.lang.Exception
java.lang.Exceptionpublic Purchase getPurchase()
@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 ChargeItemfield - The field updated.previous - The previous value for this field.previousKey - The previous keyparams - The parameters usedjava.lang.Exception - a serious problem@CheckReturnValue
protected boolean extIsOnChange(@Nonnull
DBField field)
extIsOnChange in class ChargeItemfield - The field to check@OverridingMethodsMustInvokeSuper
protected void extCheckReadAccess()
throws DBAccessException
extCheckReadAccess in class DBObjectDBAccessException - No access to READDBObject.checkReadAccess()@OverridingMethodsMustInvokeSuper
protected void extCheckModifyAccess(@Nonnull
DBField field)
throws DBAccessException
extCheckModifyAccess in class DBObjectfield - The fieldDBAccessException - No access to modify@OverridingMethodsMustInvokeSuper
protected void extPreSaveRecord()
throws java.lang.Exception
DBObjectextPreSaveRecord in class DBObjectjava.lang.Exception - a serious problem@CheckReturnValue
protected java.lang.Object extGetDerivedValue(@Nonnull
DBField field,
@Nullable
FldParams params)
throws java.lang.Exception
extGetDerivedValue in class ChargeItemfield - The field to getparams - The parameters for this field eg. language= or default=java.lang.Exception - A serious problemprotected boolean isModifiableWhenLocked(DBField field)
field - The fieldstSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.