Quickbooks: Adding a Negative Value to an Invoice Using QBDSK

Is there a way to add a position containing a negative amount to an existing account?

I am using QBSDK7 and QB Enterprise. (and if that matters .Net 3.5)

What we are trying to do is automate the way we create invoices. We already take working hours and apply it to the correct invoices, but when we go to add loans (only the negative amount in the position in the invoice), using

InvoiceLineMod.Amount.SetValue(-1234)

he fails with the error "Transaction must be positive"

I also tried adding a service item with a negative amount and giving it a positive amount, and I get the same result.

It seems as carefree as we have been doing it manually for the last 10 years. I suppose there is an artificial limitation on this.

Some things to keep in mind: Credit notes are not good, because we need to display accurate reduction data on the same page.

In most cases, we do not have payments to apply.

This must be done before any locks are applied.

Any help would be greatly appreciated.

+3
source share
3 answers

Can you show the complete code that you use to change the account? Can you also show the exact error message you receive?

, , ItemRef ( ), , .

+3

. , . , .

IInvoiceLineAdd ila = ia.ORInvoiceLineAddList.Append().InvoiceLineAdd;
ila.ItemRef.ListID.SetValue(GetQBID(JobKey));
ila.Desc.SetValue("Adjustment");
ila.Quantity.SetValue(1);
ila.ORRatePriceLevel.Rate.SetValue(-1.00);
0

Quickbooks - . , . ( , .)

/ , >= 0 (.. , ).

The solution is to use credit memos. Your client-side processing will be more difficult, but this is the only option with Quickbooks.

0
source

Source: https://habr.com/ru/post/1703999/


All Articles