如何通过 c# 从 QuickBooks Desktop 中查找员工扣减、添加项目?

How to find the Employee deductions, Additions items from QuickBooks Desktop by c#?

为了将员工考勤卡数据导出到 QuickBooks,我们可以使用 QBFC(使用 8.0)通过以下 c# 代码检查收入项目

QBFC8Lib.IEarnings earnings40 = null;
string ItemName = "Example_EarnType";
if(employeeRet.EmployeePayrollInfo.OREarnings != null)
    count = employeeRet.EmployeePayrollInfo.OREarnings.EarningsList.Count; 
if(count > 0)
{
    for (int j = 0; j <= count - 1; j++) 
    { 
        earnings40 = employeeRet.EmployeePayrollInfo.OREarnings.EarningsList.GetAt(j); 
        if(earnings40.PayrollItemWageRef.FullName.GetValue().ToLower() == itemname.ToLower())
        {
            return true;
        }
    }
}

通过使用上面的代码,我们可以很容易地找到员工收入项。 但是我们如何检查 Additions/Deductions 中的项目并通过 c# 映射到它们?

QB 截图UI 查看

提前致谢

该信息无法通过 QBXML SDK 获得。