What is the outstanding amount considered in the system for any credit policy?

Suggestions:
System considers the following amount while calculating the credit policy and defining the limits to be set on outstanding credit accounts :
1) Outstanding amount as the amount which is pending invoice amount,
2) Along with current invoice amount which includes business logic failed invoices amount as well.