Frage

Using the QBFC SDK, I cant seem to locate anything in the OSR that would give me the amount due on an invoice, as the Quickbooks UI keeps track of it.

The Invoice object in QBFC does not have any applied payment(s) details, not can I find reference to manually inspecting payments. Am I perhaps overlooking something?

War es hilfreich?

Lösung

There's a BalanceRemaining field which gives you what you're looking for.

...
<AppliedAmount >AMTTYPE</AppliedAmount>
<BalanceRemaining >AMTTYPE</BalanceRemaining>
...

Code should look something like this:

if (InvoiceRet.BalanceRemaining != null)
{
    double BalanceRemaining71 = (double)InvoiceRet.BalanceRemaining.GetValue();
}
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top