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);

 

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!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...