Netsuite Restlet - 插入销售订单 [英] Netsuite Restlet - inserting sales order

查看:113
本文介绍了Netsuite Restlet - 插入销售订单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过suitescript 插入销售订单,但总是在位置"上出现错误.这是我的要求

I'm trying to insert in sales order through suitescript and I always get an error on 'Location'. here's my request

{
 "recordtype" : "salesorder",
 "entity" : "142832",
 "location" : {
     "id":"395"
 }
}

这是回应

{
     "error": {
        "code": "USER_ERROR",
        "message": "Please enter value(s) for: Location"
    }
}

我尝试更改位置值,例如

and I tried changing the location value for example

"location" : "390"

结果是

{
 "error": {
    "code": "INVALID_KEY_OR_REF",
    "message": "Invalid location reference key 390 for subsidiary <NULL>."
 }
}

推荐答案

发生此错误是因为与客户关联的子公司无法访问"该位置.子公司是在客户级别而不是销售订单上定义的.您需要确保为客户选择的子公司包含在位置的子公司层次结构中.要解决此问题,您需要调整营业地点的关联子公司.

This error is occurring because the location is not "accessible" by the subsidiary associated with the customer. Subsidiaries are defined on the customer level, not on the sales order. You need to ensure the subsidiary chosen on the customer is contained within the subsidiary hierarchy of the location. To fix the issue you need to adjust the associated subsidiary of the location.

以下是有关如何解决非常相似的商品问题的更多信息:

Here's more information on how to fix a very similar issue with items:

https://dashboard.suitesync.io/docs/resolving-errors#im-seeing-a-invalid-item-reference-key-123-for-subs

这篇关于Netsuite Restlet - 插入销售订单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆