Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The SalesCalcAvailableDlvDates class is the engine for the delivery date control.
Syntax
class SalesCalcAvailableDlvDates extends RunBase
Run On
Called
Methods
Method | Description | |
---|---|---|
![]() |
allowEditDlvMode | |
![]() |
allowEditInventLocation | |
![]() |
allowEditInventSite | |
![]() |
calcBackward | Calculates the first available receipt date backward from _fromDate. Then, the ship date is calculated based on the first available receipt date. |
![]() |
calcDatesFromUTCNow | Uses the current UTC date and time as a basis to computer the shipping and receipt dates. |
![]() |
calcEarliestShipReceiptDates | Retrieves the earliest shipping and receipt dates. |
![]() |
calcForward | First, calculates the first available ship date forward from the planned ship date _fromDate (open for shipping and pickup). Then, calculates the first possible receipt date at the customer (transport and receipt calendar does not have to be open at the same time). Finally, the ship date is moved closer to the calculated receipt date, if it is possible. |
![]() |
calcReceiptDate | Calculates the receipt date based on the entered shipping date |
![]() |
cancelTimeOut | Cancels a previous method call to the setTimeOut method. (Inherited from Object.) |
![]() |
canGoBatch | Returns false in this class. (Inherited from RunBase.) |
![]() |
canSwapBetweenCS | Controls whether a calledFrom class that is instantiated on the server should have its prompt executed on the client. (Inherited from RunBase.) |
![]() |
caption | Returns the description from the current class by calling the static description method on the class if there is one. (Inherited from RunBase.) |
![]() |
checkCloseDialog | Must be called in the CloseOk method of a RunBase dialog box. (Inherited from RunBase.) |
![]() |
checkConfirmedDates | Determines whether to do delivery date control on the confirmed dates. |
![]() |
checkReceiptDate | Checks if the entered receipt date is valid. |
![]() |
checkReceiptDateInCalendar | It verifies if the receipt date is an open date in both the customer's and the transport calendars. |
![]() |
checkShippingDate | Checks if the entered shipping date is valid |
![]() |
checkShippingDateInCalendar | It verifies if the proposed shipping date is an open date in the shipping calendar. |
![]() |
cleanupDialog | Provides a way to clean up after a dialog box has been canceled. (Inherited from RunBase.) |
![]() |
createPossibleShippingAndReceiptDates | Calculates the possible shipping and receipt dates. |
![]() |
deliveryDateControlActive | Determines whether the delivery date control is active or not. |
![]() |
deliveryDateControlMap | Retrieves the SalesDeliveryDateControlMap map that applies for the calculation. |
![]() |
dialog | Returns a class that contains the methods that are described by the RunBaseDialogable interface. (Overrides the dialog Method.) |
![]() |
dialogClear | Clears the contents of the dialog box. (Inherited from RunBase.) |
![]() |
dialogInit | Initializes the dialog box. (Inherited from RunBase.) |
![]() |
dialogInternal | (Inherited from RunBase.) |
![]() |
dialogMake | Obtains the dialog from a RunBase class. (Inherited from RunBase.) |
![]() |
dialogPost | Makes it possible to add controls after the main dialog method has been run because this method is called after the dialog method is called. (Inherited from RunBase.) |
![]() |
dialogPostInit | Called right after the RunBase.dialogInit Method method. (Inherited from RunBase.) |
![]() |
dialogPostRun | Called after the Dialog.run Method class. (Inherited from RunBase.) |
![]() |
dialogReInit | Reinitializes the dialog box. (Inherited from RunBase.) |
![]() |
dialogSelectCtrl | When using the dialog class for dialog, this method is called whenever a control is selected. (Inherited from RunBase.) |
![]() |
dialogTask | When using the Dialog Class class for dialog, this method is called from the task method in the dialog form. (Inherited from RunBase.) |
![]() |
dialogUpdate | Updates the dialog, for example after reinitializing the query. (Inherited from RunBase.) |
![]() |
dialogUpdateQuery | Updates the query in the dialog box. (Inherited from RunBase.) |
![]() |
doModifiedFieldCheck | Determines whether the date delivery check should be performed when the date delivery fields are modified. |
![]() |
doValidateWrite | Determines whether changes have been made to fields that influence the delivery date control. |
![]() |
effectiveOrderDate | |
![]() |
equal | Determines whether the specified object is equal to the current one. (Inherited from Object.) |
![]() |
errorTextHandling | Implements logic for adding error messages. |
![]() |
fieldId2DlvDateType | |
![]() |
getFromDialog | Assigns the dialog values to the internal variables. (Inherited from RunBase.) |
![]() |
getItemId | Returns the item ID for the record to calculate delivery date for. |
![]() |
getLast | Gets the last choice that is stored in the last value table. (Inherited from RunBase.) |
![]() |
getRunBase | (Inherited from RunBase.) |
![]() |
getTimeOutTimerHandle | Returns the timer handle for the object. (Inherited from Object.) |
![]() |
handle | Retrieves the handle of the class of the object. (Inherited from Object.) |
![]() |
inGetSaveLast | Returns true when the GetLast or SaveLast method is executed. (Inherited from RunBase.) |
![]() |
init | Gives RunBase the same profile as, for example, a FormRun class. This method is not used in the standard application. (Inherited from RunBase.) |
![]() |
initMaster | Instantiates which date and date type to use for delivery date calculation. |
![]() |
initParmDefault | Initializes the internal variables. (Inherited from RunBase.) |
![]() |
initReqSetupDim | Create a ReqSetupDim for a given item with given inventory dimensions. |
![]() |
initSalesAvailableDlvDatesTmp | |
![]() |
interCompanyDerivedOrder | |
![]() |
interCompanyDirectDeliveryOrig | |
![]() |
interCompanyOrder | |
![]() |
inventDimIdUpdate | Modifications are made to dimensions, such as warehouse on sales order lines where all the dimension fields are positioned in the related table InventDim. |
![]() |
isMasterDateTypeConfirmed | |
![]() |
isPickupDate | Determines whether _transDate is a pickup date. |
![]() |
isReceiptDateInPast | Determines if the receipt date is in the past |
![]() |
isReceiptDateOpen | Determines if the receipt date is open in the customer's calendar. |
![]() |
isShippingDateInLeadTime | Determines if the shipping date is in the order lead time. |
![]() |
isShippingDateInPast | Determines if the shipping date is in the past |
![]() |
isSwappingPrompt | Checks if the program is currently swapping from server to client. (Inherited from RunBase.) |
![]() |
lastConfirmation | Retrieves the last confirmation date and confirmation ID. |
![]() |
lastValueDataAreaId | (Inherited from RunBase.) |
![]() |
lastValueDesignName | (Inherited from RunBase.) |
![]() |
lastValueElementName | (Inherited from RunBase.) |
![]() |
lastValueType | (Inherited from RunBase.) |
![]() |
lastValueUserId | (Inherited from RunBase.) |
![]() |
leadTimeFromCTP | Retrieves the lead time based on a capable to promise calculation. |
![]() |
leadTimeFromMarking | Retrieves the lead time based on marked transactions. |
![]() |
marginIssue | Finds issue margin for a given item with given inventory dimensions. |
![]() |
masterDateType | Returns the type of the master date. |
![]() |
modifiedField | Recalculates delivery dates when a field having impact on delivery dates is changed and enhanced delivery date control is enabled. |
![]() |
modifiedFieldBeforeInsert | Recalculates delivery dates when a field having impact on delivery dates is changed on a record that is not yet saved. It can also be applied on already saved records but it works in silent mode. This means that it never displays error messages and never offers user to resolve conflicts manually by using the dialog box, but recalculates delivery dates as from today for irresolvable conflicts. |
![]() |
mustLoadSaveQuery | Determines whether the last query must be loaded and saved when you leave the form. Called from the SysQueryForm. (Inherited from RunBase.) |
![]() |
name | Returns the name of the RunBase class. (Inherited from RunBase.) |
![]() |
new | Initializes a new instance of the RunBase class. (Inherited from RunBase.) |
![]() |
notify | Releases the hold on an object that has called the wait method on this object. (Inherited from Object.) |
![]() |
notifyAll | Releases a lock on the object that was issued by the wait method on this object. (Inherited from Object.) |
![]() |
objectOnServer | Determines whether the object is on a server. (Inherited from Object.) |
![]() |
owner | Returns the instance that owns the object. (Inherited from Object.) |
![]() |
pack | Serializes the current instance of the SalesCalcAvailableDlvDates class. (Overrides the pack Method.) |
![]() |
parmAcceptWarnings | Gets or sets the AcceptWarnings parameter. |
![]() |
parmCalcDays | Gets or sets the CalcDays parameter. |
![]() |
parmCancelModifiedField | Gets or sets the CancelModifiedField parameter. |
![]() |
parmCheckOnly | Gets or sets the CheckOnly parameter. |
![]() |
parmDeliveryDateControlType | Gets or sets the DeliveryDateControlType parameter. |
![]() |
parmDisableDeliveryDateControl | Gets or sets the DisableDeliveryDateControl parameter. |
![]() |
parmDlvMode | Gets or sets the DlvMode parameter. |
![]() |
parmDlvModeIdSelected | Gets or sets the DlvModeIdSelected parameter. |
![]() |
parmEnableShowDialog | Gets or sets the EnableShowDialog parameter. |
![]() |
parmErrorText | Gets or sets the ErrorText parameter. |
![]() |
parmErrorTextType | Gets or sets the ErrorTextType parameter. |
![]() |
parmErrorTreeCtrl | Gets or sets the ErrorTreeCtrl parameter. |
![]() |
parmForceCalcToUseMarking | Gets or sets the ForceCalcToUseMarking parameter. |
![]() |
parmIncludeTodayInAvailableDlvDates | Gets or sets the IncludeTodayInAvailableDlvDates parameter. |
![]() |
parmInfologLineStart | Gets or sets the InfologLineStart parameter. |
![]() |
parmInventDimId | Gets or sets the InventDimId parameter. |
![]() |
parmInventLocationId | Gets or sets the InventLocationId parameter. |
![]() |
parmInventLocationIdSelected | Gets or sets the InventLocationIdSelected parameter. |
![]() |
parmInventLocationTransportShipping | Gets or sets the InventLocationTransportShipping parameter. |
![]() |
parmInventSiteId | Gets or sets the InventSiteId parameter. |
![]() |
parmInventSiteIdSelected | Gets or sets the InventSiteIdSelected parameter. |
![]() |
parmOrderEntryDeadlineGroupId | Gets or sets the OrderEntryDeadlineGroupId parameter. |
![]() |
parmOrderEntryDeadlineSite | Gets or sets the OrderEntryDeadlineSite parameter. |
![]() |
parmOrderEntryDeadlineUser | Gets or sets the OrderEntryDeadlineUser parameter. |
![]() |
parmPriceDisc | Gets or sets the PriceDisc parameter. |
![]() |
parmProgress | Gets or sets the Progress parameter. (Inherited from RunBase.) |
![]() |
parmRecalculateShippingDate | Gets or sets the RecalculateShippingDate parameter. |
![]() |
parmReceiptDate | Gets or sets the ReceiptDate parameter. |
![]() |
parmReceiptDateAvailableSelected | Gets or sets the ReceiptDateAvailableSelected parameter. |
![]() |
parmReceiptDateBestGuess | Gets or sets the ReceiptDateBestGuess parameter. |
![]() |
parmReturnConfirmedDates | Gets or sets the ReturnConfirmedDates parameter. |
![]() |
parmSalesAvailableDlvDatesTmp | Gets the SalesAvailableDlvDatesTmp parameter. |
![]() |
parmSalesAvailableDlvDatesTmpBestGuess | Gets the SalesAvailableDlvDatesTmpBestGuess parameter. |
![]() |
parmShippingDate | Gets or sets the ShippingDate parameter. |
![]() |
parmShippingDateAvailableSelected | Gets or sets the ShippingDateAvailableSelected parameter. |
![]() |
parmShippingDateBestGuess | Gets or sets the ShippingDateBestGuess parameter. |
![]() |
parmShowActualShipDates | Gets or sets the ShowActualShipDates parameter. |
![]() |
parmShowConfirmation | Gets or sets the ShowConfirmation parameter. |
![]() |
parmShowDialog | Gets or sets the ShowDialog parameter. |
![]() |
parmShowDisableDlvDateControlButton | Gets or sets the ShowDisableDlvDateControlButton parameter. |
![]() |
parmShowTransferToConfirmedButton | Gets or sets the ShowTransferToConfirmedButton parameter. |
![]() |
parmShowTransferToRequestedButton | Gets or sets the ShowTransferToRequestedButton parameter. |
![]() |
parmTempDeliveryDateControlType | Gets or sets the TempDeliveryDateControlType parameter. |
![]() |
parmTmpInfoTable | Gets or sets the TmpInfoTable parameter. |
![]() |
prepareForRun | Allows subclasses to process the dialog box immediately before the dialog box.Run method. (Inherited from RunBase.) |
![]() |
preUpdateBuffer | |
![]() |
progressHide | Hides the Progress form. (Inherited from RunBase.) |
![]() |
progressInit | Initializes the Progress object in RunBase. (Inherited from RunBase.) |
![]() |
progressKill | Kills the Progress object in RunBase. (Inherited from RunBase.) |
![]() |
prompt | (Inherited from RunBase.) |
![]() |
promptPack | Wraps a call to the RunBase.pack Method method when packing in the RunBase.promptPrim Method method. (Inherited from RunBase.) |
![]() |
promptUnpack | Unpacks what the promptPack method has packed. (Inherited from RunBase.) |
![]() |
pushBackReceiptDateToFirstOpenDate | |
![]() |
putToDialog | Enables setting the fields that were just added in the RunBase.dialog Method method. This method is called from the RunBase.promptPrim Method method directly following the RunBase.dialogMake Method method. (Inherited from RunBase.) |
![]() |
queryRun | Returns the QueryRun object, which is used by the QueryPrompt class. (Inherited from RunBase.) |
![]() |
receiptCalendarId | Finds the receipt calendar ID for the customer and returns it. |
![]() |
reqSetupDim | Get the value of the reqSetupDim variable |
![]() |
reset | Resets the class to its default state. (Inherited from RunBase.) |
![]() |
run | Contains the code that does the actual job of the class. (Inherited from RunBase.) |
![]() |
runBase | Returns the RunBase itself. (Inherited from RunBase.) |
![]() |
runBaseDialogModifyType_RU | (Inherited from RunBase.) |
![]() |
salesLeadTime | |
![]() |
saveLast | Saves the last choice by using the RunBase.pack Method method. (Inherited from RunBase.) |
![]() |
setAvailableDlvDatesBestGuess | |
![]() |
setDates | Sets, depending on the type of the master date, either the two confirmed dates or the two requested dates. |
![]() |
setOrderEntryDeadlines | |
![]() |
setShippingDateBeforeTodayErrorText | Sets the error text when a shipping date is in the past. |
![]() |
setShippingDateInLeadTimeErrorText | Sets the error text when a shipping date is in the order lead time. |
![]() |
setTimeOut | Sets up the scheduled execution of a specified method. (Inherited from Object.) |
![]() |
shippingCalendarId | Finds the shipping calendar ID and returns it. |
![]() |
shippingLocationDate | Calculates and returns the shipping locations date. |
![]() |
showAvailableDlvDatesDialog | |
![]() |
showClearButton | Determines whether to add a Clear button to the dialog box. If you change the return value to true it will add the button. (Inherited from RunBase.) |
![]() |
showDefaultButton | Determines whether a Default button is to be added to the dialog box. If you change the return value to true, it will add the button. (Inherited from RunBase.) |
![]() |
showDialog | (Inherited from RunBase.) |
![]() |
showIndexFields | If this method returns true, it will look for the first enabled index when you are adding query range fields to the dialog and if a data source does not have any ranges specified. It will also show the visible fields from that index. (Inherited from RunBase.) |
![]() |
showQuerySelectButton | (Inherited from RunBase.) |
![]() |
showQueryValues | Determines whether a Select button is to be added to the dialog box. If you change the return value to true, the button will be added. (Inherited from RunBase.) |
![]() |
toString | Returns a string that represents the current object. (Inherited from Object.) |
![]() |
transportCalendarId | Finds the transport calendar ID for a given mode of delivery and a possible warehouse. |
![]() |
transportDays | Returns the number of days it takes an order to retrieve from the shipping point (warehouse) to the receiving point (delivery address) for a given mode of delivery. |
![]() |
unpack | Deserializes the packedClass parameter value to an instance of the SalesCalcAvailableDlvDates class. (Overrides the unpack Method.) |
![]() |
updateCaller | |
![]() |
usageCount | Returns the current number of references, that is, the value of the reference counter, that the object has. (Inherited from Object.) |
![]() |
validate | Validates the state of the internal variables. (Inherited from RunBase.) |
![]() |
validateWritePrompt | Verifies whether delivery dates are OK upon a record being inserted or updated. |
![]() |
wait | Pauses a process. (Inherited from Object.) |
![]() |
xml | Returns an XML string that represents the current object. (Inherited from Object.) |
![]() ![]() |
::initDateFields | Initiates the Requested ship date, Requested receipt date, Confirmed ship date, and Confirmed receipt date fields |
![]() ![]() |
::initDateFieldsForSalesCalc | Initiates the Requested ship date, Requested receipt date, Confirmed ship date, and Confirmed receipt date fields based on the specified calculation class instance. |
![]() ![]() |
::initDateFieldsOrderEntryDeadline | Initiates the Requested ship date, Requested receipt date, Confirmed ship date, and Confirmed receipt date fields based on the specified calculation class instance. |
![]() ![]() |
::main | Provides an entry point for the SalesCalcAvailableDlvDates class when it is called from a command. |
![]() ![]() |
::mainOnServer | Calculates the delivery date on the server tier. |
![]() ![]() |
::modifiedFieldOrderEntryDeadLine | |
![]() ![]() |
::newCommonSalesDlvDateType | |
![]() ![]() |
::validateWrite | Verifies whether delivery dates are valid upon a record being inserted or updated. |
![]() ![]() |
::validateWritePromptOnServer | Verifies whether delivery dates are OK upon a record being inserted or updated. |
Top
Remarks
The class can be instantiated and used through the following static methods:
Inheritance Hierarchy
Object Class
RunBase Class
SalesCalcAvailableDlvDates Class
SalesCalcAvailableDlvDates_QuoteLine Class
SalesCalcAvailableDlvDates_QuoteTable Class
SalesCalcAvailableDlvDates_ReleaseLine Class
SalesCalcAvailableDlvDates_ReleaseTable Class
SalesCalcAvailableDlvDates_SalesLine Class
SalesCalcAvailableDlvDates_SalesTable Class
SalesCalcAvailableDlvDates_TransferLine Class
SalesCalcAvailableDlvDates_TransferTable Class