enueca wrote:Hi, if I use the GET SalesOrder/{InvoiceID} API and the Status of the order is "e_SalesOrderClosed", is the returned information the invoice details?
Hi enueca,
Either processed or closed is considered invoiced. A closed order is certainly invoiced, a processed one may be part invoiced, or not invoiced at all if nothing was shipped yet.
Mike
Mike.Sheen wrote:The GET is the invoice details - we actually treat a sales order and invoice as the same document - just with different statuses.
enueca wrote:Mike.Sheen wrote:The GET is the invoice details - we actually treat a sales order and invoice as the same document - just with different statuses.
Thanks Mike.
There are several information required by the buyer but I cannot easily find in the GET response message and the API documentation. Can you help clarify and advise how I can retrieve these info?
1. Freight Charge - according to Austlink contact, there might be freight charges for the sales order, but I cannot find any freight related charges, only some freight descriptions.
2. Total Tax Amount - I can only see a HistoryTotal which seems to be the Total Order amount with GST. I can get the 10% of the total as the Tax amount or add the TaxToCharge in each line, but they seem not to total.
"HistoryTotal": 2015.53 * .10 = 201.55
"TaxToCharge": 46.9, + "TaxToCharge": 9.33, + "TaxToCharge": 127, = 183.23
3. Invoice Date - can I use the DateProcessed as the Invoiced Date? The values returned by the API is not the expected format:
"DateProcessed": "/Date(1520977074570-0000)/",
4. Invoiced Qty - can you confirm if "QuantityThisDel" is also the invoiced qty?
Thanks!
1. Freight Charge - according to Austlink contact, there might be freight charges for the sales order, but I cannot find any freight related charges, only some freight descriptions.
2. Total Tax Amount - I can only see a HistoryTotal which seems to be the Total Order amount with GST. I can get the 10% of the total as the Tax amount or add the TaxToCharge in each line, but they seem not to total.
"HistoryTotal": 2015.53 * .10 = 201.55
3. Invoice Date - can I use the DateProcessed as the Invoiced Date? The values returned by the API is not the expected format:
"DateProcessed": "/Date(1520977074570-0000)/"
4. Invoiced Qty - can you confirm if "QuantityThisDel" is also the invoiced qty?
Mike.Sheen wrote:FYI - I've added improvement DEV-6544 to change the date serialisation to use ISO8601 format by default.
The ‘D01’ is a combination of the Jiwa system setting SY_SysValues.Contents where IDKey = DocketNumHeader and SO_History.HistoryNo.
Users browsing this forum: No registered users and 2 guests