要将员工时间卡数据导出到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;
}
}
}
通过使用上述代码,我们可以轻松找到Employees Earning项目。 但是,我们如何检查添加/扣减中的项目并通过c#映射到它们?
QB UI视图的屏幕截图
提前致谢
答案 0 :(得分:1)
QBXML SDK无法提供该信息。