ADO.NET Provider for Zoho Books

Build 22.0.8479

SalesOrderDetails

To list, add, update and delete a sales order.

Table Specific Information

Select

The 本製品 will use the Zoho Books API to process WHERE clause conditions built with the following column and operator. The rest of the filter is executed client side within the 本製品.
Note: SalesorderId is required in order to query SalesOrderDetails.

  • SalesorderId supports the '=' comparison.
For example:
    SELECT * FROM SalesOrderDetails WHERE SalesorderId = '1894553000000077349'

Insert

Insert can be executed by specifying Name,itemid,rate,quantity columns. The columns that are not read-only can be inserted optionally. Following is an example of how to insert into this table.

Insert INTO SalesOrderLineItems#TEMP(Name,itemid,rate,quantity) values('Cloth-Jeans','3285934000000104097','1700','1')

Insert INTO SalesorderDetails(CustomerId, LineItems) values('3285934000000104002',SalesorderLineItems#TEMP)

Update

Update can be executed by specifying the SalesorderID in the WHERE Clause. The columns that are not read-only can be Updated. For example:

Insert INTO SalesOrderLineItems#TEMP(Name,itemid,rate,quantity) values('Cloth-Jeans','3285934000000104097','1700','1')

Update SalesorderDetails set CustomerId='3285934000000104002',LineItems='SalesorderLineItems#TEMP' WHERE SalesorderID='3285934000000259151'

Delete

Delete can be executed by specifying the SalesorderID in the WHERE Clause For example:

DELETE FROM SalesorderDetails WHERE SalesorderID = '3285934000000259151'

Columns

Name Type ReadOnly References SupportedOperators Description
SalesorderId [KEY] String True

SalesOrders.SalesorderId

ID of sales order.

AccountIdentifier String True

Account identifier for sales order.

Adjustment Decimal False

Adjustments made to the sales order.

AdjustmentDescription String False

Description of adjustments made to the sales order.

ApproverId String True

Users.UserId

ID of an approver.

AttachmentName String True

Name of the attachment.

AvataxUseCode String False

Used to group like customers for exemption purposes. It is a custom value that links customers to a tax rule.

AvataxExemptNo String False

Exemption certificate number of the customer.

BcyAdjustment Decimal True

Adjustment made in Base Currency.

BcyDiscountTotal Decimal True

Total amount of discount in Base Currency.

BcyShippingCharge Decimal True

Shipping charge applied in Base Currency.

BcySubTotal Decimal True

Sub total of Base Currency.

BcyTaxTotal Decimal True

Total tax of Base Currency.

BcyTotal Decimal True

Total Base Currency.

BillingAddressId String False

ID of the Billing Address

ShippingAddressId String False

ID of the Shipping Address

BillingAddress String True

Billing address of a sales order.

BillingAddressAttention String True

Name of a person in billing address.

BillingAddressCity String True

City of a billing address.

BillingAddressCountry String True

Country of a billing address.

BillingAddressFax String True

Fax of a billing address.

BillingAddressPhone String True

Phone number of a billing address.

BillingAddressState String True

State of a billing address.

BillingAddressStreet2 String True

Street two of a billing address.

BillingAddressZip String True

ZIP code of a billing address.

CanSendInMail Boolean True

Check if the sales order can be send in mail.

ColorCode String True

Color code for sales order.

ContactCategory String True

Category of a contact.

ContactPersons String False

Contact persons of a contact.

CreatedById String True

Users.UserId

Id of a user who has created sales order.

CreatedTime Datetime True

Time at which the sales order was created.

CurrencyCode String True

Currency code of the customer's currency.

CurrencyId String True

Currencies.CurrencyId

Currency ID of the customer's currency.

CurrencySymbol String True

Currency symbol of the customer's currency.

CurrentSubStatus String True

Current sub status of a sales order.

CurrentSubStatusId String True

Current sub status ID of a sales order.

CustomerId String False

Contacts.ContactId

ID of the customer or vendor.

CustomerName String True

Name of the customer or vendor.

CustomFields String False

Custom fields of the contact.

Date Date False

Date of a sales order.

DeliveryMethod String False

Method of a delivery.

DeliveryMethodId String True

Method ID of a delivery.

Discount String False

Discount given to specific item in sales order.

DiscountAppliedOnAmount Decimal True

Amount in which discount was applied.

DiscountPercent Double True

Percentage applied for discount.

DiscountTotal Decimal True

Total amount get on discount.

DiscountType String False

Type of discount applied in sales order.

EstimateId String False

Estimates.EstimateId

ID of an estimate.

ExchangeRate Decimal False

Exchange rate of the currency.

GstNo String False

GST number.

GstTreatment String False

Choose whether the estimate is GST registered/unregistered/consumer/overseas. .

HasQtyCancelled Boolean True

Check if the sales order quantity has been cancelled.

IntegrationId String True

ID of sales order integration.

InvoiceConversionType String True

Type of invoice conversion applied for sales order.

InvoicedStatus String True

Status of invoiced sales order.

IsDiscountBeforeTax Boolean False

Check if the sales order can be applied discount before tax.

IsUpdateCustomer Boolean False

Boolean to update billing address of customer.

IsEmailed Boolean True

Check if the sales order is emailed.

IsInclusiveTax Boolean False

Check if the sales order is inclusive tax.

IsPreGst Boolean True

Check if pre GST is applied.

LastModifiedById String True

Users.UserId

Id of the user last modified.

LastModifiedTime Datetime True

The time of last modification of the sales order.

LineItems String False

Line items of an estimate.

MerchantId String False

ID of the merchant.

MerchantName String True

Name of the merchant.

Notes String False

Notes of sales order.

NotesDefault String False

Default Notes for the Sales Order.

OrderStatus String True

Status of order.

Orientation String True

Orientation of page.

PageHeight String True

Height of page.

PageWidth String True

Width of page.

PricePrecision Integer True

The precision for the price.

PriceBookId String False

ID of a pricebook.

PlaceOfSupply String False

The place of supply is where a transaction is considered to have occurred for VAT purposes.

ReferenceNumber String False

Reference number of a sales order.

RoundoffValue Decimal True

Round Off value of sales order.

SalesorderNumber String False

Number of sales order.

SalespersonId String False

ID of a sales person.

SalespersonName String False

Name of the sales person.

ShipmentDate Date False

Date when shipment was done for sale order.

ShippingAddress String True

Shipment Address.

ShippingAddressAttention String True

Name of a person of shipping address.

ShippingAddressCity String True

City of a shipping address.

ShippingAddressCountry String True

Country of a shipping address.

ShippingAddressFax String True

Fax of a shipping address.

ShippingAddressPhone String True

Phone number of a shipping address.

ShippingAddressState String True

State of a shipping address.

ShippingAddressStreet2 String True

Street two details of a shipping address.

ShippingAddressZip String True

Zip code of a shipping address.

ShippingCharge Decimal False

Shipping charge.

Status String True

Status of the sales order.

SubTotal Decimal True

Sub total of sales orders.

SubTotalInclusiveOfTax Decimal True

Subtotal amount which are inclusive of tax.

SubmittedBy String True

Detail of the user who has submitted the sales order.

SubmittedDate Date True

Date when submission was made of sales order.

SubmitterId String True

Users.UserId

Id of a submitter.

TaxId String False

Taxes.TaxId

Id of the tax

TaxTotal Decimal True

Total amount of tax.

TemplateId String False

ID of a template.

TemplateName String True

Name of a template.

TemplateType String True

Type of template.

Terms String False

Terms and Conditions apply of a sales order.

TermsDefault String False

Default Terms of the Sales Order

Total Decimal True

Total of sales order.

TransactionRoundingType String True

Type of round off used for transaction.

VatTreatment String False

VAT treatment for the estimates.

TaxTreatment String False

VAT treatment for the Estimate.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
TotalFiles Integer

Total number of files.

Doc String

Document that is to be attached.

Copyright (c) 2023 CData Software, Inc. - All rights reserved.
Build 22.0.8479