API Forum

This forum is in read-only mode.
Please refer to our API support in case you have any questions.
We can be reached at api@e-conomic.com
e-conomic API developer forum

Reminders on invoice

0
I have this function that fetches ALL invoice by e-connomic, but eventually it goes too slow. 
 
Is there anyone who can help me to do a search on invoice where reminders = 0, to make the search faster.

My code now:
public function get_all_economic_invoices(){
$handle = $this->client->Invoice_GetAll()->Invoice_GetAllResult->InvoiceHandle;
if(!is_null($handle)){
 $items = $this->client->Invoice_GetDataArray(array('entityHandles' => $handle))->Invoice_GetDataArrayResult->InvoiceData;
      if(is_array($items)){
 foreach($items as $item){
  if($item->GrossAmount >= 0)
  $this->economic_invoices[] = $item->Number;
 }
}
}
}
Thanks in adwance

 

created Oct 15, 2014 by wibergs
20% Accept Rate
Q 6 A 2 C 0

Visma e-conomic A/S
...