Quickbooks 桌面网络连接器,发票 CLASS 为空

Quickbooks desktop web connector, invoice CLASS is empty

我一直在使用 QuickBooks Enterprise,Web 连接器版本:2.1.0.30 和在此处找到的框架:https://github.com/consolibyte/quickbooks-php for adding invoices and jobs. It is working fine but I can't get the CLASS of the invoice to be shown in quickbooks. I pass it correctly in my xml (I get no error and the invoice gets added), as described in accepted answer here: 但它没有显示在 quickbooks 中。这是我的 xml 部分:

...<InvoiceLineAdd> <ItemRef> <FullName>item name</FullName> </ItemRef> <Desc>item description</Desc> <Quantity>2</Quantity> <Rate>123</Rate> <ClassRef> <FullName>class name</FullName> </ClassRef> </InvoiceLineAdd>...

当我在 quickbooks 中编辑发票时,它没有 CLASS 选择并且 CLASS 字段为空,我无法 post 屏幕截图,CLASS编辑发票时,字段显示为“客户工作”字段旁边的下拉菜单。

所以我还需要做些什么才能让 class 出现吗?

提前致谢。

您正在将 Class 添加到发票 。如果你想在invoice级别,你需要在invoice中使用ClassRef而不是就行了。