Invoice
Invoice's Database
Debtor
String
Debtor must match existing debtor code, and they must be active state.
E.g.: 300-A001
Invoice No
String
Avoid using the same Invoice No to prevent overwrite.
*Document Id or Running Number
E.g.: INV00001
Date
String
E.g.: 2024-11-27T00:00:00+08:00
Sales Location
String
Must have existing Sales Location in the accounting system.
E.g.: HQ
Credit Term
String
Credit Term must match the same in the accounting system
E.g.: C.O.D.
Description
String
E.g.: INVOICE
Limit 80 Characters Max
Inclusive?
Boolean
E.g.: False
Rate
Decimal
E.g.: 1.234
Invoice's Table Item
Item Code
String
E.g.: A001
Acc. No.
String
E.g.: 500-0123
Description
String
E.g.: PRODUCT - CL14
D/O Number
String
E.g.: DO-123-456
UOM
String
E.g.: UNIT
Location
String
Must have existing Location in the accounting system.
E.g.: HQ
Qty
Decimal
Value must be number, and value cannot be negative.
E.g.: 10.0
Unit Price
Decimal
Value must be number, and value cannot be negative.
E.g.: 10.0
Tax Adjustment
String
Value must be None
Tax Code
String
E.g.: SV-01
Additional for E-Invoice
E-Invoice Start Date
DateTime
DateTime(2026,1,1)
*Login to AutoCount,
go to the e-Invoice tab → e-Invoice Setting → tick "Enable e-Invoice" →Start Date: 01/01/2026
Cancelled
Boolean
Pass true to void the Invoice
Draft
Boolean
Pass true to allow Invoice Save as Draft . (invoice will not be finalized).
Submit E-Invoice
Boolean
Pass true to check on the Submit e-Invoice?
Invoice's Sample Code
Remember to change to the correct field before proceeding to run ANY script.
To find {fieldName}, you are required to have access to Alpha or use Network in Developer Tools [F12].
Last updated