Skip to Content
0
Former Member
Sep 08, 2011 at 07:48 PM

Expenses.TaxCode

17 Views

Hello,

I'm trying to add Expenses on my Purchase Delivery Notes Draft with this code:

oMyDraft.Expenses.ExpenseCode = 1;

oMyDraft.Expenses.LineTotal = 100;

oMyDraft.Expenses.TaxCode = "PIBI237";

oMyDraft.Expenses.Add();

And I received this error: The value of the document input parameter 'qty' is missing -10, if I pass TaxCode = string.empty or "", the draft is created.

Thanks for any help.

Rodrigo