将 REP 添加到发票 - 3070(字符串太长)

Add REP to the invoice - 3070 (string too long)

我将在此处使用 php quickbooks devkit 将销售代表添加到发票中。

https://github.com/consolibyte/quickbooks-php

问题是在通过 Web 连接器处理此请求时出现 returns 3070 错误。

20190210.20:08:47 UTC   : QBWebConnector.SOAPWebService.do_getLastError() : errorMsg="3070: The string "Dan T. Miller" in the field "FullName" is too long."
20190210.20:08:47 UTC   : QBWebConnector.SOAPWebService.do_getLastError() : Received error from application: 3070: The string "Dan T. Miller" in the field "FullName" is too long.

"Dan T. Miller" 销售代表已经存在,我可以创建比此字符串更长的新 REP。 我不确定这里到底发生了什么。请多多指教。

找到原因了。 销售代表全名字段应少于 5 个字符(来自销售代表列表的 "Initial" 字段而不是 "Name" 字段)。

我使用了 "Dan T. Miller" 这个名字,这就是我遇到 3070 问题的原因。 "DTM" 是发票上 "SalesRep FullName" 的正确字段。