Click or drag to resize

Invoice Class

Order that has been billed.
Inheritance Hierarchy
SystemObject
  Entity
    Crm.MSCrmServiceInvoice

Namespace: Crm.MSCrmService
Assembly: Scripting (in Scripting.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public class Invoice : Entity, INotifyPropertyChanging, 
	INotifyPropertyChanged

The Invoice type exposes the following members.

Constructors
 NameDescription
Public methodInvoice Default Constructor.
Top
Properties
 NameDescription
Public propertyAccountId Unique identifier of the account with which the invoice is associated.
Public propertyAttributes
(Inherited from Entity)
Public propertyBillTo_City Type the city for the customer's billing address.
Public propertyBillTo_Composite Shows the complete Bill To address.
Public propertyBillTo_Country Type the country or region for the customer's billing address.
Public propertyBillTo_Fax Type the fax number for the customer's billing address.
Public propertyBillTo_Line1 Type the first line of the customer's billing address.
Public propertyBillTo_Line2 Type the second line of the customer's billing address.
Public propertyBillTo_Line3 Type the third line of the billing address.
Public propertyBillTo_Name Type a name for the customer's billing address, such as "Headquarters" or "Field office", to identify the address.
Public propertyBillTo_PostalCode Type the ZIP Code or postal code for the billing address.
Public propertyBillTo_StateOrProvince Type the state or province for the billing address.
Public propertyBillTo_Telephone Type the phone number for the customer's billing address.
Public propertybusiness_unit_invoices N:1 business_unit_invoices
Public propertyContactId Unique identifier of the contact associated with the invoice.
Public propertycontactinvoices_association N:N contactinvoices_association
Public propertyCreatedBy Shows who created the record.
Public propertyCreatedOn Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM options.
Public propertyCreatedOnBehalfBy Shows who created the record on behalf of another user.
Public propertyCustomerId Select the customer account or contact to provide a quick link to additional customer details, such as account information, activities, and opportunities.
Public propertyDateDelivered Enter the date when the products included in the invoice were delivered.
Public propertyDescription Type additional information to describe the invoice, such as shipping details or product substitutions.
Public propertyDiscountAmount Type the discount amount for the invoice if the customer is eligible for special savings.
Public propertyDiscountAmount_Base Shows the Invoice Discount field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area.
Public propertyDiscountPercentage Type the discount rate that should be applied to the Detail Amount field, for use in calculating the Pre-Freight Amount and Total Amount values for the invoice.
Public propertyDueDate Enter the date by which the invoice should be paid by the customer.
Public propertyEntityImage The default image for the entity.
Public propertyEntityImage_Timestamp 
Public propertyEntityImage_URL 
Public propertyEntityImageId For internal use only.
Public propertyEntityState
(Inherited from Entity)
Public propertyExchangeRate Shows the conversion rate of the record's currency. The exchange rate is used to convert all money fields in the record from the local currency to the system's default currency.
Public propertyExtensionData
(Inherited from Entity)
Public propertyFormattedValues
(Inherited from Entity)
Public propertyFreightAmount Type the cost of freight or shipping for the products included in the invoice for use in calculating the total amount due.
Public propertyFreightAmount_Base Shows the Freight Amount field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area.
Public propertyHasLazyFileAttribute
(Inherited from Entity)
Public propertyId
(Overrides Entity.Id)
Public propertyImportSequenceNumber Unique identifier of the data import or data migration that created this record.
Public propertyinvoice_activity_parties 1:N invoice_activity_parties
Public propertyInvoice_ActivityPointers 1:N Invoice_ActivityPointers
Public propertyInvoice_Annotation 1:N Invoice_Annotation
Public propertyInvoice_Appointments 1:N Invoice_Appointments
Public propertyInvoice_AsyncOperations 1:N Invoice_AsyncOperations
Public propertyInvoice_BulkDeleteFailures 1:N Invoice_BulkDeleteFailures
Public propertyinvoice_connections1 1:N invoice_connections1
Public propertyinvoice_connections2 1:N invoice_connections2
Public propertyinvoice_customer_accounts N:1 invoice_customer_accounts
Public propertyinvoice_customer_contacts N:1 invoice_customer_contacts
Public propertyinvoice_details 1:N invoice_details
Public propertyInvoice_Emails 1:N Invoice_Emails
Public propertyInvoice_Faxes 1:N Invoice_Faxes
Public propertyInvoice_Letters 1:N Invoice_Letters
Public propertyInvoice_MailboxTrackingFolder 1:N Invoice_MailboxTrackingFolder
Public propertyInvoice_Phonecalls 1:N Invoice_Phonecalls
Public propertyinvoice_principalobjectattributeaccess 1:N invoice_principalobjectattributeaccess
Public propertyInvoice_ProcessSessions 1:N Invoice_ProcessSessions
Public propertyInvoice_RecurringAppointmentMasters 1:N Invoice_RecurringAppointmentMasters
Public propertyInvoice_ServiceAppointments 1:N Invoice_ServiceAppointments
Public propertyInvoice_SocialActivities 1:N Invoice_SocialActivities
Public propertyInvoice_SyncErrors 1:N Invoice_SyncErrors
Public propertyInvoice_Tasks 1:N Invoice_Tasks
Public propertyInvoiceId Unique identifier of the invoice.
Public propertyInvoiceNumber Shows the identifying number or code of the invoice.
Public propertyIsPriceLocked Select whether prices specified on the invoice are locked from any further updates.
Public propertyItem
(Inherited from Entity)
Public propertyKeyAttributes
(Inherited from Entity)
Public propertyLastBackofficeSubmit Enter the date and time when the invoice was last submitted to an accounting or ERP system for processing.
Public propertyLastOnHoldTime Contains the date time stamp of the last on hold time.
Public propertyLazyFileAttributeKey
(Inherited from Entity)
Public propertyLazyFileAttributeValue
(Inherited from Entity)
Public propertyLazyFileSizeAttributeKey
(Inherited from Entity)
Public propertyLazyFileSizeAttributeValue
(Inherited from Entity)
Public propertylk_invoice_createdonbehalfby N:1 lk_invoice_createdonbehalfby
Public propertylk_invoice_modifiedonbehalfby N:1 lk_invoice_modifiedonbehalfby
Public propertylk_invoicebase_createdby N:1 lk_invoicebase_createdby
Public propertylk_invoicebase_modifiedby N:1 lk_invoicebase_modifiedby
Public propertyLogicalName
(Inherited from Entity)
Public propertymanualsla_invoice N:1 manualsla_invoice
Public propertyModifiedBy Shows who last updated the record.
Public propertyModifiedOn Shows the date and time when the record was last updated. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM options.
Public propertyModifiedOnBehalfBy Shows who last updated the record on behalf of another user.
Public propertyName Type a descriptive name for the invoice.
Public propertyOnHoldTime Shows the duration in minutes for which the invoice was on hold.
Public propertyopportunity_invoices N:1 opportunity_invoices
Public propertyOpportunityId Choose the opportunity that the invoice is related to for reporting and analytics.
Public propertyorder_invoices N:1 order_invoices
Public propertyOverriddenCreatedOn Date and time that the record was migrated.
Public propertyOwnerId Enter the user or team who is assigned to manage the record. This field is updated every time the record is assigned to a different user.
Public propertyOwningBusinessUnit Unique identifier of the business unit that owns the invoice.
Public propertyOwningTeam Unique identifier of the team who owns the invoice.
Public propertyOwningUser Unique identifier of the user who owns the invoice.
Public propertyPaymentTermsCode Select the payment terms to indicate when the customer needs to pay the total amount.
Public propertyprice_level_invoices N:1 price_level_invoices
Public propertyPriceLevelId Choose the price list associated with this record to make sure the products associated with the campaign are offered at the correct prices.
Public propertyPricingErrorCode Type of pricing error for the invoice.
Public propertyPriorityCode Select the priority so that preferred customers or critical issues are handled quickly.
Public propertyProcessId Shows the ID of the process.
Public propertyprocessstage_invoices N:1 processstage_invoices
Public propertyRelatedEntities
(Inherited from Entity)
Public propertyRowVersion
(Inherited from Entity)
Public propertySalesOrderId Choose the order related to the invoice to make sure the order is fulfilled and invoiced correctly.
Public propertyShippingMethodCode Select a shipping method for deliveries sent to this address.
Public propertyShipTo_City Type the city for the customer's shipping address.
Public propertyShipTo_Composite Shows the complete Ship To address.
Public propertyShipTo_Country Type the country or region for the customer's shipping address.
Public propertyShipTo_Fax Type the fax number for the customer's shipping address.
Public propertyShipTo_FreightTermsCode Select the freight terms to make sure shipping orders are processed correctly.
Public propertyShipTo_Line1 Type the first line of the customer's shipping address.
Public propertyShipTo_Line2 Type the second line of the customer's shipping address.
Public propertyShipTo_Line3 Type the third line of the shipping address.
Public propertyShipTo_Name Type a name for the customer's shipping address, such as "Headquarters" or "Field office", to identify the address.
Public propertyShipTo_PostalCode Type the ZIP Code or postal code for the shipping address.
Public propertyShipTo_StateOrProvince Type the state or province for the shipping address.
Public propertyShipTo_Telephone Type the phone number for the customer's shipping address.
Public propertysla_invoice N:1 sla_invoice
Public propertySLAId Choose the service level agreement (SLA) that you want to apply to the invoice record.
Public propertySLAInvokedId Last SLA that was applied to this invoice. This field is for internal use only.
Public propertyslakpiinstance_invoice 1:N slakpiinstance_invoice
Public propertyStageId Shows the ID of the stage.
Public propertyStateCode Shows whether the invoice is active, paid, or canceled. Paid and canceled invoices are read-only and can't be edited unless they are reactivated.
Public propertyStatusCode Select the invoice's status.
Public propertysystem_user_invoices N:1 system_user_invoices
Public propertyteam_invoices N:1 team_invoices
Public propertyTimeZoneRuleVersionNumber For internal use only.
Public propertyTotalAmount Shows the total amount due, calculated as the sum of the products, discount, freight, and taxes for the invoice.
Public propertyTotalAmount_Base Shows the Total Amount field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area.
Public propertyTotalAmountLessFreight Shows the total product amount due, minus any discounts. This value is added to freight and tax amounts in the calculation for the total amount due for the invoice.
Public propertyTotalAmountLessFreight_Base Shows the Pre-Freight Amount field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area.
Public propertyTotalDiscountAmount Shows the total discount amount, based on the discount price and rate entered on the invoice.
Public propertyTotalDiscountAmount_Base Shows the Total Discount Amount field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area.
Public propertyTotalLineItemAmount Shows the sum of all existing and write-in products included on the invoice, based on the specified price list and quantities.
Public propertyTotalLineItemAmount_Base Shows the Detail Amount field converted to the system's default base currency. The calculation uses the exchange rate specified in the Currencies area.
Public propertyTotalLineItemDiscountAmount Shows the Manual Discount amounts specified on all products included in the invoice. This value is reflected in the Detail Amount field on the invoice and is added to any discount amount or rate specified on the invoice.
Public propertyTotalLineItemDiscountAmount_Base Shows the total of the Manual Discount amounts specified on all products included in the invoice. This value is reflected in the Detail Amount field on the invoice and is added to any discount amount or rate specified on the invoice.
Public propertyTotalTax Shows the total of the Tax amounts specified on all products included in the invoice, included in the Total Amount due calculation for the invoice.
Public propertyTotalTax_Base Shows the Total Tax field converted to the system's default base currency for reporting purposes. The calculation uses the exchange rate specified in the Currencies area.
Public propertytransactioncurrency_invoice N:1 transactioncurrency_invoice
Public propertyTransactionCurrencyId Choose the local currency for the record to make sure budgets are reported in the correct currency.
Public propertyTraversedPath For internal use only.
Public propertyuserentityinstancedata_invoice 1:N userentityinstancedata_invoice
Public propertyUTCConversionTimeZoneCode Time zone code that was in use when the record was created.
Public propertyVersionNumber Version number of the invoice.
Public propertyWillCall Select whether the products included in the invoice should be shipped to the specified address or held until the customer calls with further pick up or delivery instructions.
Top
Methods
 NameDescription
Public methodContains
(Inherited from Entity)
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetAttributeValue``1
(Inherited from Entity)
Protected methodGetFormattedAttributeValue
(Inherited from Entity)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Protected methodGetRelatedEntities``1
(Inherited from Entity)
Protected methodGetRelatedEntity``1
(Inherited from Entity)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Protected methodSetAttributeValue
(Inherited from Entity)
Protected methodSetRelatedEntities``1
(Inherited from Entity)
Protected methodSetRelatedEntity``1
(Inherited from Entity)
Public methodToEntity``1
(Inherited from Entity)
Public methodToEntityReference
(Inherited from Entity)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodTryGetAttributeValue``1
(Inherited from Entity)
Top
Events
Fields
See Also