Skip to content

Commit

Permalink
Merge pull request #20 from picqer/get-all-suppliers
Browse files Browse the repository at this point in the history
Support to get all suppliers easily
  • Loading branch information
stephangroen authored Oct 4, 2019
2 parents d28d74d + 7c631b6 commit 4323fb9
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -443,9 +443,14 @@ public function getPackinglistPdf($idpicklist)
/*
* Suppliers
*/
public function getSuppliers()
public function getSuppliers($filters = [])
{
return $this->sendRequest('/suppliers');
return $this->sendRequest('/suppliers', null, null, $filters);
}

public function getAllSuppliers($filters = [])
{
return $this->getAllResults('supplier', $filters);
}

public function getSupplier($idsupplier)
Expand Down

0 comments on commit 4323fb9

Please sign in to comment.