如何通过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
相关产品推荐
相关产品推荐

