我正在尝试将税类分配给销售收据。我无法提取销售税代码的 ID。这是我的代码:
var slList = dataServices.FindAll<SalesTax>(new SalesTax(), 1, 100);
SalesTaxQuery 仅存在于 Intuit.Ipp.Data.Qbd 命名空间中的 QuickBooks Desktop。什么是 QuickBooks Online?如何提取 IdType?
我可以添加税线:
qboSalesReceiptLine.Taxable = true;
qboSalesReceiptLine.TaxableSpecified = true;
//add a tax line
TaxLine tl = new TaxLine();
tl.Amount = _Item.PriceInclTax - _Item.PriceExclTax;
tl.AmountSpecified = true;
tlList.Add(tl);
qboSalesReceipt.TaxLine = tlList.ToArray();