Sales Order

Sales Order's Database

UI Name
Database
Type
Remarks

S/O No

String

Avoid using the same S/O No to prevent overwrite.

E.g.: SO-123456

S/O Key

Number

E.g.: 123456

Debtor

String

Debtor must match existing debtor code, and they must be active state.

E.g.: 400-D001

Name

String

E.g.: JOHN DOE

Address [Line 1]

String

E.g.: 123 MAIN ST,

Address [Line 2]

String

E.g.: APT 4B,

Address [Line 3]

String

E.g.: NEW YORK, NY 10001

Delivery Address [Line 1]

String

E.g.: 456 SECOND ST,

Delivery Address [Line 2]

String

E.g.: SUITE 5A,

Delivery Address [Line 3]

String

E.g.: LOS ANGELES, CA 90001

Sales Location

String

Must have existing Sales Location in the accounting system.

E.g.: HQ

Date

Date

E.g.: 2024-08-12T00:00:00+08:00

Credit Term

String

Credit Term must match the same in the accounting system.

E.g.: C.O.D.

Agent

String

E.g.: JANE SMITH

Ref

String

E.g.: REF-123456

Remark 2

String

E.g.: PENDING

Multi Pricing

String

E.g.: Price 1

Description

String

E.g.: ORDER DESCRIPTION

Expiry Date

Date

E.g.: 2024-10-17T00:00:00+08:00

Phone

String

E.g.: +1234567890

Fax

String

E.g.: +0987654321

Inclusive

Boolean

E.g.: true

Credit Term

String

Credit Term must match the same in the accounting system.

E.g.: C.O.D.

UDF

Object

Table Item

Array

Sales Order's UDF

UI Name
Database
Type
Remarks

Venue

String

E.g.: CONFERENCE CENTER

Gmail

String

E.g.: example@gmail.com

IC

String

E.g.: S1234567D

Balance

Number

E.g.: 1000

Payment

String

E.g.: CREDIT CARD

Branding

String

E.g.: BRAND X

Note

String

E.g.: SPECIAL INSTRUCTIONS

PDate

Date

E.g.: 2024-10-05T00:00:00+08:00

Sales Order's Table Item

UI Name
Database
Type
Remarks

Item No

String

E.g.: ITEM-123456

Description

String

E.g.: ITEM DESCRIPTION

Description 2

String

E.g.: ADDITIONAL INFO

Delivery Date

Date

E.g.: 2024-10-17T00:00:00+08:00

Location

String

E.g.: WAREHOUSE 1

Quantity

Number

Value must be number, and value cannot be negative.

E.g.: 10

UOM

String

E.g.: PCS

Unit Price

Number

Value must be number, and value cannot be negative.

E.g.: 100

Subtotal

Number

Value must be number, and value cannot be negative.

E.g.: 1000

Total

Number

Value must be number, and value cannot be negative.

E.g.: 1100

UDF

Object

E.g.: "POSTTOPO": "T"

Description 2

String

E.g.: ADDITIONAL DESCRIPTION

Stock Transfer's Sample Code

To find {fieldName}, you are required to have access to Alpha or use Network in Developer Tools [F12].

SQL ACCOUNTING integration - sales order

example script
purpose

to let the system know you integration with Sales Order

change ["DOCNO"]. You can refer below table

UI
mapping field
type
remarks

Customer

CODE

text

map to customer (need to make sure the customer code exist in SQL)

Fax (Delivery part)

DFAX1

text

Attention (Delivery part)

DATTENTION

text

Terms

TERMS

text

map to payment term (need to make sure the payment term code exist in SQL)

Description

DESCRIPTION

text

Ref 1

DOCREF1

text

S/O No

DOCNO

text

Date

DOCDATE

date

Ext. No

DOCNOEX

text

SQL ACCOUNTING integration - sales order line

example script
purpose

["cdsDocDetail"] mean map to line

UI
mapping field
type

More Description

DESCRIPTION3

text

Remark 1

REMARK1

text

UOM

UOM

text

U/Price

UNITPRICE

number

Qty

QTY

number

Disc

DISC

number

Last updated