I am using web services to create an invoice in Dynamics GP. I can successfully create an invoice with a negative amount for an invoice line, but if I try to assign commissions to the invoice, I get the error "Input variable contains a negative value". According to the documentation for SalesCommission, the CommissionAmount can be negative if the extended price and unit price on a sales line are negative amounts; I have both fields set as negative amounts but still get this error.
In the CreateSalesInvoice policy, I am providing commissions and distributions.
Any ideas what's going wrong?