Check if an invoice is payed

Forum for discussing SOAP, and how it is used in the E-conomic API

Check if an invoice is payed

Postby Yngve Larsen » Fri Feb 03, 2012 12:24 pm

Today we use the function Invoice_GetRemainder to get the sum on a customer account.

Is there a better way to check if an invoice have been paid ?

Example:
Look up an invoice and see the amount paid ? Is that possible?
-
Yngve Larsen
 
Posts: 2
Joined: Fri Feb 03, 2012 12:21 pm

Re: Check if an invoice is payed

Postby Christian Estrup » Fri Feb 03, 2012 1:32 pm

The Invoice's Amount property is the full amount.

The Remainder property is the part of Amount that hasn't been matched (against credit notes and/or payments) yet.

Disregarding credit notes, you can thus count on (Amount - Remainder) to be the amount paid.


Best regards,
Christian Estrup
Chief Architect

Image
Online accounting
User avatar
Christian Estrup
 
Posts: 245
Joined: Tue Jun 09, 2009 6:37 pm


Return to SOAP



cron