You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何通过Acumatica Web Service将PO Receipt添加至Landed Cost

无法通过Web Service为Landed Cost添加采购收据的问题

我正在解决进口部门创建Landed Cost时的人为错误问题,因此在现有内部工具中新增了模块:读取XML文件生成JSON,再调用对应Web Service。工具运行正常,但无法添加选中的Purchase Receipt(LC标签页需通过按钮添加收据,我通过查询收据信息并将行数据追加至JSON)。

下面是我发送的JSON,其中LandedCostDetails部分未生效:

{
    "LinkDocumento": {
        "value": "document"
    },
    "Vendor": {
        "value": "0990015325001"
    },
    "VendorRef": {
        "value": "002001000240797"
    },
    "LCInfo": [
        {
            "Branch": {
                "value": "MAIN"
            },
            "LandedCostCode": {
                "value": "VALADVALOREM"
            },
            "Amount": {
                "value": 106.96
            }
        }
    ],
    "LandedCostDetails": [
        {
            "Branch":"MAIN",
            "DocType":"LC",
            "InventoryID": "NMCA364",
            "Warehouse": "GIT",
            "UOM": "UNIT",
            "ReceiptQty": 1.00,
            "Weight": 0.0,
            "Volume": 0.0,
            "ExtCost": 55000.00,
            "Currency": "USD",
            "AllocatedAmount": 0.0,
            "POReceiptNbr": "POR007893",
            "POReceiptLineNbr": 1,
            "LineNbr": 1
        }
    ]
}

我检查已创建的Landed Cost,发现收据并未添加成功。查询用的链接及参数如下:
localhost/eoa/entity/EOSWS/20.200.001/LandedCost?$select=ReferenceNbr,Vendor,VendorRef,LinkDocumento,LCInfo,ReceiptsToApply&$expand=LCInfo,ReceiptsToApply

内容的提问来源于stack exchange,提问作者George Arce

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.11 04:53:22