Advertisement
IDNPeterL

IPP .NET DevKit v2 - QBO Item Other Charge % Create

Oct 22nd, 2012
284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.62 KB | None | 0 0
  1.  
  2. Intuit.Ipp.Data.Qbo.Item otherChargeItem = new Intuit.Ipp.Data.Qbo.Item();
  3. otherChargeItem.Name = "OtherChargePercentageTest";
  4. otherChargeItem.Desc = "Other Charge %";
  5.  
  6. //Set percentage rate
  7. Money unitPrice = new Money();
  8. unitPrice.Amount = 0.32m;
  9. unitPrice.AmountSpecified = true;
  10. otherChargeItem.UnitPrice = unitPrice;
  11.  
  12. //Set Income Account
  13. AccountRef incomeAccountRef = new AccountRef();
  14. incomeAccountRef.AccountId = new IdType() {idDomain = idDomainEnum.QBO, Value = "56"};
  15. otherChargeItem.IncomeAccountRef = incomeAccountRef;
  16.  
  17. //Call Create
  18. Intuit.Ipp.Data.Qbo.Item itemAdded = commonService.Add(otherChargeItem);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement