简体   繁体   English

供应商和员工业务规则问题

[英]Issue with Vendor and Employee Business Rules

According to the documentation, there is a Business Rule for Vendor and Employee that says 根据文档,有一个针对供应商和员工的业务规则,其中规定:

The name, first name, or last name field should not be blank. 名称,名字或姓氏字段不应为空。

Considering that NAME is required for create, the question is ¿Does this mean that ALL three properties have to have a value on Create? 考虑到创建需要NAME,问题是“这是否意味着所有三个属性都必须在Create上有一个值?

We understood that, so we ran some tests. 我们了解这一点,因此我们进行了一些测试。 Creating a record with the three properties populated has no problem. 使用填充的三个属性创建记录没有问题。 The issue comes when we try so insert a null value for GivenName and FamilyName (first name and last name). 当我们尝试为GivenName和FamilyName(名字和姓氏)插入一个空值时,问题就来了。

Quickbooks seems to take the NULL values as valid, and when inserting the record is not returning any error. Quickbooks似乎将NULL值视为有效,并且在插入记录时不返回任何错误。 The problem is that the record that was inserted never shows in the QBD UI, but is seems like it persists somewhere, because if we try to insert it again we get a "duplicate name" error. 问题在于,插入的记录从不显示在QBD UI中,但是似乎保留在某处,因为如果尝试再次插入它,则会出现“重复名称”错误。

Not sure if this is an issue or an expected behaviour... Any hints?? 不知道这是一个问题还是预期的行为...有任何提示吗?

Thanks 谢谢


QuickBooks for windows has some legacy behavior to be aware of. Windows的QuickBooks有一些旧的行为需要注意。 The First, Last and Name combines for a unique identifier accross Customers, Vendors and Employees. 名字,姓氏和名字结合在一起,构成了横跨客户,供应商和员工的唯一标识符。 So you should fill in ALL the information you have. 因此,您应该填写自己拥有的所有信息。 Any attempts to insert a record with the same F or L name, will fail if there is a Customer, Vendor or Employee with the same F & L. 如果存在具有相同F&L的客户,供应商或雇员,则任何尝试插入具有相同F或L名称的记录的尝试都会失败。

Second, you mentioned that the record doesn't show in QuickBooks for Windows? 其次,您提到该记录没有在Windows的QuickBooks中显示吗? Did it sync successfully? 它同步成功了吗? Did you check the error state of the record you inserted? 您是否检查了插入记录的错误状态? Did you look at the sync logs to see if it failed to sync? 您是否查看了同步日志以查看是否无法同步?

Lastly, you need to check all three objects for a user with the same F & L name if you are getting a duplicate error. 最后,如果您遇到重复错误,则需要检查具有相同F&L名称的用户的所有三个对象。 Normally you would check to see if the customer/vendor/employee exists firsts so you can update the existing or determine if it is in fact a new record. 通常,您会检查客户/供应商/员工是否首先存在,因此您可以更新现有的或确定其是否实际上是新记录。

hope that helps 希望能有所帮助
Jarred 贾里德

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM