SalesOrder Methods |
The SalesOrder type exposes the following members.
Name | Description | |
---|---|---|
![]() | CalculateVATDeviation |
Calculates the VAT deviation document amount according to the sales order options of the document type and distributes the document amounts.
|
![]() | ChangeState |
Changes the document state to the specified new state
(Inherited from Document.) |
![]() | Complete |
Changes the document state to Completed with all Release-ed sub-documents
(Inherited from Document.) |
![]() | CopyValuesFromReturnForInvoice |
Copies the values from return for invoice.
|
![]() | CopyValuesFromReturnForSalesOrder |
Copies the values from return sales order.
|
![]() | CreateAdjustmentDocument |
Creates an adjustment document that doesn't adjust anything. Can be modified and saved.
(Inherited from Document.) |
![]() | CreateLineLots |
Creates the line lots.
|
![]() | CreateWorkOrders |
Creates a WorkOrder objects based on the SalesOrder.
|
![]() | CreateZeroAmountPaymentOrder |
Creates the zero amount payment order used for advance payments. If such payment order already exists returns null.
|
![]() | Delete | Deletes the domain object. (Overrides DocumentDelete.) |
![]() | DetermineDefaultPosAttributes |
Determine default POS Operator, Terminal and Device for this Sales Order, without actually modifying it.
Note that this might differe from FillFiscalSalesNumber(User), because business rules
might change the object when assiging to properties
|
![]() | DistributeDocumentAmounts |
Distributes the document amounts by the document lines.
(Inherited from LogisticsDocument.) |
![]() | DuplicateObject |
Creates a copy of the object.
(Inherited from EntityObject.) |
![]() | Equals(Object) |
Determines whether the specified Object, is equal to this instance.
(Inherited from EntityObject.) |
![]() | Equals(EntityObject) |
Indicates whether the current object is equal to another object of the same type.
(Inherited from EntityObject.) |
![]() | ExecuteBusinessRules |
Executes all business rules for the object for the specified BusinessEvent.
The validation fails are saved in the event.
(Inherited from EditableDomainObject.) |
![]() | FillFiscalSalesNumber(String) |
Sets the Fiscal Sales Number (FSN). The function checks for connected fiscal
printer and fills in the required POS attributes (if they have default values).
It is executed only if there is no value for FSN.
|
![]() | FillFiscalSalesNumber(User) |
Sets the Fiscal Sales Number (FSN). The function checks for connected fiscal
printer and fills in the required POS attributes (if they have default values).
It is executed only if there is no value for FSN.
|
![]() | GetAggregateParent |
Gets the aggregate parent of this entity object. If this is the aggregate root the return value is null.
(Inherited from EntityObject.) |
![]() | GetAggregateRoot |
Gets the aggregate root entity object.
If the entity does not have aggregate parent reference aggregate root is this entity object.
(Inherited from EntityObject.) |
![]() | GetAllParentDocuments |
Gets all parent documents, traversing the parent document chain by using the Parent property.
(Inherited from Document.) |
![]() | GetAmountToPay |
Gets the total amount of the document that should be payed by the customer.
(Inherited from LogisticsDocument.) |
![]() | GetAmountToPayForLines |
Gets the total amount of the document that is included in the lines.
(Inherited from LogisticsDocument.) |
![]() | GetChangedAttributes |
Gets the changed attributes for a given DataAttributeChangeEventArgs.
Used for front-end generic business rules to recalculate the state of the object according to attribute change events.
(Inherited from LogisticsDocument.) |
![]() | GetCoveredPaymentAmount |
Determine what amount has been covered by PaymentTransaction-s
by retrieving all relevang PaymentTransactionLine-s that are
for PaymentOrder releated to this document with
are at least minDocStateForPayments
not void. Finally, all lines' CoveredOrderAmount
are
|
![]() | GetDefaultRequiredDeliveryDate |
Gets the default required delivery date.
|
![]() | GetDistributedAmountsOverThisDocument |
Gets the distributed amounts where this document is referenced, including amounts created by this document and other documents. Caches the result.
(Inherited from LogisticsDocument.) |
![]() | GetDocumentAmountsInfo |
Gets the calculated document amounts information.
(Inherited from LogisticsDocument.) |
![]() | GetHashCode |
Returns a hash code for this instance.
(Inherited from EntityObject.) |
![]() | GetPaymentStatus |
Determines the payment status of a document comparing the Amount to pay for the document and
the sum of the covered amounts in released payment transactions referring this document.
(Inherited from LogisticsDocument.) |
![]() | GetPaymentsTransactionLines |
Retrieve payment transaction lines for all payments (not void and state >= minDocState) related to this sales order
|
![]() | GetPrintout |
Gets a document printout as a file. The returned value is Base64 string representation of the file contents.
(Inherited from Document.) |
![]() | GetRelatedObjectsForValidation |
Gets the related objects which would need validation upon validation of this object.
(Inherited from EntityObject.) |
![]() | ImportDocumentAmounts | Imports the percent or unit amount document amounts from the specified source documents. (Inherited from LogisticsDocument.) |
![]() | ImportDocumentTypeAmounts | Copies the document amounts from document type. First removes all existing document amounts. (Inherited from LogisticsDocument.) |
![]() | IssueWarning(String) |
Issues a warning with the specified message.
(Inherited from EditableDomainObject.) |
![]() | IssueWarning(ExpressionFuncString, Object) |
Issues a warning with the specified message. The message can contain standard string placeholders.
(Inherited from EditableDomainObject.) |
![]() | MakeVoid |
Makes the document void. The operation is irreversible.
(Inherited from Document.) |
![]() | MatchesFilter(DataAccessFilter) |
Returns true if this entity object matches the specified filter.
(Inherited from EnterpriseOneEntityObject.) |
![]() | MatchesFilter(DataAccessFilter, IBufferRow) |
Matches the filter against the specified row and returns the result of the match.
(Inherited from EnterpriseOneEntityObject.) |
![]() | RecalcBonusPrograms |
Applies the bonus programs to the sales order.
|
![]() | RecalcPaymentPlanAmounts |
Recalcs the payment plan amounts.
|
![]() | RecalcPromotionalPackages |
Recalcs the promotional packages.
|
![]() | Recalculate |
The document and all of its owned objects will be altered to become valid.
(Inherited from Document.) |
![]() | Refresh |
Refreshes this instance with data from data source.
Only objects with ObjectState equal to Unchanged are refreshed.
(Inherited from EntityObject.) |
![]() | ToString |
Returns a String that represents this instance.
(Inherited from EntityObject.) |
![]() | ToString(String) |
Returns a String that represents this instance.
(Inherited from EntityObject.) |
![]() | TryGet |
Tries to get the specified attribute and returns it or null, when it is not found.
(Inherited from DomainObject.) |
Name | Description | |
---|---|---|
![]() | FillAggregateMissingDefaults |
Recalculates the default values for all objects in the aggregate.
(Defined by EntityObjectExtensions.) |
![]() | FillMissingDefaults |
Executes the late default expression defined in each attribute (if any) if the current value is null or equal to a constant default.
(Defined by EntityObjectExtensions.) |
![]() | FormatString |
Converts the object to string based on the format specified.
(Defined by FormatStringExtensions.) |
![]() | GetExtensibleDataObject |
Gets the extensible data object related to the entity object.
Can return null if such ExtensibleDataObject doesn't exist.
(Defined by ExtensibleDataObjectExtensions.) |
![]() | GetOrCreateExtensibleDataObject |
Returns an ExtensibleDataObject related to the entity object.
If such object doesn't exist the object is created in the same transaction.
(Defined by ExtensibleDataObjectExtensions.) |
![]() | RecalculateMasterAttributes |
Recalculates the values of a master attributes in a master-detail relationship.
(Defined by EntityObjectExtensions.) |
![]() | RecalculateMissingValues |
Recalculates the missing values using the first reactive expression of the attributes.
(Defined by EntityObjectExtensions.) |