Jump to content

Easiest Way To Find Out If The User Has Overdue Invoices?


Recommended Posts

Posted

Easiest way:

$client_id = 1;
$obj = new stdClass();
Loader::loadModels($obj, array("Invoices"));
$has_overdue_invoices = (count($obj->Invoices->getStatusCount($client_id, "past_due")) > 0);
Posted
  On 9/3/2014 at 6:31 PM, Tyson said:

 

Easiest way:

$client_id = 1;
$obj = new stdClass();
Loader::loadModels($obj, array("Invoices"));
$has_overdue_invoices = (count($obj->Invoices->getStatusCount($client_id, "past_due")) > 0);

 

Thanks. I might do it a bit different as I am using the SDK. But I'm good now as I know the correct method to use.

 

Cheers!

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...