AMIS MISA icon

AMIS MISA

Tích hợp AMIS MISA cho n8n

Actions11

Outward Voucher → Get Many With Details

AI-generated

Summary

Fetches paginated AMIS MISA outward voucher headers, requests each voucher’s details, then expands detail lines into n8n output items. Lines with serial details produce one item per serial; otherwise, the line is repeated once per whole unit of quantity.

Inputs

  • Return All — Defaults to true and retrieves all available headers, subject to Max Records. When false, Limit caps the number of headers fetched.
  • Limit — Maximum number of voucher headers to fetch when Return All is off; default 100.
  • Page Size — Headers requested per page; default 100, maximum 500.
  • Max Records — Safety cap on fetched headers; default 10,000. Reaching the cap while Return All is on can stop execution with an error.
  • Max Detail Requests — Maximum number of per-voucher detail requests; default 5,000. If the fetched header count exceeds it, execution errors.
  • Max Output Items — Safety cap on expanded output items; default 50,000. Exceeding it errors.
  • Request Timeout (Seconds) — Timeout for each AMIS MISA request; default 120 seconds.
  • Ref No Contains — Optional substring filter for voucher number, applied as an AMIS custom filter unless Custom Filter JSON is supplied.
  • Warehouse Contains — Optional substring filter for warehouse name, combined with Ref No Contains using AND unless Custom Filter JSON is supplied.
  • Sort By — Sort field selector. For outward vouchers, only RefDate or RefNo are accepted by the runtime; other selections fall back to RefDate.
  • Sort Direction — Ascending or descending sort direction; default ascending. Runtime defaults the voucher sort to descending when the field is not supplied.
  • Advanced Options: Custom Filter JSON — Raw AMIS custom filter JSON. If present, it takes precedence over Ref No Contains and Warehouse Contains.
  • Advanced Options: Filter JSON — Raw AMIS Filter value. If present, it is sent as the header filter.
  • Advanced Options: Custom Sort JSON — Raw AMIS sort JSON. If present, it takes precedence over Sort By and Sort Direction.

Output shape

A list of n8n items, each containing one flattened voucher detail or serial row.

Each item includes voucher metadata (such as refNo, refDate, accountObjectCode/name, stockName, outwardType, voucherReferences, and description) plus itemCode, itemName, quantity, saleDescription, handoverOrderNo, and serialNumber. Quantity rows are expanded to one item per whole unit; when SerialDetailList is present, one item is emitted per serial instead. Voucher lines with no recognized detail array or with missing item codes/nonpositive quantities may produce no output. Requires AMIS MISA credentials with cookie and origin.

Links

Discussion