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?

有帮助吗?

解决方案

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();
}
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top