0

我已经写了下面的逻辑来支付特定账单的费用。但是我收到了错误

INVALID FIELD VALUE","details":"您为以下字段输入了无效的字段值 129:帐户"

我可以看到这个帐户可用,我尝试了 accountid、acctnum 等。到目前为止没有运气!

function _post(context) {
   var vendorBillPayment = record.create({
            type: record.Type.VENDOR_PAYMENT,
            isDynamic: false,
            defaultValues: {
                entity: 1054
            }
        })

        vendorBillPayment.setValue({
            fieldId: 'entityname',
            value: "Nikon"
        })

        vendorBillPayment.setValue({
            fieldId: 'account',
            value: 129
        })

        vendorBillPayment.setValue({
            fieldId: 'currency',
            value: 1
        })

        vendorBillPayment.setValue({
            fieldId: 'customform',
            value: 45
        })

        vendorBillPayment.setValue({
            fieldId: 'exchangerate',
            value: "1.00"
        })

        var recordId = vendorBillPayment.save();
  }
4

1 回答 1

2

您在使用 NetSuite OneWorld 吗?如果您需要确保内部 id 为 129 的帐户可用于您在供应商付款记录中使用的供应商的子公司。

于 2018-01-24T11:57:28.370 回答